@@ -9,7 +9,7 @@ |
||
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 spec\Sylius\Bundle\AdminBundle\Menu; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\AdminBundle\Menu; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\AdminBundle\Menu; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\AdminBundle\Controller; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\UserBundle\Controller; |
15 | 15 |
@@ -285,6 +285,7 @@ |
||
285 | 285 | |
286 | 286 | /** |
287 | 287 | * {@inheritdoc} |
288 | + * @param string $type |
|
288 | 289 | */ |
289 | 290 | protected function addFlash($type, $message): void |
290 | 291 | { |
@@ -9,7 +9,7 @@ |
||
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\UserBundle\Authentication; |
15 | 15 |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * @param string $code |
150 | 150 | * |
151 | - * @return ZoneInterface|null |
|
151 | + * @return AddressInterface |
|
152 | 152 | */ |
153 | 153 | private function getZoneByCode(string $code): ?ZoneInterface |
154 | 154 | { |
@@ -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\Component\Addressing\Matcher; |
15 | 15 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * {@inheritdoc} |
53 | 53 | */ |
54 | - public function match(AddressInterface $address, ?string $scope = null): ?ZoneInterface |
|
54 | + public function match(AddressInterface $address, ?string $scope = null) : ?ZoneInterface |
|
55 | 55 | { |
56 | 56 | $zones = []; |
57 | 57 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * {@inheritdoc} |
76 | 76 | */ |
77 | - public function matchAll(AddressInterface $address, ?string $scope = null): array |
|
77 | + public function matchAll(AddressInterface $address, ?string $scope = null) : array |
|
78 | 78 | { |
79 | 79 | $zones = []; |
80 | 80 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | * |
137 | 137 | * @return array |
138 | 138 | */ |
139 | - private function getZones(?string $scope = null): array |
|
139 | + private function getZones(?string $scope = null) : array |
|
140 | 140 | { |
141 | 141 | if (null === $scope) { |
142 | 142 | return $this->zoneRepository->findAll(); |
@@ -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\AddressingBundle\Form\EventListener; |
15 | 15 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | * |
135 | 135 | * @return FormInterface |
136 | 136 | */ |
137 | - private function createProvinceCodeChoiceForm(CountryInterface $country, ?string $provinceCode = null): FormInterface |
|
137 | + private function createProvinceCodeChoiceForm(CountryInterface $country, ?string $provinceCode = null) : FormInterface |
|
138 | 138 | { |
139 | 139 | return $this->formFactory->createNamed('provinceCode', ProvinceCodeChoiceType::class, $provinceCode, [ |
140 | 140 | 'country' => $country, |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | * |
150 | 150 | * @return FormInterface |
151 | 151 | */ |
152 | - private function createProvinceNameTextForm(?string $provinceName = null): FormInterface |
|
152 | + private function createProvinceNameTextForm(?string $provinceName = null) : FormInterface |
|
153 | 153 | { |
154 | 154 | return $this->formFactory->createNamed('provinceName', TextType::class, $provinceName, [ |
155 | 155 | 'required' => false, |
@@ -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\ResourceBundle\Controller; |
15 | 15 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return Response |
37 | 37 | */ |
38 | - public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null): Response; |
|
38 | + public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null) : Response; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * @param RequestConfiguration $configuration |