@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Document; |
5 | 5 | |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | */ |
251 | 251 | public function __toString(): string |
252 | 252 | { |
253 | - return 'Error-object with ' . ( |
|
253 | + return 'Error-object with '.( |
|
254 | 254 | $this->id === null |
255 | 255 | ? 'no ID' |
256 | 256 | : sprintf('ID: "%s"', $this->id) |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Document; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Document; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Document; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Document; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Document; |
5 | 5 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Document; |
5 | 5 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Hydrator; |
5 | 5 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function hydrate($source): AbstractDocument |
51 | 51 | { |
52 | - if (! isset($source->data)) { |
|
52 | + if (!isset($source->data)) { |
|
53 | 53 | return $this->processNoDataDocument($source); |
54 | 54 | } |
55 | 55 | |
@@ -139,11 +139,11 @@ discard block |
||
139 | 139 | */ |
140 | 140 | public function hydrateResource($source): ResourceObject |
141 | 141 | { |
142 | - if (! isset($source->id)) { |
|
142 | + if (!isset($source->id)) { |
|
143 | 143 | throw new InvalidDocumentException('Resource contains no ID'); |
144 | 144 | } |
145 | 145 | |
146 | - if (! isset($source->type)) { |
|
146 | + if (!isset($source->type)) { |
|
147 | 147 | throw new InvalidDocumentException('Resource contains no type'); |
148 | 148 | } |
149 | 149 |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types = 1); |
|
2 | +declare(strict_types=1); |
|
3 | 3 | |
4 | 4 | namespace Mikemirten\Component\JsonApi\Hydrator\Extension; |
5 | 5 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function hydrate($object, $source, DocumentHydrator $hydrator) |
24 | 24 | { |
25 | - if (! $object instanceof LinksAwareInterface) { |
|
25 | + if (!$object instanceof LinksAwareInterface) { |
|
26 | 26 | throw new InvalidDocumentException(sprintf( |
27 | 27 | 'Given instance of "%s" does not implements "%s"', |
28 | 28 | get_class($object), |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | return new LinkObject($source); |
52 | 52 | } |
53 | 53 | |
54 | - if (! isset($source->href)) { |
|
54 | + if (!isset($source->href)) { |
|
55 | 55 | throw new InvalidDocumentException('Link must be a string or an object contains "href" attribute.'); |
56 | 56 | } |
57 | 57 |