Test Setup Failed
Branch — master (a4a60d)
by Daniel
02:52
created
src/EventSourcing/EventStore/AbstractEventStore.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
     /**
116 116
      * @param string $streamId
117 117
      * @param DomainEvent[] $events
118
-     * @return array
118
+     * @return StoredEvent[]
119 119
      */
120 120
     private function storedEventsFromEvents($streamId, $events)
121 121
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function domainEventStreamFromStoredEvents($storedEvents)
71 71
     {
72
-        $domainEvents = array_map(function (StoredEvent $storedEvent) {
72
+        $domainEvents = array_map(function(StoredEvent $storedEvent) {
73 73
             $this->eventUpgrader->migrate($storedEvent);
74 74
             return new DomainEvent(
75 75
                 $this->serializer->deserialize(
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     private function storedEventsFromEvents($streamId, $events)
121 121
     {
122
-        $storedEvents = array_map(function (DomainEvent $event) use ($streamId) {
122
+        $storedEvents = array_map(function(DomainEvent $event) use ($streamId) {
123 123
             return new StoredEvent(
124 124
                 $this->nextStoredEventId(),
125 125
                 $streamId,
Please login to merge, or discard this patch.
src/EventSourcing/Common/EventSourcedAggregateRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
171 171
             }
172 172
         }
173 173
         if (is_null($aggregateIdMethodName)) {
174
-            throw new \RuntimeException('No method "id", "getId" or with "@AggregateId" annotation found in '. get_class($aggregate));
174
+            throw new \RuntimeException('No method "id", "getId" or with "@AggregateId" annotation found in ' . get_class($aggregate));
175 175
         }
176 176
         return (string) $aggregate->{$aggregateIdMethodName}();
177 177
     }
Please login to merge, or discard this patch.
src/EventSourcing/Versioning/Version.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         if (preg_match($versionPattern, $version, $matches) !== 1) {
38 38
             throw new \InvalidArgumentException('Invalid version format.');
39 39
         }
40
-        return new self((int)$matches[1], (int)$matches[2]);
40
+        return new self((int) $matches[1], (int) $matches[2]);
41 41
     }
42 42
 
43 43
     /**
Please login to merge, or discard this patch.
src/EventSourcing/Versioning/JsonTransformer/JsonTransformer.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             } else {
40 40
                 if ($currentToken instanceof ArrayAccessToken) {
41 41
                     $currentNode = &$currentNode[$currentToken->index()];
42
-                }  else if ($currentToken instanceof ObjectAccessToken) {
42
+                } else if ($currentToken instanceof ObjectAccessToken) {
43 43
                     $currentNode = &$currentNode->{$currentToken->fieldName()};
44 44
                 }
45 45
             }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             } else {
64 64
                 if ($currentToken instanceof ArrayAccessToken) {
65 65
                     $currentNode = &$currentNode[$currentToken->index()];
66
-                }  else if ($currentToken instanceof ObjectAccessToken) {
66
+                } else if ($currentToken instanceof ObjectAccessToken) {
67 67
                     $currentNode = &$currentNode->{$currentToken->fieldName()};
68 68
                 }
69 69
             }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             } else {
87 87
                 if ($currentToken instanceof ArrayAccessToken) {
88 88
                     $currentNode = &$currentNode[$currentToken->index()];
89
-                }  else if ($currentToken instanceof ObjectAccessToken) {
89
+                } else if ($currentToken instanceof ObjectAccessToken) {
90 90
                     $currentNode = &$currentNode->{$currentToken->fieldName()};
91 91
                 }
92 92
             }
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             } else {
40 40
                 if ($currentToken instanceof ArrayAccessToken) {
41 41
                     $currentNode = &$currentNode[$currentToken->index()];
42
-                }  else if ($currentToken instanceof ObjectAccessToken) {
42
+                } else if ($currentToken instanceof ObjectAccessToken) {
43 43
                     $currentNode = &$currentNode->{$currentToken->fieldName()};
44 44
                 }
45 45
             }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             } else {
64 64
                 if ($currentToken instanceof ArrayAccessToken) {
65 65
                     $currentNode = &$currentNode[$currentToken->index()];
66
-                }  else if ($currentToken instanceof ObjectAccessToken) {
66
+                } else if ($currentToken instanceof ObjectAccessToken) {
67 67
                     $currentNode = &$currentNode->{$currentToken->fieldName()};
68 68
                 }
69 69
             }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             } else {
87 87
                 if ($currentToken instanceof ArrayAccessToken) {
88 88
                     $currentNode = &$currentNode[$currentToken->index()];
89
-                }  else if ($currentToken instanceof ObjectAccessToken) {
89
+                } else if ($currentToken instanceof ObjectAccessToken) {
90 90
                     $currentNode = &$currentNode->{$currentToken->fieldName()};
91 91
                 }
92 92
             }
Please login to merge, or discard this patch.