Passed
Push — master ( 0315ad...16334a )
by Frank
37s queued 10s
created
src/ConstructingAggregateRootRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
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]
Please login to merge, or discard this patch.
src/Snapshotting/ConstructingAggregateRootRepositoryWithSnapshotting.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.