Completed
Push — master ( eb0ddf...6e23e2 )
by Daniel
03:16
created
src/EventSourcing/EventStore/AbstractEventStore.php 1 patch
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.
src/EventSourcing/Versioning/JsonTransformer/JsonTransformer.php 1 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.
src/EventSourcing/Common/EventSourcedAggregateRoot.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * Record a Domain Event
30 30
      *
31
-     * @param mixed $domainEvent
31
+     * @param DomainEvent $domainEvent
32 32
      */
33 33
     private function record($domainEvent)
34 34
     {
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * Apply a Domain Event to the aggregate
48 48
      *
49
-     * @param mixed $domainEvent
49
+     * @param DomainEvent $domainEvent
50 50
      */
51 51
     public function apply($domainEvent)
52 52
     {
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     /**
75 75
      * @param string $eventHandlerName
76
-     * @param mixed $domainEventData
76
+     * @param DomainEvent $domainEventData
77 77
      * @throws DomainEventNotUnderstandableException
78 78
      */
79 79
     private function applyRecursively($eventHandlerName, $domainEventData)
Please login to merge, or discard this patch.