Completed
Push — master ( 8f8d73...a6ab5d )
by Neomerx
04:28
created
src/Contracts/Http/Query/ParametersMapperInterface.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,17 +52,17 @@
 block discarded – undo
52 52
     public function withIncludes(iterable $includes): self;
53 53
 
54 54
     /**
55
-     * @return iterable
55
+     * @return \Generator
56 56
      */
57 57
     public function getMappedFilters(): iterable;
58 58
 
59 59
     /**
60
-     * @return iterable
60
+     * @return \Generator
61 61
      */
62 62
     public function getMappedSorts(): iterable;
63 63
 
64 64
     /**
65
-     * @return iterable
65
+     * @return \Generator
66 66
      */
67 67
     public function getMappedIncludes(): iterable;
68 68
 
Please login to merge, or discard this patch.
src/Adapters/ModelQueryBuilder.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     }
172 172
 
173 173
     /**
174
-     * @param iterable $attributes
174
+     * @param \Generator $attributes
175 175
      *
176 176
      * @return self
177 177
      *
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
     }
194 194
 
195 195
     /**
196
-     * @param iterable $attributes
196
+     * @param \Generator $attributes
197 197
      *
198 198
      * @return self
199 199
      *
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      * @param string   $modelClass
217 217
      * @param iterable $attributes
218 218
      *
219
-     * @return iterable
219
+     * @return \Generator
220 220
      *
221 221
      * @SuppressWarnings(PHPMD.StaticAccess)
222 222
      *
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     }
316 316
 
317 317
     /**
318
-     * @param iterable $filters
318
+     * @param \Limoncello\Flute\Api\iterable|null $filters
319 319
      *
320 320
      * @return self
321 321
      *
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
     }
332 332
 
333 333
     /**
334
-     * @param iterable $filters
334
+     * @param \Limoncello\Flute\Api\iterable|null $filters
335 335
      *
336 336
      * @return self
337 337
      *
@@ -347,7 +347,7 @@  discard block
 block discarded – undo
347 347
     }
348 348
 
349 349
     /**
350
-     * @param iterable $filters
350
+     * @param \Limoncello\Flute\Api\iterable|null $filters
351 351
      *
352 352
      * @return self
353 353
      *
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
     /**
393 393
      * @param string        $relationshipName
394
-     * @param iterable      $relationshipFilters
394
+     * @param \Limoncello\Flute\Api\iterable|null      $relationshipFilters
395 395
      * @param iterable|null $relationshipSorts
396 396
      *
397 397
      * @return self
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
     }
418 418
 
419 419
     /**
420
-     * @param iterable $sortParameters
420
+     * @param \Limoncello\Flute\Api\iterable|null $sortParameters
421 421
      *
422 422
      * @return self
423 423
      */
Please login to merge, or discard this patch.
src/Api/Crud.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -756,9 +756,9 @@  discard block
 block discarded – undo
756 756
     }
757 757
 
758 758
     /**
759
-     * @param iterable $paths (string[])
759
+     * @param iterable|null $paths (string[])
760 760
      *
761
-     * @return iterable
761
+     * @return Generator
762 762
      */
763 763
     private static function getPaths(iterable $paths): iterable
764 764
     {
@@ -1399,7 +1399,7 @@  discard block
 block discarded – undo
1399 1399
      * @param string       $modelClass
1400 1400
      * @param string       $keyColumnName
1401 1401
      *
1402
-     * @return iterable
1402
+     * @return Generator
1403 1403
      *
1404 1404
      * @throws DBALException
1405 1405
      *
@@ -1503,7 +1503,7 @@  discard block
 block discarded – undo
1503 1503
      * @param null|string $index
1504 1504
      * @param iterable    $attributes
1505 1505
      *
1506
-     * @return iterable
1506
+     * @return Generator
1507 1507
      */
1508 1508
     protected function filterAttributesOnCreate(?string $index, iterable $attributes): iterable
1509 1509
     {
@@ -1523,7 +1523,7 @@  discard block
 block discarded – undo
1523 1523
     /**
1524 1524
      * @param iterable $attributes
1525 1525
      *
1526
-     * @return iterable
1526
+     * @return Generator
1527 1527
      */
1528 1528
     protected function filterAttributesOnUpdate(iterable $attributes): iterable
1529 1529
     {
@@ -1722,10 +1722,10 @@  discard block
 block discarded – undo
1722 1722
 
1723 1723
     /**
1724 1724
      * @param iterable         $attributes
1725
-     * @param array            $typeNames
1725
+     * @param Type[]            $typeNames
1726 1726
      * @param AbstractPlatform $platform
1727 1727
      *
1728
-     * @return iterable
1728
+     * @return Generator
1729 1729
      *
1730 1730
      * @throws DBALException
1731 1731
      */
Please login to merge, or discard this patch.
src/Http/Query/ParametersMapper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -409,7 +409,7 @@
 block discarded – undo
409 409
      * @param string   $parameterName
410 410
      * @param iterable $value
411 411
      *
412
-     * @return iterable
412
+     * @return Generator
413 413
      *
414 414
      * @SuppressWarnings(PHPMD.CyclomaticComplexity)
415 415
      */
Please login to merge, or discard this patch.
src/Contracts/Api/CrudInterface.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     public function fetchResources(QueryBuilder $builder, string $modelClass): PaginatedDataInterface;
109 109
 
110 110
     /**
111
-     * @param QueryBuilder|null $builder
111
+     * @param QueryBuilder $builder
112 112
      * @param string|null       $modelClass
113 113
      *
114 114
      * @return mixed|null
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      * @param string       $modelClass
129 129
      * @param string       $columnName
130 130
      *
131
-     * @return iterable
131
+     * @return \Generator
132 132
      */
133 133
     public function fetchColumn(QueryBuilder $builder, string $modelClass, string $columnName): iterable;
134 134
 
@@ -226,9 +226,9 @@  discard block
 block discarded – undo
226 226
     );
227 227
 
228 228
     /**
229
-     * @param int|string $parentId
229
+     * @param string $parentId
230 230
      * @param string     $name
231
-     * @param int|string $childId
231
+     * @param string $childId
232 232
      *
233 233
      * @return bool
234 234
      */
Please login to merge, or discard this patch.
src/Contracts/Validation/JsonApiQueryRulesSerializerInterface.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      *
169 169
      * @param array $ruleIndexes
170 170
      *
171
-     * @return array
171
+     * @return integer[]
172 172
      */
173 173
     public static function readRuleStartIndexes(array $ruleIndexes): array;
174 174
 
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      *
178 178
      * @param array $ruleIndexes
179 179
      *
180
-     * @return array
180
+     * @return integer[]
181 181
      */
182 182
     public static function readRuleEndIndexes(array $ruleIndexes): array;
183 183
 }
Please login to merge, or discard this patch.
src/Http/Traits/DefaultControllerMethodsTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -269,7 +269,7 @@
 block discarded – undo
269 269
      * @param FactoryInterface                     $errorFactory
270 270
      * @param FormatterFactoryInterface            $formatterFactory
271 271
      *
272
-     * @return ResponseInterface
272
+     * @return string
273 273
      */
274 274
     protected static function defaultCreate(
275 275
         string $requestBody,
Please login to merge, or discard this patch.
src/Validation/JsonApi/QueryParser.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
     }
449 449
 
450 450
     /**
451
-     * @return iterable
451
+     * @return Generator
452 452
      *
453 453
      * @SuppressWarnings(PHPMD.ElseExpression)
454 454
      */
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
     /**
496 496
      * @param iterable $fieldsFromParent
497 497
      *
498
-     * @return iterable
498
+     * @return Generator
499 499
      *
500 500
      * @SuppressWarnings(PHPMD.StaticAccess)
501 501
      * @SuppressWarnings(PHPMD.ElseExpression)
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
     /**
531 531
      * @param iterable $sortsFromParent
532 532
      *
533
-     * @return iterable
533
+     * @return Generator
534 534
      *
535 535
      * @SuppressWarnings(PHPMD.StaticAccess)
536 536
      * @SuppressWarnings(PHPMD.ElseExpression)
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
     /**
563 563
      * @param iterable $includesFromParent
564 564
      *
565
-     * @return iterable
565
+     * @return Generator
566 566
      *
567 567
      * @SuppressWarnings(PHPMD.StaticAccess)
568 568
      * @SuppressWarnings(PHPMD.ElseExpression)
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
     }
593 593
 
594 594
     /**
595
-     * @param iterable $iterable
595
+     * @param Generator $iterable
596 596
      *
597 597
      * @return array
598 598
      */
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
      * @param int      $ruleIndex
756 756
      * @param iterable $values
757 757
      *
758
-     * @return iterable
758
+     * @return Generator
759 759
      */
760 760
     private function validateValues(int $ruleIndex, iterable $values): iterable
761 761
     {
@@ -770,9 +770,9 @@  discard block
 block discarded – undo
770 770
 
771 771
     /**
772 772
      * @param int      $ruleIndex
773
-     * @param iterable $opsAndArgs
773
+     * @param Generator $opsAndArgs
774 774
      *
775
-     * @return iterable
775
+     * @return Generator
776 776
      */
777 777
     private function validateFilterArguments(int $ruleIndex, iterable $opsAndArgs): iterable
778 778
     {
@@ -936,7 +936,7 @@  discard block
 block discarded – undo
936 936
      * @param string $parameterName
937 937
      * @param array  $value
938 938
      *
939
-     * @return iterable
939
+     * @return Generator
940 940
      *
941 941
      * @SuppressWarnings(PHPMD.ElseExpression)
942 942
      */
Please login to merge, or discard this patch.