Passed
Push — master ( 1ed3bc...fab39f )
by Glynn
25:38 queued 16:26
created
src/Queue_Bootstrap.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -36,13 +36,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 		);
Please login to merge, or discard this patch.