PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / 1.7.7
Image Optimizer – Compress Images and Convert to WebP or AVIF v1.7.7
1.7.7 1.7.6 1.7.5 1.7.4 trunk 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.3.0 1.4.0 1.4.1 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 All 33 releases
← All changes | vendor/woocommerce/action-scheduler/classes/migration/Controller.php +26 -8 1.5.3 → 1.7.7 View file →
@@ -18,21 +18,41 @@
18 18 *
19 19 * @codeCoverageIgnore
20 20 */
21 21 class Controller {
22 - /** @var self */
22 + /**
23 + * Instance.
24 + *
25 + * @var self
26 + */
23 27 private static $instance;
24 28
25 - /** @var Action_Scheduler\Migration\Scheduler */
29 + /**
30 + * Scheduler instance.
31 + *
32 + * @var Action_Scheduler\Migration\Scheduler
33 + */
26 34 private $migration_scheduler;
27 35
28 - /** @var string */
36 + /**
37 + * Class name of the store object.
38 + *
39 + * @var string
40 + */
29 41 private $store_classname;
30 42
31 - /** @var string */
43 + /**
44 + * Class name of the logger object.
45 + *
46 + * @var string
47 + */
32 48 private $logger_classname;
33 49
34 - /** @var bool */
50 + /**
51 + * Flag to indicate migrating custom store.
52 + *
53 + * @var bool
54 + */
35 55 private $migrate_custom_store;
36 56
37 57 /**
38 58 * Controller constructor.
@@ -142,9 +162,9 @@
142 162 $config->set_progress_bar( new ProgressBar( '', 0 ) );
143 163 }
144 164 }
145 165
146 - return apply_filters( 'action_scheduler/migration_config', $config );
166 + return apply_filters( 'action_scheduler/migration_config', $config ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
147 167 }
148 168
149 169 /**
150 170 * Hook dashboard migration notice.
@@ -178,10 +198,8 @@
178 198 }
179 199
180 200 /**
181 201 * Possibly hook the migration scheduler action.
182 - *
183 - * @author Jeremy Pry
184 202 */
185 203 public function maybe_hook_migration() {
186 204 if ( ! $this->allow_migration() || \ActionScheduler_DataController::is_migration_complete() ) {
187 205 return;