@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace EventSauce\EventSourcing; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace EventSauce\EventSourcing\TestUtilities; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace EventSauce\EventSourcing\Serialization; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace EventSauce\EventSourcing\Serialization; |
6 | 6 |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace EventSauce\EventSourcing; |
6 | 6 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace EventSauce\EventSourcing; |
6 | 6 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | public function persistEvents(AggregateRootId $aggregateRootId, int $aggregateRootVersion, object ...$events) |
70 | 70 | { |
71 | 71 | $metadata = [Header::AGGREGATE_ROOT_ID => $aggregateRootId]; |
72 | - $messages = array_map(function (object $event) use ($metadata, &$aggregateRootVersion) { |
|
72 | + $messages = array_map(function(object $event) use ($metadata, &$aggregateRootVersion) { |
|
73 | 73 | return $this->decorator->decorate(new Message( |
74 | 74 | $event, |
75 | 75 | $metadata + [Header::AGGREGATE_ROOT_VERSION => ++$aggregateRootVersion] |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace EventSauce\EventSourcing\Serialization; |
6 | 6 | |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function serializeEvent(object $event): array |
15 | 15 | { |
16 | - if (!$event instanceof SerializableEvent) { |
|
16 | + if ( ! $event instanceof SerializableEvent) { |
|
17 | 17 | throw new \InvalidArgumentException(sprintf( |
18 | 18 | 'Cannot serialize event that does not implement "EventSauce\EventSourcing\Serialization\SerializableEvent".' |
19 | 19 | )); |