@@ -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\Locale\Converter; |
| 15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * |
| 27 | 27 | * @throws \InvalidArgumentException |
| 28 | 28 | */ |
| 29 | - public function convertNameToCode(string $name, ?string $locale = null): string; |
|
| 29 | + public function convertNameToCode(string $name, ?string $locale = null) : string; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * @param string $code |
@@ -36,5 +36,5 @@ discard block |
||
| 36 | 36 | * |
| 37 | 37 | * @throws \InvalidArgumentException |
| 38 | 38 | */ |
| 39 | - public function convertCodeToName(string $code, ?string $locale = null): string; |
|
| 39 | + public function convertCodeToName(string $code, ?string $locale = null) : string; |
|
| 40 | 40 | } |
@@ -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\Locale\Model; |
| 15 | 15 | |
@@ -27,5 +27,5 @@ discard block |
||
| 27 | 27 | * |
| 28 | 28 | * @return string|null |
| 29 | 29 | */ |
| 30 | - public function getName(?string $locale = null): ?string; |
|
| 30 | + public function getName(?string $locale = null) : ?string; |
|
| 31 | 31 | } |
@@ -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\Locale\Model; |
| 15 | 15 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | /** |
| 66 | 66 | * {@inheritdoc} |
| 67 | 67 | */ |
| 68 | - public function setCode(?string $code): void |
|
| 68 | + public function setCode(?string $code) : void |
|
| 69 | 69 | { |
| 70 | 70 | $this->code = $code; |
| 71 | 71 | } |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | /** |
| 74 | 74 | * {@inheritdoc} |
| 75 | 75 | */ |
| 76 | - public function getName(?string $locale = null): ?string |
|
| 76 | + public function getName(?string $locale = null) : ?string |
|
| 77 | 77 | { |
| 78 | 78 | return Intl::getLocaleBundle()->getLocaleName($this->getCode(), $locale); |
| 79 | 79 | } |
@@ -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\LocaleBundle\DependencyInjection; |
| 15 | 15 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | public function load(array $config, ContainerBuilder $container): void |
| 32 | 32 | { |
| 33 | 33 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 34 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 34 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 35 | 35 | |
| 36 | 36 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
| 37 | 37 | |
@@ -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\Locale\Converter; |
| 15 | 15 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * {@inheritdoc} |
| 26 | 26 | */ |
| 27 | - public function convertNameToCode(string $name, ?string $locale = null): string |
|
| 27 | + public function convertNameToCode(string $name, ?string $locale = null) : string |
|
| 28 | 28 | { |
| 29 | 29 | $names = Intl::getLocaleBundle()->getLocaleNames($locale ?? 'en'); |
| 30 | 30 | $code = array_search($name, $names, true); |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | /** |
| 38 | 38 | * {@inheritdoc} |
| 39 | 39 | */ |
| 40 | - public function convertCodeToName(string $code, ?string $locale = null): string |
|
| 40 | + public function convertCodeToName(string $code, ?string $locale = null) : string |
|
| 41 | 41 | { |
| 42 | 42 | $name = Intl::getLocaleBundle()->getLocaleName($code, $locale ?? 'en'); |
| 43 | 43 | |
@@ -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\Customer\Model; |
| 15 | 15 | |
@@ -30,5 +30,5 @@ discard block |
||
| 30 | 30 | /** |
| 31 | 31 | * @param string|null $name |
| 32 | 32 | */ |
| 33 | - public function setName(?string $name): void; |
|
| 33 | + public function setName(?string $name) : void; |
|
| 34 | 34 | } |
@@ -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\Customer\Model; |
| 15 | 15 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | /** |
| 62 | 62 | * {@inheritdoc} |
| 63 | 63 | */ |
| 64 | - public function setCode(?string $code): void |
|
| 64 | + public function setCode(?string $code) : void |
|
| 65 | 65 | { |
| 66 | 66 | $this->code = $code; |
| 67 | 67 | } |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | /** |
| 78 | 78 | * {@inheritdoc} |
| 79 | 79 | */ |
| 80 | - public function setName(?string $name): void |
|
| 80 | + public function setName(?string $name) : void |
|
| 81 | 81 | { |
| 82 | 82 | $this->name = $name; |
| 83 | 83 | } |
@@ -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\Customer\Model; |
| 15 | 15 | |
@@ -26,5 +26,5 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * @param CustomerInterface|null $customer |
| 28 | 28 | */ |
| 29 | - public function setCustomer(?CustomerInterface $customer): void; |
|
| 29 | + public function setCustomer(?CustomerInterface $customer) : void; |
|
| 30 | 30 | } |
@@ -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\Customer\Model; |
| 15 | 15 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * @param string|null $email |
| 35 | 35 | */ |
| 36 | - public function setEmail(?string $email): void; |
|
| 36 | + public function setEmail(?string $email) : void; |
|
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | 39 | * Gets normalized email (should be used in search and sort queries). |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * @param string|null $emailCanonical |
| 47 | 47 | */ |
| 48 | - public function setEmailCanonical(?string $emailCanonical): void; |
|
| 48 | + public function setEmailCanonical(?string $emailCanonical) : void; |
|
| 49 | 49 | |
| 50 | 50 | /** |
| 51 | 51 | * @return string |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * @param string|null $firstName |
| 62 | 62 | */ |
| 63 | - public function setFirstName(?string $firstName): void; |
|
| 63 | + public function setFirstName(?string $firstName) : void; |
|
| 64 | 64 | |
| 65 | 65 | /** |
| 66 | 66 | * @return string|null |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | /** |
| 71 | 71 | * @param string|null $lastName |
| 72 | 72 | */ |
| 73 | - public function setLastName(?string $lastName): void; |
|
| 73 | + public function setLastName(?string $lastName) : void; |
|
| 74 | 74 | |
| 75 | 75 | /** |
| 76 | 76 | * @return \DateTimeInterface|null |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * @param \DateTimeInterface|null $birthday |
| 82 | 82 | */ |
| 83 | - public function setBirthday(?\DateTimeInterface $birthday): void; |
|
| 83 | + public function setBirthday(?\DateTimeInterface $birthday) : void; |
|
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * @return string |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | /** |
| 113 | 113 | * @param CustomerGroupInterface|null $group |
| 114 | 114 | */ |
| 115 | - public function setGroup(?CustomerGroupInterface $group): void; |
|
| 115 | + public function setGroup(?CustomerGroupInterface $group) : void; |
|
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | 118 | * @return string|null |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | /** |
| 123 | 123 | * @param string|null $phoneNumber |
| 124 | 124 | */ |
| 125 | - public function setPhoneNumber(?string $phoneNumber): void; |
|
| 125 | + public function setPhoneNumber(?string $phoneNumber) : void; |
|
| 126 | 126 | |
| 127 | 127 | /** |
| 128 | 128 | * @return bool |