← All changes
|
src/integrations/admin/addon-installation/dialog-integration.php
+9
-7
18.7
→
trunk
View file →
| @@ -51,8 +51,10 @@ | ||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | /** |
| 54 | 54 | * Registers all hooks to WordPress. |
| 55 | + * | |
| 56 | + * @return void | |
| 55 | 57 | */ |
| 56 | 58 | public function register_hooks() { |
| 57 | 59 | \add_action( 'admin_init', [ $this, 'start_addon_installation' ] ); |
| 58 | 60 | } |
| @@ -85,18 +87,18 @@ | ||
| 85 | 87 | * |
| 86 | 88 | * @return void |
| 87 | 89 | */ |
| 88 | 90 | public function throw_no_owned_addons_warning() { |
| 89 | - echo '<div class="notice notice-warning"><p>' . | |
| 90 | - \sprintf( | |
| 91 | + echo '<div class="notice notice-warning"><p>' | |
| 92 | + . \sprintf( | |
| 91 | 93 | /* translators: %1$s expands to Yoast SEO */ |
| 92 | 94 | \esc_html__( |
| 93 | 95 | 'No %1$s plugins have been installed. You don\'t seem to own any active subscriptions.', |
| 94 | - 'wordpress-seo' | |
| 96 | + 'wordpress-seo', | |
| 95 | 97 | ), |
| 96 | - 'Yoast SEO' | |
| 97 | - ) . | |
| 98 | - '</p></div>'; | |
| 98 | + 'Yoast SEO', | |
| 99 | + ) | |
| 100 | + . '</p></div>'; | |
| 99 | 101 | } |
| 100 | 102 | |
| 101 | 103 | /** |
| 102 | 104 | * Shows the modal. |
| @@ -109,9 +111,9 @@ | ||
| 109 | 111 | 'wpseoAddonInstallationL10n', |
| 110 | 112 | [ |
| 111 | 113 | 'addons' => $this->owned_addons, |
| 112 | 114 | 'nonce' => \wp_create_nonce( 'wpseo_addon_installation' ), |
| 113 | - ] | |
| 115 | + ], | |
| 114 | 116 | ); |
| 115 | 117 | |
| 116 | 118 | $asset_manager = new WPSEO_Admin_Asset_Manager(); |
| 117 | 119 | $asset_manager->enqueue_script( 'addon-installation' ); |