Passed
Push — master ( f2dea1...58a092 )
by Nate
04:47
created
src/services/traits/ElementByString.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
     /**
154 154
      * Identify whether in cached by string
155 155
      *
156
-     * @param $string
156
+     * @param string $string
157 157
      * @param int|null $siteId
158 158
      * @return bool
159 159
      */
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      *******************************************/
210 210
 
211 211
     /**
212
-     * @param null $string
212
+     * @param string $string
213 213
      * @throws ElementNotFoundException
214 214
      */
215 215
     protected function notFoundByStringException($string = null)
Please login to merge, or discard this patch.
src/services/traits/ModelById.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     abstract protected function findByRecord(Record $record, string $toScenario = null): BaseModel;
40 40
 
41 41
     /**
42
-     * @param array $config
42
+     * @param RecordWithId $config
43 43
      * @param string|null $toScenario
44 44
      * @return BaseModel|ModelWithId
45 45
      */
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @param int $id
54 54
      * @param string|null $toScenario
55
-     * @return ModelWithId|null
55
+     * @return null|BaseModel
56 56
      */
57 57
     public function findById(int $id, string $toScenario = null)
58 58
     {
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * @param int $id
103 103
      * @param string|null $toScenario
104
-     * @return ModelWithId|null
104
+     * @return null|BaseModel
105 105
      */
106 106
     public function freshFindById(int $id, string $toScenario = null)
107 107
     {
Please login to merge, or discard this patch.
src/services/traits/ModelByString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     abstract protected function findByRecord(Record $record, string $toScenario = null): BaseModel;
41 41
 
42 42
     /**
43
-     * @param array $config
43
+     * @param Record $config
44 44
      * @param string|null $toScenario
45 45
      * @return BaseModel
46 46
      */
Please login to merge, or discard this patch.
src/services/traits/ObjectByString.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     abstract protected function findByRecord(Record $record, string $toScenario = null): BaseObject;
41 41
 
42 42
     /**
43
-     * @param array $config
43
+     * @param Record $config
44 44
      * @param string|null $toScenario
45 45
      * @return BaseObject
46 46
      */
Please login to merge, or discard this patch.