@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | public function hydrate($object, $source, DocumentHydrator $hydrator) |
| 22 | 22 | { |
| 23 | - if (! $object instanceof IncludedResourcesAwareInterface) { |
|
| 23 | + if (!$object instanceof IncludedResourcesAwareInterface) { |
|
| 24 | 24 | throw new InvalidDocumentException(sprintf( |
| 25 | 25 | 'Given instance of "%s" does not implements "%s"', |
| 26 | 26 | get_class($object), |
@@ -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 | |