Passed
Branch master (5bd241)
by Anton
02:23
created
src/ResourceTrait.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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
                     }
Please login to merge, or discard this patch.
src/ResourceInterface.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Serializer.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.