@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | string $relationshipName, |
321 | 321 | iterable $relationshipFilters, |
322 | 322 | ?iterable $relationshipSorts |
323 | - ): self { |
|
323 | + ) : self { |
|
324 | 324 | $joinWith = $this->expr()->andX(); |
325 | 325 | |
326 | 326 | return $this->addRelationshipFiltersAndSorts( |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | string $relationshipName, |
355 | 355 | iterable $relationshipFilters, |
356 | 356 | ?iterable $relationshipSorts |
357 | - ): self { |
|
357 | + ) : self { |
|
358 | 358 | $joinWith = $this->expr()->orX(); |
359 | 359 | |
360 | 360 | return $this->addRelationshipFiltersAndSorts( |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | CompositeExpression $filterLink, |
416 | 416 | iterable $relationshipFilters, |
417 | 417 | ?iterable $relationshipSorts |
418 | - ): self { |
|
418 | + ) : self { |
|
419 | 419 | $relationshipType = $this->getModelSchemes()->getRelationshipType($this->getModelClass(), $relationshipName); |
420 | 420 | switch ($relationshipType) { |
421 | 421 | case RelationshipTypes::BELONGS_TO: |
@@ -488,7 +488,7 @@ discard block |
||
488 | 488 | CompositeExpression $filterLink, |
489 | 489 | iterable $relationshipFilters, |
490 | 490 | ?iterable $relationshipSorts |
491 | - ): self { |
|
491 | + ) : self { |
|
492 | 492 | $foreignKey = $this->getModelSchemes()->getForeignKey($this->getModelClass(), $relationshipName); |
493 | 493 | list($onePrimaryKey, $oneTable) = |
494 | 494 | $this->getModelSchemes()->getReversePrimaryKey($this->getModelClass(), $relationshipName); |
@@ -522,7 +522,7 @@ discard block |
||
522 | 522 | CompositeExpression $filterLink, |
523 | 523 | iterable $relationshipFilters, |
524 | 524 | ?iterable $relationshipSorts |
525 | - ): self { |
|
525 | + ) : self { |
|
526 | 526 | $primaryKey = $this->getModelSchemes()->getPrimaryKey($this->getModelClass()); |
527 | 527 | list($manyForeignKey, $manyTable) = |
528 | 528 | $this->getModelSchemes()->getReverseForeignKey($this->getModelClass(), $relationshipName); |
@@ -556,7 +556,7 @@ discard block |
||
556 | 556 | CompositeExpression $targetFilterLink, |
557 | 557 | iterable $relationshipFilters, |
558 | 558 | ?iterable $relationshipSorts |
559 | - ): self { |
|
559 | + ) : self { |
|
560 | 560 | $primaryKey = $this->getModelSchemes()->getPrimaryKey($this->getModelClass()); |
561 | 561 | list ($intermediateTable, $intermediatePk, $intermediateFk) = |
562 | 562 | $this->getModelSchemes()->getBelongsToManyRelationship($this->getModelClass(), $relationshipName); |
@@ -606,9 +606,9 @@ discard block |
||
606 | 606 | ?CompositeExpression $targetFilterLink, |
607 | 607 | ?iterable $targetFilterParams, |
608 | 608 | ?iterable $relationshipSorts |
609 | - ): string { |
|
609 | + ) : string { |
|
610 | 610 | $targetAlias = $this->createAlias($targetTable); |
611 | - $joinCondition = $this->buildColumnName($fromAlias, $fromColumn) . '=' . |
|
611 | + $joinCondition = $this->buildColumnName($fromAlias, $fromColumn).'='. |
|
612 | 612 | $this->buildColumnName($targetAlias, $targetColumn); |
613 | 613 | |
614 | 614 | $this->innerJoin( |
@@ -667,7 +667,7 @@ discard block |
||
667 | 667 | ?CompositeExpression $targetFilterLink, |
668 | 668 | ?iterable $targetFilterParams, |
669 | 669 | ?iterable $targetSortParams |
670 | - ): string { |
|
670 | + ) : string { |
|
671 | 671 | $intNoSorting = null; |
672 | 672 | $intAlias = $this->innerJoinOneTable( |
673 | 673 | $fromAlias, |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | $intFilterParams, |
679 | 679 | $intNoSorting |
680 | 680 | ); |
681 | - $targetAlias = $this->innerJoinOneTable( |
|
681 | + $targetAlias = $this->innerJoinOneTable( |
|
682 | 682 | $intAlias, |
683 | 683 | $intToTargetColumn, |
684 | 684 | $targetTable, |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | */ |
699 | 699 | private function createAlias(string $tableName): string |
700 | 700 | { |
701 | - $alias = $tableName . (++$this->aliasIdCounter); |
|
701 | + $alias = $tableName.(++$this->aliasIdCounter); |
|
702 | 702 | $this->knownAliases[$tableName] = $alias; |
703 | 703 | |
704 | 704 | return $alias; |
@@ -876,7 +876,7 @@ discard block |
||
876 | 876 | if ($this->dtToDbConverter === null) { |
877 | 877 | $type = Type::getType(DateTimeType::DATETIME); |
878 | 878 | $platform = $this->getConnection()->getDatabasePlatform(); |
879 | - $this->dtToDbConverter = function (DateTimeInterface $dateTime) use ($type, $platform) : string { |
|
879 | + $this->dtToDbConverter = function(DateTimeInterface $dateTime) use ($type, $platform) : string { |
|
880 | 880 | return $type->convertToDatabaseValue($dateTime, $platform); |
881 | 881 | }; |
882 | 882 | } |
@@ -902,7 +902,7 @@ discard block |
||
902 | 902 | } else { |
903 | 903 | assert( |
904 | 904 | $value !== null, |
905 | - 'It seems you are trying to use `null` with =, >, <, or etc operator. ' . |
|
905 | + 'It seems you are trying to use `null` with =, >, <, or etc operator. '. |
|
906 | 906 | 'Use `is null` or `not null` instead.' |
907 | 907 | ); |
908 | 908 | assert(is_string($value), "Only strings, booleans and integers are supported."); |