@@ -166,10 +166,10 @@ |
||
| 166 | 166 | { |
| 167 | 167 | $result = []; |
| 168 | 168 | foreach (['id', 'type'] as $key) { |
| 169 | - $getter = 'get' . ucfirst($key); |
|
| 169 | + $getter = 'get'.ucfirst($key); |
|
| 170 | 170 | $value = $identifier->$getter(); |
| 171 | 171 | if ($value === null || is_array($value) || (is_object($value) && !method_exists($value, '__toString'))) { |
| 172 | - throw new InvalidValueException("The value {$key} of resource object " . get_class($identifier) . ' MUST be a string.'); |
|
| 172 | + throw new InvalidValueException("The value {$key} of resource object ".get_class($identifier).' MUST be a string.'); |
|
| 173 | 173 | } |
| 174 | 174 | if ($key === 'type' && $this->pluralize) { |
| 175 | 175 | $value = Inflector::pluralize($value); |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public function parse($rawBody, $contentType) |
| 35 | 35 | { |
| 36 | 36 | $array = parent::parse($rawBody, $contentType); |
| 37 | - $data = ArrayHelper::getValue($array, 'data', []); |
|
| 37 | + $data = ArrayHelper::getValue($array, 'data', []); |
|
| 38 | 38 | if (empty($data)) { |
| 39 | 39 | if ($this->throwException) { |
| 40 | 40 | throw new BadRequestHttpException('The request MUST include a single resource object as primary data.'); |