PluginProbe
Image Optimizer – Compress Images and Convert to WebP or AVIF / trunk
Image Optimizer – Compress Images and Convert to WebP or AVIF vtrunk
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/abstracts/ActionScheduler_Lock.php +14 -4 1.2.0 → trunk View file →
@@ -6,12 +6,20 @@
6 6 * Class ActionScheduler_Lock
7 7 */
8 8 abstract class ActionScheduler_Lock {
9 9
10 - /** @var ActionScheduler_Lock */
11 - private static $locker = NULL;
10 + /**
11 + * Instance.
12 + *
13 + * @var ActionScheduler_Lock
14 + */
15 + private static $locker = null;
12 16
13 - /** @var int */
17 + /**
18 + * Duration of lock.
19 + *
20 + * @var int
21 + */
14 22 protected static $lock_duration = MINUTE_IN_SECONDS;
15 23
16 24 /**
17 25 * Check if a lock is set for a given lock type.
@@ -51,13 +59,15 @@
51 59 return apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type );
52 60 }
53 61
54 62 /**
63 + * Get instance.
64 + *
55 65 * @return ActionScheduler_Lock
56 66 */
57 67 public static function instance() {
58 68 if ( empty( self::$locker ) ) {
59 - $class = apply_filters( 'action_scheduler_lock_class', 'ActionScheduler_OptionLock' );
69 + $class = apply_filters( 'action_scheduler_lock_class', 'ActionScheduler_OptionLock' );
60 70 self::$locker = new $class();
61 71 }
62 72 return self::$locker;
63 73 }