@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Extension; |
| 15 | 15 | |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | /** @var Join $joinPart */ |
| 120 | 120 | $joinString = str_replace($aliases, $replacements, $joinPart->getJoin()); |
| 121 | 121 | $alias = substr($joinString, 0, strpos($joinString, '.')); |
| 122 | - $association = substr($joinString, strpos($joinString, '.')+1); |
|
| 122 | + $association = substr($joinString, strpos($joinString, '.') + 1); |
|
| 123 | 123 | $condition = str_replace($aliases, $replacements, $joinPart->getCondition()); |
| 124 | 124 | $newAlias = QueryBuilderHelper::addJoinOnce($queryBuilderClone, $queryNameGenerator, $alias, $association, $joinPart->getJoinType(), $joinPart->getConditionType(), $condition); |
| 125 | 125 | $aliases[] = "{$joinPart->getAlias()}."; |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Extension; |
| 15 | 15 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $field = 'o.'.$field; |
| 58 | 58 | } else { |
| 59 | 59 | $alias = QueryBuilderHelper::addJoinOnce($queryBuilder, $queryNameGenerator, 'o', substr($field, 0, $pos)); |
| 60 | - $field = sprintf('%s.%s', $alias, substr($field, $pos+1)); |
|
| 60 | + $field = sprintf('%s.%s', $alias, substr($field, $pos + 1)); |
|
| 61 | 61 | } |
| 62 | 62 | $queryBuilder->addOrderBy($field, $order); |
| 63 | 63 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * file that was distributed with this source code. |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | -declare(strict_types=1); |
|
| 12 | +declare(strict_types = 1); |
|
| 13 | 13 | |
| 14 | 14 | namespace ApiPlatform\Core\Bridge\Doctrine\Orm\Util; |
| 15 | 15 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @return string the new association alias |
| 38 | 38 | */ |
| 39 | - public static function addJoinOnce(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $association, ?string $joinType = null, ?string $conditionType = null, ?string $condition = null): string |
|
| 39 | + public static function addJoinOnce(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $alias, string $association, ?string $joinType = null, ?string $conditionType = null, ?string $condition = null) : string |
|
| 40 | 40 | { |
| 41 | 41 | $join = self::getExistingJoin($queryBuilder, $alias, $association); |
| 42 | 42 | |