Test Setup Failed
Pull Request — master (#73)
by Mikołaj
02:33
created
src/Repository/SectionRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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()
Please login to merge, or discard this patch.