@@ -6,7 +6,6 @@ |
||
6 | 6 | namespace tuyakhov\jsonapi; |
7 | 7 | |
8 | 8 | |
9 | -use yii\base\Arrayable; |
|
10 | 9 | use yii\db\ActiveRecordInterface; |
11 | 10 | use yii\helpers\ArrayHelper; |
12 | 11 | use yii\helpers\Inflector; |
@@ -61,7 +61,7 @@ |
||
61 | 61 | if (!is_array($relation)) { |
62 | 62 | $relation = [$relation]; |
63 | 63 | } |
64 | - foreach($relation as $item) { |
|
64 | + foreach ($relation as $item) { |
|
65 | 65 | if ($item instanceof ResourceIdentifierInterface) { |
66 | 66 | $relationships[$name]['data'] = ['id' => $item->getId(), 'type' => $item->getType()]; |
67 | 67 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author Anton Tuyakhov <[email protected]> |
|
4 | - */ |
|
3 | + * @author Anton Tuyakhov <[email protected]> |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace tuyakhov\jsonapi; |
7 | 7 |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @author Anton Tuyakhov <[email protected]> |
|
4 | - */ |
|
3 | + * @author Anton Tuyakhov <[email protected]> |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace tuyakhov\jsonapi; |
7 | 7 |