@@ -20,6 +20,7 @@ discard block |
||
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | 22 | * {@inheritdoc} |
| 23 | + * @param string $message |
|
| 23 | 24 | */ |
| 24 | 25 | public function __construct(?string $message = null, \Exception $previousException = null) |
| 25 | 26 | { |
@@ -38,7 +39,7 @@ discard block |
||
| 38 | 39 | |
| 39 | 40 | /** |
| 40 | 41 | * @param string $localeCode |
| 41 | - * @param array $availableLocalesCodes |
|
| 42 | + * @param string[] $availableLocalesCodes |
|
| 42 | 43 | * |
| 43 | 44 | * @return self |
| 44 | 45 | */ |
@@ -34,11 +34,13 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param LocaleInterface $locale |
| 37 | + * @return void |
|
| 37 | 38 | */ |
| 38 | 39 | public function addLocale(LocaleInterface $locale): void; |
| 39 | 40 | |
| 40 | 41 | /** |
| 41 | 42 | * @param LocaleInterface $locale |
| 43 | + * @return void |
|
| 42 | 44 | */ |
| 43 | 45 | public function removeLocale(LocaleInterface $locale): void; |
| 44 | 46 | } |
@@ -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 | |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | interface PrioritizedServiceRegistryInterface |
| 20 | 20 | { |
| 21 | 21 | /** |
| 22 | - * @return iterable |
|
| 22 | + * @return \Zend\Stdlib\PriorityQueue |
|
| 23 | 23 | */ |
| 24 | 24 | public function all(): iterable; |
| 25 | 25 | |
@@ -29,6 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @throws ExistingServiceException |
| 31 | 31 | * @throws \InvalidArgumentException |
| 32 | + * @return void |
|
| 32 | 33 | */ |
| 33 | 34 | public function register($service, int $priority = 0): void; |
| 34 | 35 | |
@@ -36,6 +37,7 @@ discard block |
||
| 36 | 37 | * @param object $service |
| 37 | 38 | * |
| 38 | 39 | * @throws NonExistingServiceException |
| 40 | + * @return void |
|
| 39 | 41 | */ |
| 40 | 42 | public function unregister($service): void; |
| 41 | 43 | |
@@ -29,6 +29,7 @@ discard block |
||
| 29 | 29 | * |
| 30 | 30 | * @throws ExistingServiceException |
| 31 | 31 | * @throws \InvalidArgumentException |
| 32 | + * @return void |
|
| 32 | 33 | */ |
| 33 | 34 | public function register(string $identifier, $service): void; |
| 34 | 35 | |
@@ -36,6 +37,7 @@ discard block |
||
| 36 | 37 | * @param string $identifier |
| 37 | 38 | * |
| 38 | 39 | * @throws NonExistingServiceException |
| 40 | + * @return void |
|
| 39 | 41 | */ |
| 40 | 42 | public function unregister(string $identifier): void; |
| 41 | 43 | |