@@ -208,12 +208,12 @@ |
||
| 208 | 208 | { |
| 209 | 209 | $body = ''; |
| 210 | 210 | $options = array_merge($this->getOptions(), $options); |
| 211 | - $options['auth'] = [$this->getKey() . ':', '']; |
|
| 211 | + $options['auth'] = [$this->getKey().':', '']; |
|
| 212 | 212 | |
| 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 | } catch (BadResponseException $exception) { |
| 218 | 218 | $this->handleError($exception); |
| 219 | 219 | } |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | */ |
| 47 | 47 | public function setPreviousObject(AbstractEntity $object) |
| 48 | 48 | { |
| 49 | - $objectId = strtolower((new \ReflectionClass($object))->getShortName()) . '_id'; |
|
| 49 | + $objectId = strtolower((new \ReflectionClass($object))->getShortName()).'_id'; |
|
| 50 | 50 | if (null !== $object->getAttribute('id') && $this->checkField($objectId)) { |
| 51 | 51 | $this->setAttribute($objectId, $object->getAttribute('id')); |
| 52 | 52 | } |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | return; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | - foreach ((array)$values as $key => $value) { |
|
| 72 | + foreach ((array) $values as $key => $value) { |
|
| 73 | 73 | if (isset($value->object)) { |
| 74 | 74 | $className = checkrEntityClassName($value->object); |
| 75 | 75 | $value = new $className($value, $this->getClient()); |