@@ -175,7 +175,7 @@ public static function install_premium_plugin( $plugin, $provider, $activate ) {
175175 // Provision a license for the premium plugin, this returns basename and download URL
176176 $ license_response = $ pls_utility ->provision_license ( $ plugin , $ provider );
177177 if ( is_wp_error ( $ license_response ) ) {
178- $ license_response ->add (
178+ $ license_response ->add (
179179 'nfd_installer_error ' ,
180180 __ ( 'Failed to provision license ' , 'wp-module-installer ' ),
181181 array (
@@ -217,13 +217,13 @@ public static function install_premium_plugin( $plugin, $provider, $activate ) {
217217 }
218218 $ install_status = self ::install_from_zip ( $ license_response ['downloadUrl ' ], $ activate );
219219 if ( is_wp_error ( $ install_status ) ) {
220- $ install_status ->add (
220+ $ install_status ->add (
221221 'nfd_installer_error ' ,
222222 __ ( 'Failed to install the plugin ' , 'wp-module-installer ' ),
223223 array (
224- 'plugin ' => $ plugin ,
225- 'provider ' => $ provider ,
226- 'basename ' => $ plugin_basename ,
224+ 'plugin ' => $ plugin ,
225+ 'provider ' => $ provider ,
226+ 'basename ' => $ plugin_basename ,
227227 'download_url ' => $ license_response ['downloadUrl ' ],
228228 )
229229 );
@@ -241,7 +241,7 @@ public static function install_premium_plugin( $plugin, $provider, $activate ) {
241241 array (
242242 'plugin ' => $ plugin ,
243243 'provider ' => $ provider ,
244- 'basename ' => $ plugin_basename
244+ 'basename ' => $ plugin_basename,
245245 )
246246 );
247247 return $ activate_plugin_response ;
@@ -252,7 +252,7 @@ public static function install_premium_plugin( $plugin, $provider, $activate ) {
252252 // Should we do this here or let the activation hook handle it - see WPAdmin/Listeners/InstallerListener.php
253253 $ activation_response = $ pls_utility ->activate_license ( $ plugin );
254254 if ( is_wp_error ( $ activation_response ) ) {
255- $ activation_response ->add (
255+ $ activation_response ->add (
256256 'nfd_installer_error ' ,
257257 __ ( 'Failed to activate the license ' , 'wp-module-installer ' ),
258258 array (
0 commit comments