@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | * an email on [email protected]. |
| 9 | 9 | */ |
| 10 | 10 | |
| 11 | -declare(strict_types=1); |
|
| 11 | +declare(strict_types = 1); |
|
| 12 | 12 | |
| 13 | 13 | namespace BitBag\CmsPlugin\Repository; |
| 14 | 14 | |
@@ -35,12 +35,12 @@ discard block |
||
| 35 | 35 | /** |
| 36 | 36 | * {@inheritdoc} |
| 37 | 37 | */ |
| 38 | - public function findByNamePart(string $phrase, ?string $locale = null): array |
|
| 38 | + public function findByNamePart(string $phrase, ?string $locale = null) : array |
|
| 39 | 39 | { |
| 40 | 40 | return $this->createQueryBuilder('o') |
| 41 | 41 | ->innerJoin('o.translations', 'translation', 'WITH', 'translation.locale = :locale') |
| 42 | 42 | ->andWhere('translation.name LIKE :name') |
| 43 | - ->setParameter('name', '%'.$phrase.'%') |
|
| 43 | + ->setParameter('name', '%' . $phrase . '%') |
|
| 44 | 44 | ->setParameter('locale', $locale) |
| 45 | 45 | ->getQuery() |
| 46 | 46 | ->getResult() |