@@ -171,7 +171,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | */ |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | string $relationshipName, |
376 | 376 | ?iterable $relationshipFilters, |
377 | 377 | ?iterable $relationshipSorts |
378 | - ): self { |
|
378 | + ) : self { |
|
379 | 379 | $targetAlias = $this->createRelationshipAlias($relationshipName); |
380 | 380 | |
381 | 381 | if ($relationshipFilters !== null) { |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | string $relationshipName, |
403 | 403 | ?iterable $relationshipFilters, |
404 | 404 | ?iterable $relationshipSorts |
405 | - ): self { |
|
405 | + ) : self { |
|
406 | 406 | $targetAlias = $this->createRelationshipAlias($relationshipName); |
407 | 407 | |
408 | 408 | if ($relationshipFilters !== null) { |
@@ -637,7 +637,7 @@ discard block |
||
637 | 637 | string $targetColumn |
638 | 638 | ): string { |
639 | 639 | $targetAlias = $this->createAlias($targetTable); |
640 | - $joinCondition = $this->buildColumnName($fromAlias, $fromColumn) . '=' . |
|
640 | + $joinCondition = $this->buildColumnName($fromAlias, $fromColumn).'='. |
|
641 | 641 | $this->buildColumnName($targetAlias, $targetColumn); |
642 | 642 | |
643 | 643 | $this->innerJoin( |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | */ |
684 | 684 | private function createAlias(string $tableName): string |
685 | 685 | { |
686 | - $alias = $tableName . (++$this->aliasIdCounter); |
|
686 | + $alias = $tableName.(++$this->aliasIdCounter); |
|
687 | 687 | $this->knownAliases[$tableName] = $alias; |
688 | 688 | |
689 | 689 | return $alias; |
@@ -845,7 +845,7 @@ discard block |
||
845 | 845 | } else { |
846 | 846 | assert( |
847 | 847 | $value !== null, |
848 | - 'It seems you are trying to use `null` with =, >, <, or etc operator. ' . |
|
848 | + 'It seems you are trying to use `null` with =, >, <, or etc operator. '. |
|
849 | 849 | 'Use `is null` or `not null` instead.' |
850 | 850 | ); |
851 | 851 | assert(is_string($value), "Only strings, booleans and integers are supported."); |