@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | foreach ($resource->getUnfilteredRelationships() as $relationship) { |
81 | 81 | $includedElement = $relationship->getData(); |
82 | 82 | |
83 | - if (! $includedElement instanceof ElementInterface) { |
|
83 | + if (!$includedElement instanceof ElementInterface) { |
|
84 | 84 | continue; |
85 | 85 | } |
86 | 86 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | // If this resource is the same as the top-level "data" |
89 | 89 | // resource, then we don't want it to show up again in the |
90 | 90 | // "included" array. |
91 | - if (! $includeParent && $child->getType() === $type && $child->getId() === $id) { |
|
91 | + if (!$includeParent && $child->getType() === $type && $child->getId() === $id) { |
|
92 | 92 | continue; |
93 | 93 | } |
94 | 94 | |
@@ -173,11 +173,11 @@ discard block |
||
173 | 173 | { |
174 | 174 | $document = []; |
175 | 175 | |
176 | - if (! empty($this->links)) { |
|
176 | + if (!empty($this->links)) { |
|
177 | 177 | $document['links'] = $this->links; |
178 | 178 | } |
179 | 179 | |
180 | - if (! empty($this->data)) { |
|
180 | + if (!empty($this->data)) { |
|
181 | 181 | $document['data'] = $this->data->toArray(); |
182 | 182 | |
183 | 183 | $resources = $this->getIncluded($this->data); |
@@ -189,15 +189,15 @@ discard block |
||
189 | 189 | } |
190 | 190 | } |
191 | 191 | |
192 | - if (! empty($this->meta)) { |
|
192 | + if (!empty($this->meta)) { |
|
193 | 193 | $document['meta'] = $this->meta; |
194 | 194 | } |
195 | 195 | |
196 | - if (! empty($this->errors)) { |
|
196 | + if (!empty($this->errors)) { |
|
197 | 197 | $document['errors'] = $this->errors; |
198 | 198 | } |
199 | 199 | |
200 | - if (! empty($this->jsonapi)) { |
|
200 | + if (!empty($this->jsonapi)) { |
|
201 | 201 | $document['jsonapi'] = $this->jsonapi; |
202 | 202 | } |
203 | 203 |