@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * @var object[] |
| 46 | 46 | */ |
| 47 | - private $queue = []; |
|
| 47 | + private $queue = [ ]; |
|
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param EventDispatcherInterface $eventDispatcher |
@@ -70,13 +70,13 @@ discard block |
||
| 70 | 70 | ) { |
| 71 | 71 | $this->eventDispatcher = $eventDispatcher; |
| 72 | 72 | $this->enabled = !$disabled; |
| 73 | - $this->delayArbiter = $delayArbiter ?: function () { |
|
| 73 | + $this->delayArbiter = $delayArbiter ?: function() { |
|
| 74 | 74 | return true; |
| 75 | 75 | }; |
| 76 | - $this->exceptionHandler = $exceptionHandler ?: function (Throwable $exception) { |
|
| 76 | + $this->exceptionHandler = $exceptionHandler ?: function(Throwable $exception) { |
|
| 77 | 77 | throw $exception; |
| 78 | 78 | }; |
| 79 | - $this->flusher = $flusher ?: function (object $event): object { |
|
| 79 | + $this->flusher = $flusher ?: function(object $event): object { |
|
| 80 | 80 | return $this->eventDispatcher->dispatch($event); |
| 81 | 81 | }; |
| 82 | 82 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | public function dispatch(object $event): object |
| 88 | 88 | { |
| 89 | 89 | if ($this->shouldDelay($event)) { |
| 90 | - $this->queue[] = $event; |
|
| 90 | + $this->queue[ ] = $event; |
|
| 91 | 91 | |
| 92 | 92 | return $event; |
| 93 | 93 | } |