@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -18,7 +18,7 @@ discard block |
||
| 18 | 18 | |
| 19 | 19 | public function getAggregateId(): AggregateIdInterface; |
| 20 | 20 | |
| 21 | - public function getKnownAggregateRevision(): ?AggregateRevision; |
|
| 21 | + public function getKnownAggregateRevision(): ? AggregateRevision; |
|
| 22 | 22 | |
| 23 | 23 | public function hasKnownAggregateRevision(): bool; |
| 24 | 24 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | { |
| 88 | 88 | $handlerName = preg_replace("/Event$/", "", (new \ReflectionClass($event))->getShortName()); |
| 89 | 89 | $handlerMethod = "when".ucfirst($handlerName); |
| 90 | - $handler = [ $this, $handlerMethod ]; |
|
| 90 | + $handler = [$this, $handlerMethod]; |
|
| 91 | 91 | if (!is_callable($handler)) { |
| 92 | 92 | throw new \Exception("Handler '$handlerMethod' isn't callable on ".static::class); |
| 93 | 93 | } |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $commandMessage = $envelope->getMessage(); |
| 38 | 38 | $handlerName = (new \ReflectionClass($commandMessage))->getShortName(); |
| 39 | 39 | $handlerMethod = "handle".ucfirst($handlerName); |
| 40 | - $handler = [ $this, $handlerMethod ]; |
|
| 40 | + $handler = [$this, $handlerMethod]; |
|
| 41 | 41 | if (!is_callable($handler)) { |
| 42 | 42 | throw new \Exception("Handler '$handlerMethod' isn't callable on ".static::class); |
| 43 | 43 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
| 12 | 12 | |