Completed
Push — master ( da1891...eebb53 )
by Anton
03:32
created
source/Spiral/Database/Builders/SelectQuery.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
      * Set table names SELECT query should be performed for. Table names can be provided with
59 59
      * specified alias (AS construction).
60 60
      *
61
-     * @param array|string|mixed $tables Array of names, comma separated string or set of
61
+     * @param string $tables Array of names, comma separated string or set of
62 62
      *                                   parameters.
63 63
      * @return $this
64 64
      */
Please login to merge, or discard this patch.
source/Spiral/Database/Builders/Traits/JoinsTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      * such methods.
233 233
      *
234 234
      * @see AbstractWhere
235
-     * @param string|mixed $joined   Joined column or expression.
235
+     * @param string $joined   Joined column or expression.
236 236
      * @param mixed        $variousA Operator or value.
237 237
      * @param mixed        $variousB Value, if operator specified.
238 238
      * @param mixed        $variousC Required only in between statements.
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      * @param string        $joiner     Boolean joiner (AND | OR).
301 301
      * @param array         $parameters Set of parameters collected from where functions.
302 302
      * @param array         $tokens     Array to aggregate compiled tokens. Reference.
303
-     * @param \Closure|null $wrapper    Callback or closure used to wrap/collect every potential
303
+     * @param callable $wrapper    Callback or closure used to wrap/collect every potential
304 304
      *                                  parameter.
305 305
      * @throws BuilderException
306 306
      */
Please login to merge, or discard this patch.
source/Spiral/Database/Entities/Schemas/AbstractCommander.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@
 block discarded – undo
228 228
      * Execute statement.
229 229
      *
230 230
      * @param string $statement
231
-     * @param array  $parameters
231
+     * @param string[]  $parameters
232 232
      * @return \PDOStatement
233 233
      */
234 234
     protected function run($statement, array $parameters = [])
Please login to merge, or discard this patch.
source/Spiral/Database/Entities/Table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
      *
127 127
      * @param array $columns Array of columns.
128 128
      * @param array $rowsets Array of rowsets.
129
-     * @return mixed
129
+     * @return integer
130 130
      */
131 131
     public function batchInsert(array $columns = [], array $rowsets = [])
132 132
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Traits/FindTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @param array|\Closure $where   Selection WHERE statement.
43 43
      * @param array          $load    Array or relations to be pre-loaded.
44 44
      * @param array          $orderBy Sort by conditions.
45
-     * @return RecordEntity|null
45
+     * @return null|\Spiral\ORM\RecordInterface
46 46
      */
47 47
     public static function findOne($where = [], array $load = [], array $orderBy = [])
48 48
     {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @param mixed $primaryKey Primary key.
64 64
      * @param array $load       Array or relations to be pre-loaded.
65
-     * @return RecordEntity|null
65
+     * @return null|\Spiral\ORM\RecordInterface
66 66
      */
67 67
     public static function findByPK($primaryKey, array $load = [])
68 68
     {
Please login to merge, or discard this patch.
source/Spiral/Tokenizer/Reflections/ReflectionArgument.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     /**
34 34
      * New instance of ReflectionArgument.
35 35
      *
36
-     * @param mixed $type
36
+     * @param string $type
37 37
      * @param mixed $value
38 38
      */
39 39
     public function __construct($type, $value)
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     }
44 44
 
45 45
     /**
46
-     * @return mixed
46
+     * @return integer
47 47
      */
48 48
     public function getType()
49 49
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Loader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -881,7 +881,7 @@
 block discarded – undo
881 881
      * Parse single result row to generate data tree. Must pass parsing to evert nested loader.
882 882
      *
883 883
      * @param array $row
884
-     * @return bool
884
+     * @return boolean|null
885 885
      */
886 886
     private function parseRow(array $row)
887 887
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Schemas/RecordSchema.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
      * value using class name and Doctrine inflector.
131 131
      *
132 132
      * @see Record::$table
133
-     * @return mixed
133
+     * @return string
134 134
      */
135 135
     public function getTable()
136 136
     {
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * Get database where record data should be stored in. Database alias must be resolved.
150 150
      *
151 151
      * @see Record::$database
152
-     * @return mixed
152
+     * @return string
153 153
      */
154 154
     public function getDatabase()
155 155
     {
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
      * @param AbstractColumn $column
464 464
      * @param string         $definition
465 465
      * @param mixed          $default Default value declared by record schema.
466
-     * @return mixed
466
+     * @return AbstractColumn
467 467
      * @throws DefinitionException
468 468
      * @throws \Spiral\Database\Exceptions\SchemaException
469 469
      */
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/RecordSelector.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -457,7 +457,7 @@  discard block
 block discarded – undo
457 457
      *
458 458
      * @see findOne()
459 459
      * @param mixed $id Primary key value.
460
-     * @return RecordEntity|null
460
+     * @return null|RecordInterface
461 461
      * @throws SelectorException
462 462
      */
463 463
     public function findByPK($id)
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
      * @see findByPK()
483 483
      * @param array $where    Selection WHERE statement.
484 484
      * @param bool  $setLimit Use limit 1.
485
-     * @return RecordEntity|null
485
+     * @return null|RecordInterface
486 486
      */
487 487
     public function findOne(array $where = [], $setLimit = true)
488 488
     {
Please login to merge, or discard this patch.