Test Setup Failed
Pull Request — master (#73)
by Mikołaj
02:33
created
src/Form/Type/Translation/SectionTranslationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\Form\Type\Translation;
14 14
 
Please login to merge, or discard this patch.
src/Entity/SectionInterface.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\Entity;
14 14
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @param null|string $code
30 30
      */
31
-    public function setCode(?string $code): void;
31
+    public function setCode(?string $code) : void;
32 32
 
33 33
     /**
34 34
      * @return null|string
@@ -38,5 +38,5 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * @param null|string $name
40 40
      */
41
-    public function setName(?string $name): void;
41
+    public function setName(?string $name) : void;
42 42
 }
43 43
\ No newline at end of file
Please login to merge, or discard this patch.
src/Entity/SectionTranslation.php 1 patch
Spacing   +2 added lines, -2 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\Entity;
14 14
 
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * {@inheritdoc}
50 50
      */
51
-    public function setName(?string $name): void
51
+    public function setName(?string $name) : void
52 52
     {
53 53
         $this->name = $name;
54 54
     }
Please login to merge, or discard this patch.
src/Entity/SectionTranslationInterface.php 1 patch
Spacing   +2 added lines, -2 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\Entity;
14 14
 
@@ -28,5 +28,5 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * @param null|string $name
30 30
      */
31
-    public function setName(?string $name): void;
31
+    public function setName(?string $name) : void;
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
src/Entity/Section.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\Entity;
14 14
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     /**
59 59
      * {@inheritdoc}
60 60
      */
61
-    public function setCode(?string $code): void
61
+    public function setCode(?string $code) : void
62 62
     {
63 63
         $this->code = $code;
64 64
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * {@inheritdoc}
76 76
      */
77
-    public function setName(?string $name): void
77
+    public function setName(?string $name) : void
78 78
     {
79 79
         $this->getSectionTranslation()->setName($name);
80 80
     }
Please login to merge, or discard this patch.
src/Entity/SectionAssociationTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 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\Entity;
14 14
 
Please login to merge, or discard this patch.
src/Repository/SectionRepositoryInterface.php 1 patch
Spacing   +2 added lines, -2 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
 
@@ -34,5 +34,5 @@  discard block
 block discarded – undo
34 34
      *
35 35
      * @return array|SectionInterface[]
36 36
      */
37
-    public function findByNamePart(string $phrase, ?string $locale = null): array;
37
+    public function findByNamePart(string $phrase, ?string $locale = null) : array;
38 38
 }
Please login to merge, or discard this patch.
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.