@@ -77,7 +77,7 @@ |
||
| 77 | 77 | // of recording. |
| 78 | 78 | $aggregateRootVersion = $aggregateRootVersion - count($events); |
| 79 | 79 | $metadata = [Header::AGGREGATE_ROOT_ID => $aggregateRootId]; |
| 80 | - $messages = array_map(function (object $event) use ($metadata, &$aggregateRootVersion) { |
|
| 80 | + $messages = array_map(function(object $event) use ($metadata, &$aggregateRootVersion) { |
|
| 81 | 81 | return $this->decorator->decorate(new Message( |
| 82 | 82 | $event, |
| 83 | 83 | $metadata + [Header::AGGREGATE_ROOT_VERSION => ++$aggregateRootVersion] |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | { |
| 60 | 60 | $snapshot = $this->snapshotRepository->retrieve($aggregateRootId); |
| 61 | 61 | |
| 62 | - if (!$snapshot instanceof Snapshot) { |
|
| 62 | + if ( ! $snapshot instanceof Snapshot) { |
|
| 63 | 63 | return $this->retrieve($aggregateRootId); |
| 64 | 64 | } |
| 65 | 65 | |