@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function addSearchField(FilterObject $filterObject) : void |
52 | 52 | { |
53 | - if (! in_array($filterObject->getField(), $this->allowedFields)) { |
|
53 | + if (!in_array($filterObject->getField(), $this->allowedFields)) { |
|
54 | 54 | throw new MatcherException( |
55 | 55 | sprintf( |
56 | 56 | 'Field "%s" is not allowed. Allowed: %s', |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | */ |
21 | 21 | public function getByStream(StreamName $streamName, ?int $fromSequence = 0) : array |
22 | 22 | { |
23 | - return array_filter($this->events, static function (EventInterface $event) use ( |
|
23 | + return array_filter($this->events, static function(EventInterface $event) use ( |
|
24 | 24 | $streamName, |
25 | 25 | $fromSequence |
26 | 26 | ) { |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $streamName = $eventMatcher->getStreamName(); |
47 | 47 | $timestamp = $eventMatcher->getTimestamp(); |
48 | 48 | |
49 | - return array_filter($this->events, static function (EventInterface $event) use ( |
|
49 | + return array_filter($this->events, static function(EventInterface $event) use ( |
|
50 | 50 | $aggregateId, |
51 | 51 | $aggregateClass, |
52 | 52 | $fromSequence, |
@@ -54,19 +54,19 @@ discard block |
||
54 | 54 | $timestamp |
55 | 55 | ) { |
56 | 56 | $condition = true; |
57 | - if (! empty($aggregateId)) { |
|
57 | + if (!empty($aggregateId)) { |
|
58 | 58 | $condition = $condition && ($event->getAggregateId() === (string) $aggregateId); |
59 | 59 | } |
60 | - if (! empty($aggregateClass)) { |
|
60 | + if (!empty($aggregateClass)) { |
|
61 | 61 | $condition = $condition && ($event->getAggregateClass() === (string) $aggregateClass); |
62 | 62 | } |
63 | - if (! empty($fromSequence)) { |
|
63 | + if (!empty($fromSequence)) { |
|
64 | 64 | $condition = $condition && ($event->getSequence() > $fromSequence); |
65 | 65 | } |
66 | - if (! empty($streamName)) { |
|
66 | + if (!empty($streamName)) { |
|
67 | 67 | $condition = $condition && ($event->getStreamName() === (string) $streamName); |
68 | 68 | } |
69 | - if (! empty($timestamp)) { |
|
69 | + if (!empty($timestamp)) { |
|
70 | 70 | $condition = $condition && ($event->getStreamName() > $timestamp); |
71 | 71 | } |
72 | 72 | return $condition; |