From 23e4ea7831a1618bf2a14e085cf2572f0b24eb68 Mon Sep 17 00:00:00 2001 From: Brad Parbs Date: Tue, 1 Oct 2024 19:54:20 -0500 Subject: [PATCH] PHPCS fixer --- bluehost-wordpress-plugin.php | 3 ++- bootstrap.php | 38 +++++++++++++++--------------- inc/Admin.php | 23 +++++------------- inc/Data.php | 2 +- inc/LoginRedirect.php | 2 +- inc/RestApi/CachingController.php | 6 ++--- inc/RestApi/SettingsController.php | 6 ++--- inc/YoastAI.php | 6 ++--- inc/base.php | 8 +++---- inc/partners.php | 4 +--- inc/plugin-nfd-compat-check.php | 25 ++++++++++---------- inc/plugin-php-compat-check.php | 30 +++++++++++------------ inc/settings.php | 2 +- inc/updates.php | 7 +++--- inc/upgrades/1.4.3.php | 2 +- inc/upgrades/2.0.php | 2 +- inc/upgrades/2.11.0.php | 2 +- inc/upgrades/2.12.10.php | 2 +- inc/upgrades/2.12.7.php | 2 +- inc/upgrades/2.13.2.php | 2 +- inc/upgrades/2.2.2.php | 2 +- inc/upgrades/2.2.3.php | 2 +- inc/upgrades/3.0.10.php | 4 ++-- inc/upgrades/3.1.1.php | 4 ++-- inc/upgrades/index.php | 2 +- tests/phpunit/ExampleTest.php | 2 +- 26 files changed, 88 insertions(+), 102 deletions(-) diff --git a/bluehost-wordpress-plugin.php b/bluehost-wordpress-plugin.php index 587976c03..4d3cb08c0 100644 --- a/bluehost-wordpress-plugin.php +++ b/bluehost-wordpress-plugin.php @@ -1,8 +1,9 @@ admin_url( 'admin.php?page=bluehost#/home' ), 'template_h1' => __( 'Coming Soon!', 'wp-plugin-bluehost' ), 'template_h2' => __( 'A New WordPress Site', 'wp-plugin-bluehost' ), - 'template_coming_soon_links' => - '' . - __( 'How to Build a Website: A Practical Guide to WordPress on Bluehost', 'wp-plugin-bluehost' ) . - '
' . - '' . - __( 'How to Migrate a Website to Bluehost?', 'wp-plugin-bluehost' ) . - '
' . - '' . - __( 'Why choose Bluehost for your WordPress site?', 'wp-plugin-bluehost' ) . - '
', + 'template_coming_soon_links' + => '' + . __( 'How to Build a Website: A Practical Guide to WordPress on Bluehost', 'wp-plugin-bluehost' ) + . '
' + . '' + . __( 'How to Migrate a Website to Bluehost?', 'wp-plugin-bluehost' ) + . '
' + . '' + . __( 'Why choose Bluehost for your WordPress site?', 'wp-plugin-bluehost' ) + . '
', 'template_footer_t' => sprintf( /* translators: %1$s is replaced with opening link tag taking you to bluehost.com/wordpress, %2$s is replaced with closing link tag, %3$s is replaced with opening link tag taking you to login page, %4$s is replaced with closing link tag, %5$s is replaced with opening link tag taking you to my.bluehost.com, %6$s is replaced with closing link tag */ esc_html__( 'A %1$sBluehost%2$s powered website. Is this your website? Log in to %3$sWordPress%4$s or %5$sBluehost%6$s.', 'wp-plugin-bluehost' ) . ' ', diff --git a/inc/Admin.php b/inc/Admin.php index f18f3bf1b..02354d1d3 100644 --- a/inc/Admin.php +++ b/inc/Admin.php @@ -7,11 +7,10 @@ namespace Bluehost; -use function NewfoldLabs\WP\Context\getContext; use function NewfoldLabs\WP\Module\Features\isEnabled; /** - * \Bluehost\Admin + * \Bluehost\Admin. */ final class Admin { @@ -44,7 +43,7 @@ public function __construct() { } /** - * Add to runtime + * Add to runtime. * * @param Array $sdk - The runtime array * @@ -111,7 +110,7 @@ public static function subpages() { /** * Add inline script to admin screens - * - hide extra link in subnav + * - hide extra link in subnav. */ public static function admin_nav_style() { echo '