@@ -40,7 +40,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | } |