@@ -193,10 +193,10 @@ discard block |
||
193 | 193 | { |
194 | 194 | $result = []; |
195 | 195 | foreach (['id', 'type'] as $key) { |
196 | - $getter = 'get' . ucfirst($key); |
|
196 | + $getter = 'get'.ucfirst($key); |
|
197 | 197 | $value = $identifier->$getter(); |
198 | 198 | if ($value === null || is_array($value) || (is_object($value) && !method_exists($value, '__toString'))) { |
199 | - throw new InvalidValueException("The value {$key} of resource object " . get_class($identifier) . ' MUST be a string.'); |
|
199 | + throw new InvalidValueException("The value {$key} of resource object ".get_class($identifier).' MUST be a string.'); |
|
200 | 200 | } |
201 | 201 | if ($key === 'type' && $this->pluralize) { |
202 | 202 | $value = Inflector::pluralize($value); |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | if (!$model instanceof ResourceInterface) { |
245 | 245 | continue; |
246 | 246 | } |
247 | - $uniqueKey = $model->getType() . '/' . $model->getId(); |
|
247 | + $uniqueKey = $model->getType().'/'.$model->getId(); |
|
248 | 248 | if (!isset($data[$uniqueKey])) { |
249 | 249 | $data[$uniqueKey] = $this->serializeModel($model, $inclusion[$name]); |
250 | 250 | } |