Completed
Branch develop (c2aa4c)
by Anton
05:17
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/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/Schemas/AbstractTable.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,6 +161,7 @@  discard block
 block discarded – undo
161 161
      * {@inheritdoc}
162 162
      *
163 163
      * Automatically forces prefix value.
164
+     * @param string $name
164 165
      */
165 166
     public function setName($name)
166 167
     {
@@ -280,7 +281,7 @@  discard block
 block discarded – undo
280 281
      * $table->unique(['key', 'key2']);
281 282
      *
282 283
      * @param mixed $columns Column name, or array of columns.
283
-     * @return AbstractColumn|null
284
+     * @return AbstractIndex
284 285
      */
285 286
     public function unique($columns)
286 287
     {
@@ -294,7 +295,7 @@  discard block
 block discarded – undo
294 295
      * name.
295 296
      *
296 297
      * @param string $column Column name.
297
-     * @return AbstractReference|null
298
+     * @return AbstractReference
298 299
      */
299 300
     public function foreign($column)
300 301
     {
@@ -490,7 +491,7 @@  discard block
 block discarded – undo
490 491
     }
491 492
 
492 493
     /**
493
-     * @return AbstractColumn|string
494
+     * @return string
494 495
      */
495 496
     public function __toString()
496 497
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Relations/ManyToMany.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
      * Method will not affect state of pre-loaded data! Use reset() method to do that.
100 100
      *
101 101
      * @see sync()
102
-     * @param mixed $outer
102
+     * @param \Spiral\ORM\RecordInterface $outer
103 103
      * @param array $pivotData
104 104
      */
105 105
     public function link($outer, array $pivotData = [])
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Schemas/RecordSchema.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
     /**
99 99
      * Related source class.
100 100
      *
101
-     * @return string|null
101
+     * @return string
102 102
      */
103 103
     public function getSource()
104 104
     {
@@ -153,7 +153,7 @@  discard block
 block discarded – undo
153 153
      * value using class name and Doctrine inflector.
154 154
      *
155 155
      * @see Record::$table
156
-     * @return mixed
156
+     * @return string
157 157
      */
158 158
     public function getTable()
159 159
     {
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
      * Get database where record data should be stored in. Database alias must be resolved.
173 173
      *
174 174
      * @see Record::$database
175
-     * @return mixed
175
+     * @return string
176 176
      */
177 177
     public function getDatabase()
178 178
     {
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
      * @param AbstractColumn $column
488 488
      * @param string         $definition
489 489
      * @param mixed          $default Default value declared by record schema.
490
-     * @return mixed
490
+     * @return AbstractColumn
491 491
      * @throws DefinitionException
492 492
      * @throws \Spiral\Database\Exceptions\SchemaException
493 493
      */
Please login to merge, or discard this patch.
source/Spiral/Core/Component.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
      * Get instance of container associated with given object, uses global container as fallback
29 29
      * if not. Method generally used by traits.
30 30
      *
31
-     * @return ContainerInterface|null
31
+     * @return ContainerInterface
32 32
      */
33 33
     protected function container()
34 34
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @internal Do not use for business logic.
52 52
      * @param ContainerInterface $container Can be set to null.
53
-     * @return ContainerInterface|null
53
+     * @return ContainerInterface
54 54
      */
55 55
     final protected static function staticContainer(ContainerInterface $container = null)
56 56
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Loader.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
     /**
501 501
      * Create selector dedicated to load data for current loader.
502 502
      *
503
-     * @return RecordSelector|null
503
+     * @return null|RecordSource
504 504
      */
505 505
     public function createSelector()
506 506
     {
@@ -882,7 +882,7 @@  discard block
 block discarded – undo
882 882
      * Parse single result row to generate data tree. Must pass parsing to evert nested loader.
883 883
      *
884 884
      * @param array $row
885
-     * @return bool
885
+     * @return boolean|null
886 886
      */
887 887
     private function parseRow(array $row)
888 888
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Entities/Relation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
      *
447 447
      * Must be redeclarated in child implementations.
448 448
      *
449
-     * @return RecordSelector
449
+     * @return RecordSource
450 450
      */
451 451
     protected function createSelector()
452 452
     {
@@ -458,7 +458,7 @@  discard block
 block discarded – undo
458 458
      *
459 459
      * @param EntityInterface $entity
460 460
      * @param bool            $validate
461
-     * @return bool|void
461
+     * @return boolean
462 462
      */
463 463
     private function saveEntity(EntityInterface $entity, $validate)
464 464
     {
Please login to merge, or discard this patch.
source/Spiral/ORM/Traits/FindTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 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
     {
Please login to merge, or discard this patch.