Passed
Push — master ( 571783...6b7895 )
by Nate
05:50
created
src/behaviors/RecordAccessor.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
 
138 138
     /**
139 139
      * @deprecated
140
-     * @param $condition
140
+     * @param string $condition
141 141
      * @param string $scenario
142 142
      * @return RecordInterface|null
143 143
      */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
         $query = $recordClass::find();
67 67
 
68
-        if($criteria) {
68
+        if ($criteria) {
69 69
 
70 70
             QueryHelper::configure(
71 71
                 $query,
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         // Do we need to set properties too
124 124
         if ($properties) {
125 125
 
126
-            if(!is_array($properties)) {
126
+            if (!is_array($properties)) {
127 127
                 $properties = ArrayHelper::toArray($properties, [], false);
128 128
             }
129 129
 
Please login to merge, or discard this patch.
src/helpers/LoggingHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     /**
30 30
      * prefixSessionData.
31 31
      *
32
-     * @return callable
32
+     * @return \Closure
33 33
      */
34 34
     public static function prefixSessionData()
35 35
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public static function prefixSessionData()
35 35
     {
36
-        return function ($message) {
36
+        return function($message) {
37 37
             $request = Craft::$app->getRequest();
38 38
             $ip = $request instanceof Request ? $request->getUserIP() : '-';
39 39
 
Please login to merge, or discard this patch.
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.