@@ -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 Sylius\Bundle\TaxonomyBundle\Doctrine\ORM; |
15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | /** |
27 | 27 | * {@inheritdoc} |
28 | 28 | */ |
29 | - public function findChildren(string $parentCode, ?string $locale = null): array |
|
29 | + public function findChildren(string $parentCode, ?string $locale = null) : array |
|
30 | 30 | { |
31 | 31 | return $this->createTranslationBasedQueryBuilder($locale) |
32 | 32 | ->addSelect('child') |
@@ -90,11 +90,11 @@ discard block |
||
90 | 90 | /** |
91 | 91 | * {@inheritdoc} |
92 | 92 | */ |
93 | - public function findByNamePart(string $phrase, ?string $locale = null): array |
|
93 | + public function findByNamePart(string $phrase, ?string $locale = null) : array |
|
94 | 94 | { |
95 | 95 | return $this->createTranslationBasedQueryBuilder($locale) |
96 | 96 | ->andWhere('translation.name LIKE :name') |
97 | - ->setParameter('name', '%'.$phrase.'%') |
|
97 | + ->setParameter('name', '%' . $phrase . '%') |
|
98 | 98 | ->getQuery() |
99 | 99 | ->getResult() |
100 | 100 | ; |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | * |
114 | 114 | * @return QueryBuilder |
115 | 115 | */ |
116 | - private function createTranslationBasedQueryBuilder(?string $locale): QueryBuilder |
|
116 | + private function createTranslationBasedQueryBuilder(?string $locale) : QueryBuilder |
|
117 | 117 | { |
118 | 118 | $queryBuilder = $this->createQueryBuilder('o') |
119 | 119 | ->addSelect('translation') |