Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
wpscholar committed Oct 5, 2023
1 parent 532f487 commit 20cc985
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions inc/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function __construct() {
/* Add inline style to hide subnav link */
\add_action( 'admin_head', array( __CLASS__, 'admin_nav_style' ) );

\add_filter('newfold-runtime', array( __CLASS__, 'add_to_runtime' ) );
\add_filter('newfold_runtime', array( __CLASS__, 'add_to_runtime' ) );
\add_filter( 'newfold-runtime', array( __CLASS__, 'add_to_runtime' ) );
\add_filter( 'newfold_runtime', array( __CLASS__, 'add_to_runtime' ) );

if ( isset( $_GET['page'] ) && strpos( filter_input( INPUT_GET, 'page', FILTER_UNSAFE_RAW ), 'bluehost' ) >= 0 ) { // phpcs:ignore
\add_action( 'admin_footer_text', array( __CLASS__, 'add_brand_to_admin_footer' ) );
Expand All @@ -37,6 +37,7 @@ public function __construct() {

public static function add_to_runtime( $sdk ) {
include_once BLUEHOST_PLUGIN_DIR . '/inc/Data.php';

return array_merge( $sdk, Data::runtime() );
}

Expand Down Expand Up @@ -211,7 +212,8 @@ public static function load_text_domain() {
/**
* Add Links to WordPress Plugins list item for Bluehost.
*
* @param array $actions - array of action links for Plugin row item.
* @param array $actions - array of action links for Plugin row item.
*
* @return array
*/
public static function actions( $actions ) {
Expand All @@ -228,10 +230,12 @@ public static function actions( $actions ) {
* Filter WordPress Admin Footer Text "Thank you for creating with..."
*
* @param string $footer_text footer text
*
* @return string
*/
public static function add_brand_to_admin_footer( $footer_text ) {
$footer_text = \sprintf( \__( 'Thank you for creating with <a href="https://wordpress.org/">WordPress</a> and <a href="https://bluehost.com/about">Bluehost</a>.', 'wp-plugin-bluehost' ) );

return $footer_text;
}
} // END \Bluehost\Admin

0 comments on commit 20cc985

Please sign in to comment.