@@ -209,11 +209,11 @@ |
||
| 209 | 209 | { |
| 210 | 210 | $body = ''; |
| 211 | 211 | $options = array_merge($this->getOptions(), $options); |
| 212 | - $options['auth'] = [$this->getKey() . ':', '']; |
|
| 212 | + $options['auth'] = [$this->getKey().':', '']; |
|
| 213 | 213 | try { |
| 214 | - $response = $this->getHttpClient()->request($method, $this->getApiEndPoint() . $path, $options); |
|
| 214 | + $response = $this->getHttpClient()->request($method, $this->getApiEndPoint().$path, $options); |
|
| 215 | 215 | $this->setLastResponse($response); |
| 216 | - $body = json_decode((string)$response->getBody()); |
|
| 216 | + $body = json_decode((string) $response->getBody()); |
|
| 217 | 217 | |
| 218 | 218 | } catch (BadResponseException $exception) { |
| 219 | 219 | $this->handleError($exception); |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | |
| 48 | 48 | public function setPreviousObject(AbstractEntity $object) : void |
| 49 | 49 | { |
| 50 | - $objectId = strtolower((new \ReflectionClass($object))->getShortName()) . '_id'; |
|
| 50 | + $objectId = strtolower((new \ReflectionClass($object))->getShortName()).'_id'; |
|
| 51 | 51 | if (null !== $object->getAttribute('id') && $this->checkField($objectId)) { |
| 52 | 52 | $this->setAttribute($objectId, $object->getAttribute('id')); |
| 53 | 53 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | return; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - foreach ((array)$values as $key => $value) { |
|
| 74 | + foreach ((array) $values as $key => $value) { |
|
| 75 | 75 | if (isset($value->object)) { |
| 76 | 76 | $className = checkrEntityClassName($value->object); |
| 77 | 77 | $value = new $className($value, $this->getClient()); |