@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function __construct($response) |
| 8 | 8 | { |
| 9 | - $message = 'The request failed due to a resource conflict. This can occur if you attempt to to create a duplicate of an existing resource as well as when you attempt to delete a resource that is needed for the functioning of other resources. Response: ' . $response; |
|
| 9 | + $message = 'The request failed due to a resource conflict. This can occur if you attempt to to create a duplicate of an existing resource as well as when you attempt to delete a resource that is needed for the functioning of other resources. Response: '.$response; |
|
| 10 | 10 | parent::__construct($message); |
| 11 | 11 | } |
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function __construct($response) |
| 8 | 8 | { |
| 9 | - $message = 'Authentication with the API key failed. Make sure you are using the correct API key. Response: ' . $response; |
|
| 9 | + $message = 'Authentication with the API key failed. Make sure you are using the correct API key. Response: '.$response; |
|
| 10 | 10 | parent::__construct($message); |
| 11 | 11 | } |
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function __construct($response) |
| 8 | 8 | { |
| 9 | - $message = 'The request failed. This is most commonly the result of failing to include all required fields or failing validation on the object. Response: ' . $response; |
|
| 9 | + $message = 'The request failed. This is most commonly the result of failing to include all required fields or failing validation on the object. Response: '.$response; |
|
| 10 | 10 | parent::__construct($message); |
| 11 | 11 | } |
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | { |
| 7 | 7 | public function __construct($response) |
| 8 | 8 | { |
| 9 | - $message = 'Object could not be created ' . $response; |
|
| 9 | + $message = 'Object could not be created '.$response; |
|
| 10 | 10 | parent::__construct($message); |
| 11 | 11 | } |
| 12 | 12 | } |
| 13 | 13 | \ No newline at end of file |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | public function getDeletePath() |
| 23 | 23 | { |
| 24 | - return $this->deletePath ?? $this->getResourceName() . '/' . $this->getAttribute('id'); |
|
| 24 | + return $this->deletePath ?? $this->getResourceName().'/'.$this->getAttribute('id'); |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function setDeletePath($path) : void |
@@ -89,8 +89,8 @@ |
||
| 89 | 89 | |
| 90 | 90 | if ($this->checkFields) { |
| 91 | 91 | return |
| 92 | - in_array(str_singular($field) . '_id', $this->getFields(), false) |
|
| 93 | - || in_array(str_singular($field) . '_ids', $this->getFields(), false) |
|
| 92 | + in_array(str_singular($field).'_id', $this->getFields(), false) |
|
| 93 | + || in_array(str_singular($field).'_ids', $this->getFields(), false) |
|
| 94 | 94 | || in_array($field, $this->getFields(), false) |
| 95 | 95 | || in_array($field, $this->getHidden(), false); |
| 96 | 96 | } |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | if ($parameters) { |
| 29 | - $path .= '?' . http_build_query($parameters); |
|
| 29 | + $path .= '?'.http_build_query($parameters); |
|
| 30 | 30 | } |
| 31 | 31 | return $this->getClient()->request('get', $path); |
| 32 | 32 | } |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | public function load(array $parameters = NULL) |
| 43 | 43 | { |
| 44 | 44 | $parameters = $parameters ?? ['id' => $this->getAttribute('id')]; |
| 45 | - $path = $this->processPath($this->getLoadPath() ?? $this->getResourceName() . '/' . $this->getAttribute('id')); |
|
| 45 | + $path = $this->processPath($this->getLoadPath() ?? $this->getResourceName().'/'.$this->getAttribute('id')); |
|
| 46 | 46 | $this->setValues($this->getRequest($path, $parameters)); |
| 47 | 47 | return $this; |
| 48 | 48 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | if ($this->getAttribute('id') === NULL) { |
| 21 | 21 | throw new IdMissing($this); |
| 22 | 22 | } |
| 23 | - $path = $this->getSavePath() ?? $this->getResourceName() . '/' . $this->getAttribute('id'); |
|
| 23 | + $path = $this->getSavePath() ?? $this->getResourceName().'/'.$this->getAttribute('id'); |
|
| 24 | 24 | $this->setValues($this->postRequest($path)); |
| 25 | 25 | return $this; |
| 26 | 26 | } |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | $this->setCount($items->count); |
| 125 | 125 | $this->setNextPage(); |
| 126 | 126 | |
| 127 | - foreach ((array)$items->data as $item) { |
|
| 127 | + foreach ((array) $items->data as $item) { |
|
| 128 | 128 | $list[] = new $this($item, $this->getClient()); |
| 129 | 129 | } |
| 130 | 130 | |