@@ -159,10 +159,10 @@ |
||
159 | 159 | { |
160 | 160 | $result = []; |
161 | 161 | foreach (['id', 'type'] as $key) { |
162 | - $getter = 'get' . ucfirst($key); |
|
162 | + $getter = 'get'.ucfirst($key); |
|
163 | 163 | $value = $identifier->$getter(); |
164 | 164 | if ($value === null || is_array($value) || (is_object($value) && !method_exists($value, '__toString'))) { |
165 | - throw new InvalidValueException("The value {$key} of resource object " . get_class($identifier) . ' MUST be a string.'); |
|
165 | + throw new InvalidValueException("The value {$key} of resource object ".get_class($identifier).' MUST be a string.'); |
|
166 | 166 | } |
167 | 167 | $result[$key] = (string) $value; |
168 | 168 | } |
@@ -5,7 +5,6 @@ |
||
5 | 5 | |
6 | 6 | namespace tuyakhov\jsonapi; |
7 | 7 | |
8 | -use yii\base\InvalidConfigException; |
|
9 | 8 | use yii\helpers\ArrayHelper; |
10 | 9 | use yii\helpers\Inflector; |
11 | 10 | use \yii\web\JsonParser; |