Passed
Push — master ( 571783...6b7895 )
by Nate
05:50
created
src/services/traits/ModelUpdateTrait.php 1 patch
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
 
31 31
     /**
32
-     * @param array $config
32
+     * @param ModelWithIdInterface $config
33 33
      * @return ModelEvent
34 34
      */
35 35
     abstract protected function createEvent($config = []);
Please login to merge, or discard this patch.
src/services/traits/ObjectAccessorByHandleTrait.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public abstract function findByRecord(RecordInterface $record);
45 45
 
46 46
     /**
47
-     * @param array $config
47
+     * @param \flipbox\spark\records\Interfaces\RecordWithIdInterface $config
48 48
      * @return ObjectInterface
49 49
      */
50 50
     public abstract function create($config = []);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * @param $handle
58
-     * @return ModelWithIdInterface|null
58
+     * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null
59 59
      */
60 60
     public function freshFindByHandle($handle)
61 61
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     /**
81 81
      * @param $handle
82
-     * @return ModelWithIdInterface|null
82
+     * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface
83 83
      * @throws ObjectNotFoundException
84 84
      */
85 85
     public function freshGetByHandle($handle)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     /**
104 104
      * @param $handle
105
-     * @return ModelWithIdInterface|null
105
+     * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null
106 106
      */
107 107
     public function findByHandle($handle)
108 108
     {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
     /**
143 143
      * @param $handle
144
-     * @return ModelWithIdInterface|null
144
+     * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface
145 145
      * @throws ObjectNotFoundException
146 146
      */
147 147
     public function getByHandle($handle)
Please login to merge, or discard this patch.
src/services/traits/ObjectAccessorByIdTrait.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     public abstract function findByRecord(RecordInterface $record);
45 45
 
46 46
     /**
47
-     * @param array $config
47
+     * @param \flipbox\spark\records\Interfaces\RecordWithIdInterface $config
48 48
      * @return ObjectInterface
49 49
      */
50 50
     public abstract function create($config = []);
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
     /**
57 57
      * @param $id
58
-     * @return ModelWithIdInterface|null
58
+     * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null
59 59
      */
60 60
     public function freshFindById($id)
61 61
     {
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
 
80 80
     /**
81 81
      * @param $id
82
-     * @return ModelWithIdInterface|null
82
+     * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface
83 83
      * @throws ObjectNotFoundException
84 84
      */
85 85
     public function freshGetById($id)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
     /**
104 104
      * @param $id
105
-     * @return ModelWithIdInterface|null
105
+     * @return \flipbox\spark\objects\Interfaces\ObjectInterface|null
106 106
      */
107 107
     public function findById($id)
108 108
     {
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
     /**
143 143
      * @param $id
144
-     * @return ModelWithIdInterface|null
144
+     * @return null|\flipbox\spark\objects\Interfaces\ObjectInterface
145 145
      * @throws ObjectNotFoundException
146 146
      */
147 147
     public function getById($id)
Please login to merge, or discard this patch.
src/helpers/ModelHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     }
70 70
 
71 71
     /**
72
-     * @param $model
72
+     * @param ModelInterface $model
73 73
      * @return ModelInterface
74 74
      */
75 75
     public static function copy($model)
Please login to merge, or discard this patch.
src/services/ElementAccessor.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @param $identifier
152 152
      * @param int|null $siteId
153 153
      * @param string $scenario
154
-     * @return ElementInterface|null
154
+     * @return null|\craft\base\ElementInterface
155 155
      */
156 156
     public function find($identifier, int $siteId = null, $scenario = ElementHelper::DEFAULT_SCENARIO)
157 157
     {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
     /**
242 242
      * @param $criteria
243 243
      * @param string $scenario
244
-     * @return ElementInterface|null
244
+     * @return null|\craft\base\ElementInterface
245 245
      */
246 246
     public function findByCriteria($criteria, $scenario = ElementHelper::DEFAULT_SCENARIO)
247 247
     {
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
      *
447 447
      * @param $criteria
448 448
      * @param string $scenario
449
-     * @return ElementInterface|null
449
+     * @return null|\craft\base\ElementInterface
450 450
      */
451 451
     public function findByQuery($criteria, $scenario = ElementHelper::DEFAULT_SCENARIO)
452 452
     {
Please login to merge, or discard this patch.
src/services/ElementAccessorByString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
98 98
      * @param $identifier
99 99
      * @param int|null $siteId
100 100
      * @param string $scenario
101
-     * @return Element|null
101
+     * @return null|\craft\base\ElementInterface
102 102
      */
103 103
     public function find($identifier, int $siteId = null, $scenario = ElementHelper::SCENARIO_DEFAULT)
104 104
     {
Please login to merge, or discard this patch.
src/services/ModelAccessorByHandle.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * @param $identifier
36 36
      * @param string $scenario
37
-     * @return ModelWithHandleInterface|null
37
+     * @return null|ModelInterface
38 38
      */
39 39
     public function find($identifier, $scenario = ModelHelper::SCENARIO_SAVE)
40 40
     {
Please login to merge, or discard this patch.
src/services/ModelAccessorById.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * @param $identifier
36 36
      * @param string $scenario
37
-     * @return ModelWithIdInterface|null
37
+     * @return null|ModelInterface
38 38
      */
39 39
     public function find($identifier, $scenario = ModelHelper::SCENARIO_SAVE)
40 40
     {
Please login to merge, or discard this patch.