@@ -8,7 +8,7 @@ |
||
| 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 | |
@@ -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\Entity; |
| 14 | 14 | |
@@ -28,7 +28,7 @@ discard block |
||
| 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 |
||
| 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 |
@@ -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\Entity; |
| 14 | 14 | |
@@ -48,7 +48,7 @@ discard block |
||
| 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 | } |
@@ -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\Entity; |
| 14 | 14 | |
@@ -28,5 +28,5 @@ discard block |
||
| 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 |
@@ -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\Entity; |
| 14 | 14 | |
@@ -58,7 +58,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -8,7 +8,7 @@ |
||
| 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 | |
@@ -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 | |
@@ -34,5 +34,5 @@ discard block |
||
| 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 | } |
@@ -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() |