Passed
Push — master ( ebadb4...c200dc )
by Olivier
02:05
created
lib/DelayedEventDispatcher.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * @var array
47 47
      */
48
-    private $queue = [];
48
+    private $queue = [ ];
49 49
 
50 50
     /**
51 51
      * @param EventDispatcherInterface $eventDispatcher
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
     ) {
69 69
         $this->eventDispatcher = $eventDispatcher;
70 70
         $this->enabled = !$disabled;
71
-        $this->delayArbiter = $delayArbiter ?: function () {
71
+        $this->delayArbiter = $delayArbiter ?: function() {
72 72
             return true;
73 73
         };
74
-        $this->exceptionHandler = $exceptionHandler ?: function (\Throwable $exception) {
74
+        $this->exceptionHandler = $exceptionHandler ?: function(\Throwable $exception) {
75 75
             throw $exception;
76 76
         };
77
-        $this->flusher = $flusher ?: function (string $eventName, Event $event) {
77
+        $this->flusher = $flusher ?: function(string $eventName, Event $event) {
78 78
             $this->eventDispatcher->dispatch($eventName, $event);
79 79
         };
80 80
     }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     public function dispatch($eventName, Event $event = null)
86 86
     {
87 87
         if ($this->shouldDelay($eventName, $event)) {
88
-            $this->queue[] = [ $eventName, $event ];
88
+            $this->queue[ ] = [ $eventName, $event ];
89 89
 
90 90
             return $event;
91 91
         }
Please login to merge, or discard this patch.