Passed
Push — master ( d63ab9...9b5ad1 )
by Anton
28s
created
src/actions/Action.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * Links the relationships with primary model.
28
-     * @param $model ActiveRecordInterface
28
+     * @param BaseActiveRecord $model ActiveRecordInterface
29 29
      * @param array $data relationship links
30 30
      */
31 31
     protected function linkRelationships($model, array $data = [])
Please login to merge, or discard this patch.
src/actions/DeleteRelationshipAction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
     /**
63 63
      * Removes the relationships from primary model.
64
-     * @param $model ActiveRecordInterface
64
+     * @param BaseActiveRecord $model ActiveRecordInterface
65 65
      * @param array $data relationship links
66 66
      */
67 67
     protected function unlinkRelationships($model, array $data = [])
Please login to merge, or discard this patch.
src/actions/UpdateRelationshipAction.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 
6 6
 namespace tuyakhov\jsonapi\actions;
7 7
 
8
+use Yii;
8 9
 use yii\data\ActiveDataProvider;
9 10
 use yii\db\BaseActiveRecord;
10 11
 use yii\web\BadRequestHttpException;
11 12
 use yii\web\NotFoundHttpException;
12
-use Yii;
13 13
 
14 14
 /**
15 15
  * UpdateRelationshipAction implements the API endpoint for updating relationships.
Please login to merge, or discard this patch.