@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | // If this resource is the same as the top-level "data" |
85 | 85 | // resource, then we don't want it to show up again in the |
86 | 86 | // "included" array. |
87 | - if (! $includeParent && $child->getType() === $type && $child->getId() === $id) { |
|
87 | + if (!$includeParent && $child->getType() === $type && $child->getId() === $id) { |
|
88 | 88 | continue; |
89 | 89 | } |
90 | 90 | |
@@ -169,11 +169,11 @@ discard block |
||
169 | 169 | { |
170 | 170 | $document = []; |
171 | 171 | |
172 | - if (! empty($this->links)) { |
|
172 | + if (!empty($this->links)) { |
|
173 | 173 | $document['links'] = $this->links; |
174 | 174 | } |
175 | 175 | |
176 | - if (! empty($this->data)) { |
|
176 | + if (!empty($this->data)) { |
|
177 | 177 | $document['data'] = $this->data->toArray(); |
178 | 178 | |
179 | 179 | $resources = $this->getIncluded($this->data); |
@@ -185,15 +185,15 @@ discard block |
||
185 | 185 | } |
186 | 186 | } |
187 | 187 | |
188 | - if (! empty($this->meta)) { |
|
188 | + if (!empty($this->meta)) { |
|
189 | 189 | $document['meta'] = $this->meta; |
190 | 190 | } |
191 | 191 | |
192 | - if (! empty($this->errors)) { |
|
192 | + if (!empty($this->errors)) { |
|
193 | 193 | $document['errors'] = $this->errors; |
194 | 194 | } |
195 | 195 | |
196 | - if (! empty($this->jsonapi)) { |
|
196 | + if (!empty($this->jsonapi)) { |
|
197 | 197 | $document['jsonapi'] = $this->jsonapi; |
198 | 198 | } |
199 | 199 |