@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http; |
4 | 4 | |
5 | 5 | use Psr\Http\Message\ResponseInterface; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http; |
4 | 4 | |
5 | 5 | use GuzzleHttp\Psr7\Request; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http; |
4 | 4 | |
5 | 5 | use Psr\Http\Message\ResponseInterface; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http; |
4 | 4 | |
5 | 5 | class ContentType |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http; |
4 | 4 | |
5 | 5 | use Psr\Http\Message\ResponseInterface; |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http\Feed; |
4 | 4 | |
5 | 5 | class EventEntry |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | public function __construct(array $links) |
16 | 16 | { |
17 | 17 | foreach ($links as $link) { |
18 | - if(!$link instanceof EventEntryFeedLink) { |
|
18 | + if (!$link instanceof EventEntryFeedLink) { |
|
19 | 19 | throw new \InvalidArgumentException('Invalid link type %s.', get_class($link)); |
20 | 20 | } |
21 | 21 | if (isset($this->links[$link->getRelation()])) { |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http\Feed; |
4 | 4 | |
5 | 5 | use RayRutjes\GetEventStore\EventRecord; |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | { |
33 | 33 | $this->event = $eventRecord; |
34 | 34 | foreach ($links as $link) { |
35 | - if(!$link instanceof EventFeedLink) { |
|
35 | + if (!$link instanceof EventFeedLink) { |
|
36 | 36 | throw new \InvalidArgumentException('Invalid link type %s.', get_class($link)); |
37 | 37 | } |
38 | 38 | if (isset($this->links[$link->getRelation()])) { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http\Feed; |
4 | 4 | |
5 | 5 | class EventFeedLink |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | namespace RayRutjes\GetEventStore\Client\Http\Feed; |
4 | 4 | |
5 | 5 | use RayRutjes\GetEventStore\Client\Http\HttpClient; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function current(): EventStreamFeed |
85 | 85 | { |
86 | 86 | if (null === $this->currentFeed) { |
87 | - if(true === $this->initialized) { |
|
87 | + if (true === $this->initialized) { |
|
88 | 88 | throw new \OutOfBoundsException('Stream overflow.'); |
89 | 89 | } else { |
90 | 90 | $this->rewind(); |