@@ -1003,7 +1003,7 @@ private static function migrate_install_plan_to_plan_id( FS_Storage $storage, $b
10031003
10041004 if ( isset( $install->plan ) && is_object( $install->plan ) ) {
10051005 if ( isset( $install->plan->id ) && ! empty( $install->plan->id ) ) {
1006- $install->plan_id = self::_decrypt( $install->plan->id ); // @phpstan-ignore-line
1006+ $install->plan_id = self::_decrypt( $install->plan->id );
10071007 }
10081008
10091009 unset( $install->plan );
@@ -1564,8 +1564,8 @@ private function register_constructor_hooks() {
15641564 );
15651565 $this->add_filter( 'after_code_type_change', array( &$this, '_after_code_type_change' ) );
15661566
1567- add_action( 'admin_init', array( &$this, '_add_trial_notice' ) ); // @phpstan-ignore-line
1568- add_action( 'admin_init', array( &$this, '_add_affiliate_program_notice' ) ); // @phpstan-ignore-line
1567+ add_action( 'admin_init', array( &$this, '_add_trial_notice' ) );
1568+ add_action( 'admin_init', array( &$this, '_add_affiliate_program_notice' ) );
15691569 add_action( 'admin_enqueue_scripts', array( &$this, '_enqueue_common_css' ) );
15701570
15711571 /**
@@ -1882,7 +1882,7 @@ private function clear_module_main_file_cache( $store_prev_path = true ) {
18821882 $plugin_main_file = clone $this->_storage->plugin_main_file;
18831883
18841884 // Store cached path (2nd layer cache).
1885- $plugin_main_file->prev_path = $plugin_main_file->path; // @phpstan-ignore-line
1885+ $plugin_main_file->prev_path = $plugin_main_file->path;
18861886
18871887 // Clear cached path.
18881888 unset( $plugin_main_file->path );
@@ -8016,7 +8016,6 @@ private function maybe_network_activate_addon_license( $license = null ) {
80168016 }
80178017 }
80188018
8019- // @phpstan-ignore-next-line
80208019 if ( ! empty( $site_ids ) ) {
80218020 $this->activate_license_on_many_sites( $user, $license->secret_key, $site_ids );
80228021 }
@@ -8955,7 +8954,7 @@ private function update_plugin_version_event() {
89558954 * @author Vova Feldman (@svovaf)
89568955 * @since 2.0.0
89578956 *
8958- * @param string[] $plugins
8957+ * @param array< string, array> $plugins
89598958 *
89608959 * @return string
89618960 */
@@ -14101,7 +14100,7 @@ private function activate_license(
1410114100 $result = $fs->activate_license_on_many_installs( $user, $license_key, $blog_2_install_map );
1410214101 }
1410314102
14104- if ( true === $result && count ( $site_ids ) > 0 ) {
14103+ if ( true === $result && ! empty ( $site_ids ) > 0 ) {
1410514104 $result = $fs->activate_license_on_many_sites( $user, $license_key, $site_ids );
1410614105 }
1410714106 } else {
@@ -19923,7 +19922,7 @@ private function _store_site( $store = true, $network_level_or_blog_id = null, F
1992319922 $site = $this->_site;
1992419923 }
1992519924
19926- if ( !is_object($site) || empty( $site->id ) ) {
19925+ if ( ! is_object( $site ) || empty( $site->id ) ) {
1992719926 $this->_logger->error( "Empty install ID, can't store site." );
1992819927
1992919928 return;
@@ -20057,7 +20056,7 @@ private function _store_licenses( $store = true, $module_id = false, $licenses =
2005720056 }
2005820057 }
2005920058
20060- if ( count ( $new_user_licenses_map ) > 0 ) {
20059+ if ( ! empty ( $new_user_licenses_map ) ) {
2006120060 // Add new licenses.
2006220061 $all_licenses[ $module_id ] = array_merge( array_values( $new_user_licenses_map ), $all_licenses[ $module_id ] );
2006320062 }
0 commit comments