Passed
Push — master ( 6b7895...39c748 )
by Nate
03:35
created
src/helpers/ObjectHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      * Create a new object
49 49
      *
50 50
      * @param $config
51
-     * @param null $instanceOf
51
+     * @param string $instanceOf
52 52
      * @return ObjectInterface
53 53
      * @throws InvalidConfigurationException
54 54
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $object = new $class();
63 63
 
64 64
         // Populate
65
-        if($config) {
65
+        if ($config) {
66 66
             static::populate($object, $config);
67 67
         }
68 68
 
Please login to merge, or discard this patch.
src/services/ModelAccessor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
      *******************************************/
126 126
 
127 127
     /**
128
-     * @param array $config
128
+     * @param \flipbox\spark\records\Interfaces\RecordInterface $config
129 129
      * @param string $scenario
130 130
      * @return ModelInterface
131 131
      */
Please login to merge, or discard this patch.
src/services/ObjectAccessor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      *******************************************/
69 69
 
70 70
     /**
71
-     * @param array $config
71
+     * @param \flipbox\spark\records\Interfaces\RecordInterface $config
72 72
      * @return ObjectInterface
73 73
      */
74 74
     public function create($config = [])
Please login to merge, or discard this patch.
src/services/RecordAccessor.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use flipbox\spark\exceptions\InvalidRecordException;
16 16
 use flipbox\spark\exceptions\RecordNotFoundException;
17 17
 use flipbox\spark\helpers\ArrayHelper;
18
-use flipbox\spark\helpers\RecordHelper;
19 18
 use flipbox\spark\Records\interfaces\RecordInterface;
20 19
 use yii\base\Component as BaseComponent;
21 20
 
Please login to merge, or discard this patch.
src/services/traits/ModelAccessorByHandleTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 
47 47
 
48 48
     /**
49
-     * @param array $config
49
+     * @param \flipbox\spark\records\Interfaces\RecordWithHandleInterface $config
50 50
      * @param string $scenario
51 51
      * @return ModelWithHandleInterface
52 52
      */
Please login to merge, or discard this patch.
src/services/traits/ModelAccessorByIdTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     public abstract function findByRecord(RecordInterface $record, $scenario = ModelHelper::SCENARIO_SAVE);
47 47
 
48 48
     /**
49
-     * @param array $config
49
+     * @param \flipbox\spark\records\Interfaces\RecordWithIdInterface $config
50 50
      * @param string $scenario
51 51
      * @return ModelWithIdInterface
52 52
      */
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     /**
122 122
      * @param $id
123 123
      * @param string $scenario
124
-     * @return ModelWithIdInterface|null
124
+     * @return null|ModelInterface
125 125
      */
126 126
     public function findById($id, $scenario = ModelHelper::SCENARIO_SAVE)
127 127
     {
Please login to merge, or discard this patch.
src/services/traits/ModelDeleteTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
      *******************************************/
29 29
 
30 30
     /**
31
-     * @param array $config
31
+     * @param ModelWithIdInterface $config
32 32
      * @return ModelEvent
33 33
      */
34 34
     abstract protected function createEvent($config = []);
35 35
 
36 36
     /**
37
-     * @param $condition
37
+     * @param string $condition
38 38
      * @param string $scenario
39 39
      * @return RecordWithIdInterface
40 40
      */
Please login to merge, or discard this patch.
src/services/traits/ModelInsertTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,13 +29,13 @@
 block discarded – undo
29 29
      *******************************************/
30 30
 
31 31
     /**
32
-     * @param array $config
32
+     * @param ModelWithIdInterface $config
33 33
      * @return ModelEvent
34 34
      */
35 35
     abstract protected function createEvent($config = []);
36 36
 
37 37
     /**
38
-     * @param array $config
38
+     * @param ModelWithIdInterface $config
39 39
      * @param string $scenario
40 40
      * @return RecordWithIdInterface
41 41
      */
Please login to merge, or discard this patch.
src/services/traits/ModelStateTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 
56 56
 
57 57
     /**
58
-     * @param array $config
58
+     * @param ModelWithIdAndState $config
59 59
      * @return ModelEvent
60 60
      */
61 61
     abstract protected function createEvent($config = []);
Please login to merge, or discard this patch.