@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | |
161 | 161 | // Call API to get the response |
162 | 162 | $response = $this->getClient() |
163 | - ->request($this->getPath()); |
|
163 | + ->request($this->getPath()); |
|
164 | 164 | |
165 | 165 | // Peel off the key if exist |
166 | 166 | $response = $this->peelWrapperPropertyIfNeeded(Arr::wrap($response)); |
@@ -260,8 +260,8 @@ discard block |
||
260 | 260 | public function newInstance(): self |
261 | 261 | { |
262 | 262 | return (new static())->setClass($this->class) |
263 | - ->setClient($this->getClient()) |
|
264 | - ->setParent($this->parentModel); |
|
263 | + ->setClient($this->getClient()) |
|
264 | + ->setParent($this->parentModel); |
|
265 | 265 | } |
266 | 266 | |
267 | 267 | /** |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | // Check for single response |
293 | 293 | if (array_key_exists( |
294 | 294 | $this->getModel() |
295 | - ->getResponseKey(), |
|
295 | + ->getResponseKey(), |
|
296 | 296 | $properties |
297 | 297 | )) { |
298 | 298 | return $properties[$this->getModel() |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | // Check for collection of responses |
303 | 303 | if (array_key_exists( |
304 | 304 | $this->getModel() |
305 | - ->getResponseCollectionKey(), |
|
305 | + ->getResponseCollectionKey(), |
|
306 | 306 | $properties |
307 | 307 | )) { |
308 | 308 | return $properties[$this->getModel() |