Completed
Branch feature/pre-split (7b42f5)
by Anton
03:44
created
Excluded/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.
Excluded/ORM/Entities/RecordSource.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.
Excluded/ORM/ORM.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -311,8 +311,8 @@  discard block
 block discarded – undo
311 311
      * own relations, loaders and schemas by altering ORM config.
312 312
      *
313 313
      * @param mixed         $type
314
-     * @param SchemaBuilder $builder
315
-     * @param RecordSchema  $record
314
+     * @param Entities\SchemaBuilder $builder
315
+     * @param Entities\Schemas\RecordSchema  $record
316 316
      * @param string        $name
317 317
      * @param array         $definition
318 318
      * @return Schemas\RelationInterface
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
      * @param string      $type      Loader type (usually related to relation type).
354 354
      * @param string      $container Data segment associated with loader.
355 355
      * @param array       $definition
356
-     * @param LoaderInterface|null $parent
356
+     * @param null|Loader $parent
357 357
      * @return Loader
358 358
      */
359 359
     public function loader($type, $container, array $definition, Loader $parent = null)
Please login to merge, or discard this patch.
Excluded/tests/ODM/StandaloneTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -80,6 +80,9 @@
 block discarded – undo
80 80
         ], $model->serializeData());
81 81
     }
82 82
 
83
+    /**
84
+     * @param string $directory
85
+     */
83 86
     protected function createLocator($directory)
84 87
     {
85 88
         $tokenizer = new Tokenizer(new FileManager(), new TokenizerConfig(), $this->createMemory());
Please login to merge, or discard this patch.
Excluded/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.
Excluded/Database/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.
Excluded/Database/Schemas/AbstractTable.php 1 patch
Doc Comments   +2 added lines, -1 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
     {
@@ -279,7 +280,7 @@  discard block
 block discarded – undo
279 280
      * $table->unique(['key', 'key2']);
280 281
      *
281 282
      * @param mixed $columns Column name, or array of columns.
282
-     * @return AbstractColumn|null
283
+     * @return AbstractIndex
283 284
      */
284 285
     public function unique($columns)
285 286
     {
Please login to merge, or discard this patch.
Excluded/ODM/Entities/Compositor.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
     /**
493 493
      * {@inheritdoc}
494 494
      *
495
-     * @return DocumentEntity[]
495
+     * @return \ArrayIterator
496 496
      */
497 497
     public function getIterator()
498 498
     {
@@ -588,7 +588,7 @@  discard block
 block discarded – undo
588 588
      * Example:
589 589
      * $user->cards->findOne(['active' => true]);
590 590
      *
591
-     * @param array|DocumentEntity $query
591
+     * @param DocumentEntity $query
592 592
      *
593 593
      * @return null|DocumentEntity
594 594
      */
Please login to merge, or discard this patch.