@@ -61,7 +61,7 @@ |
||
61 | 61 | */ |
62 | 62 | private function setPaginationLink($name, $url, array $queryParams, $offset, $limit) |
63 | 63 | { |
64 | - if (! isset($queryParams['page']) || ! is_array($queryParams['page'])) { |
|
64 | + if (!isset($queryParams['page']) || !is_array($queryParams['page'])) { |
|
65 | 65 | $queryParams['page'] = []; |
66 | 66 | } |
67 | 67 |
@@ -71,7 +71,7 @@ |
||
71 | 71 | |
72 | 72 | $relationship = $this->$method(); |
73 | 73 | |
74 | - if ($relationship !== null && ! ($relationship instanceof Relationship)) { |
|
74 | + if ($relationship !== null && !($relationship instanceof Relationship)) { |
|
75 | 75 | throw new LogicException('Relationship method must return null or an instance of Tobscure\JsonApi\Relationship'); |
76 | 76 | } |
77 | 77 |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $relationships = []; |
179 | 179 | |
180 | 180 | foreach ($include as $name => $nested) { |
181 | - if (! ($relationship = $resource->getRelationship($name))) { |
|
181 | + if (!($relationship = $resource->getRelationship($name))) { |
|
182 | 182 | continue; |
183 | 183 | } |
184 | 184 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $array = &$tree; |
250 | 250 | |
251 | 251 | foreach ($keys as $key) { |
252 | - if (! isset($array[$key])) { |
|
252 | + if (!isset($array[$key])) { |
|
253 | 253 | $array[$key] = []; |
254 | 254 | } |
255 | 255 |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | public function setAttribute($name, $value) |
25 | 25 | { |
26 | - if (! $this->validateField($name)) { |
|
26 | + if (!$this->validateField($name)) { |
|
27 | 27 | throw new InvalidArgumentException('Invalid attribute name'); |
28 | 28 | } |
29 | 29 | |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | |
37 | 37 | public function setRelationship($name, Relationship $value) |
38 | 38 | { |
39 | - if (! $this->validateField($name)) { |
|
39 | + if (!$this->validateField($name)) { |
|
40 | 40 | throw new InvalidArgumentException('Invalid relationship name'); |
41 | 41 | } |
42 | 42 | |
@@ -60,6 +60,6 @@ discard block |
||
60 | 60 | |
61 | 61 | private function validateField($name) |
62 | 62 | { |
63 | - return ! in_array($name, ['id', 'type']); |
|
63 | + return !in_array($name, ['id', 'type']); |
|
64 | 64 | } |
65 | 65 | } |