Completed
Push — master ( 8505c2...9c2907 )
by Olivier
01:32
created
lib/DelayedEventDispatcher.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * @var array
42 42
      */
43
-    private $queue = [];
43
+    private $queue = [ ];
44 44
 
45 45
     /**
46 46
      * @param EventDispatcherInterface $eventDispatcher
@@ -62,10 +62,10 @@  discard block
 block discarded – undo
62 62
     ) {
63 63
         $this->eventDispatcher = $eventDispatcher;
64 64
         $this->enabled = !$disabled;
65
-        $this->delayArbiter = $delayArbiter ?: function () {
65
+        $this->delayArbiter = $delayArbiter ?: function() {
66 66
             return true;
67 67
         };
68
-        $this->exceptionHandler = $exceptionHandler ?: function (\Throwable $exception) {
68
+        $this->exceptionHandler = $exceptionHandler ?: function(\Throwable $exception) {
69 69
             throw $exception;
70 70
         };
71 71
     }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     public function dispatch($eventName, Event $event = null)
77 77
     {
78 78
         if ($this->shouldDelay($eventName, $event)) {
79
-            $this->queue[] = [ $eventName, $event ];
79
+            $this->queue[ ] = [ $eventName, $event ];
80 80
 
81 81
             return $event;
82 82
         }
Please login to merge, or discard this patch.