@@ -20,7 +20,7 @@ |
||
20 | 20 | /** |
21 | 21 | * Return the current element |
22 | 22 | * @link http://php.net/manual/en/iterator.current.php |
23 | - * @return mixed Can return any type. |
|
23 | + * @return \RayRutjes\GetEventStore\EventData Can return any type. |
|
24 | 24 | * @since 5.0.0 |
25 | 25 | */ |
26 | 26 | public function current() |
@@ -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 |