@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
12 | 12 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public static function fromArray(array $eventsArray): DomainEventSequence |
24 | 24 | { |
25 | - return new static(array_map(function (array $eventState) { |
|
25 | + return new static(array_map(function(array $eventState) { |
|
26 | 26 | $eventFqcn = self::resolveEventFqcn($eventState); |
27 | 27 | return $eventFqcn::fromArray($eventState); |
28 | 28 | }, $eventsArray)); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | |
36 | 36 | public function __construct(array $events = []) |
37 | 37 | { |
38 | - (function (DomainEventInterface ...$events) { |
|
38 | + (function(DomainEventInterface ...$events) { |
|
39 | 39 | $this->compositeVector = new Vector($events); |
40 | 40 | })(...$events); |
41 | 41 | } |
@@ -74,12 +74,12 @@ discard block |
||
74 | 74 | return $this->isEmpty() ? AggregateRevision::makeEmpty() : $this->getTail()->getAggregateRevision(); |
75 | 75 | } |
76 | 76 | |
77 | - public function getTail(): ?DomainEventInterface |
|
77 | + public function getTail(): ? DomainEventInterface |
|
78 | 78 | { |
79 | 79 | return $this->compositeVector->first(); |
80 | 80 | } |
81 | 81 | |
82 | - public function getHead(): ?DomainEventInterface |
|
82 | + public function getHead(): ? DomainEventInterface |
|
83 | 83 | { |
84 | 84 | return $this->compositeVector->last(); |
85 | 85 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\Aggregate; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\EventStore; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\EventStore; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\EventStore; |
12 | 12 |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\EventStore; |
12 | 12 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return $stream; |
91 | 91 | } |
92 | 92 | |
93 | - public function getHead(): ?CommitInterface |
|
93 | + public function getHead(): ? CommitInterface |
|
94 | 94 | { |
95 | 95 | return $this->commitSequence->isEmpty() ? null : $this->commitSequence->getHead(); |
96 | 96 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\EventStore; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\EventStore; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * file that was distributed with this source code. |
7 | 7 | */ |
8 | 8 | |
9 | -declare(strict_types=1); |
|
9 | +declare(strict_types = 1); |
|
10 | 10 | |
11 | 11 | namespace Daikon\EventSourcing\EventStore; |
12 | 12 |