@@ -85,7 +85,7 @@ |
||
85 | 85 | { |
86 | 86 | $result = []; |
87 | 87 | |
88 | - foreach($a1 as $key => $val) { |
|
88 | + foreach ($a1 as $key => $val) { |
|
89 | 89 | if (!in_array($val, $a2, true)) { |
90 | 90 | $result[$key] = $val; |
91 | 91 | } |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | $resourcesKey = $this->resourcesKey; |
179 | 179 | |
180 | 180 | if (!$resourcesKey) { |
181 | - $class = substr(static::class, strrpos(static::class, '\\') + 1); |
|
181 | + $class = substr(static::class, strrpos(static::class, '\\') + 1); |
|
182 | 182 | $resourcesKey = strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $class)) . 's'; |
183 | 183 | } |
184 | 184 | |
@@ -192,14 +192,14 @@ discard block |
||
192 | 192 | { |
193 | 193 | $operation = $this->getOperation($def); |
194 | 194 | |
195 | - $requestFn = function ($marker) use ($operation, $userVals) { |
|
195 | + $requestFn = function($marker) use ($operation, $userVals) { |
|
196 | 196 | if ($marker) { |
197 | 197 | $userVals['marker'] = $marker; |
198 | 198 | } |
199 | 199 | return $this->sendRequest($operation, $userVals); |
200 | 200 | }; |
201 | 201 | |
202 | - $resourceFn = function (array $data) { |
|
202 | + $resourceFn = function(array $data) { |
|
203 | 203 | $resource = $this->newInstance(); |
204 | 204 | $resource->populateFromArray($data); |
205 | 205 | return $resource; |