@@ -36,13 +36,13 @@ discard block |
||
36 | 36 | * @param Queue $queue_driver The Queue Driver. |
37 | 37 | * @return void |
38 | 38 | */ |
39 | - public static function init( Queue $queue_driver ): void { |
|
39 | + public static function init(Queue $queue_driver): void { |
|
40 | 40 | $queue_driver->setup(); |
41 | 41 | |
42 | 42 | // initialize the queue driver |
43 | 43 | add_action( |
44 | 44 | 'init', |
45 | - function() use ( $queue_driver ) { |
|
45 | + function() use ($queue_driver) { |
|
46 | 46 | $queue_driver->init(); |
47 | 47 | }, |
48 | 48 | -1 |
@@ -50,16 +50,16 @@ discard block |
||
50 | 50 | |
51 | 51 | add_filter( |
52 | 52 | Hooks::APP_INIT_SET_DI_RULES, |
53 | - function( $rules ) use ( $queue_driver ) { |
|
53 | + function($rules) use ($queue_driver) { |
|
54 | 54 | // Ensure the global rules exist. |
55 | - if ( ! \array_key_exists( '*', $rules ) ) { |
|
55 | + if ( ! \array_key_exists('*', $rules)) { |
|
56 | 56 | $rules['*'] = array(); |
57 | 57 | } |
58 | - if ( ! \array_key_exists( 'substitutions', $rules['*'] ) ) { |
|
58 | + if ( ! \array_key_exists('substitutions', $rules['*'])) { |
|
59 | 59 | $rules['*']['substitutions'] = array(); |
60 | 60 | } |
61 | 61 | |
62 | - $rules['*']['substitutions'][ Queue::class ] = $queue_driver; |
|
62 | + $rules['*']['substitutions'][Queue::class] = $queue_driver; |
|
63 | 63 | |
64 | 64 | return $rules; |
65 | 65 | } |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | |
68 | 68 | add_action( |
69 | 69 | HOOKS::APP_INIT_POST_REGISTRATION, |
70 | - function() use ( $queue_driver ) { |
|
70 | + function() use ($queue_driver) { |
|
71 | 71 | $queue_driver->teardown(); |
72 | 72 | } |
73 | 73 | ); |