@@ -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\Attribute\Model; |
| 15 | 15 | |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | /** |
| 50 | 50 | * {@inheritdoc} |
| 51 | 51 | */ |
| 52 | - public function setName(?string $name): void |
|
| 52 | + public function setName(?string $name) : void |
|
| 53 | 53 | { |
| 54 | 54 | $this->name = $name; |
| 55 | 55 | } |
@@ -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\Attribute\Model; |
| 15 | 15 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * @param AttributeSubjectInterface|null $subject |
| 38 | 38 | */ |
| 39 | - public function setSubject(?AttributeSubjectInterface $subject): void; |
|
| 39 | + public function setSubject(?AttributeSubjectInterface $subject) : void; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | /** |
| 48 | 48 | * @param AttributeInterface|null $attribute |
| 49 | 49 | */ |
| 50 | - public function setAttribute(?AttributeInterface $attribute): void; |
|
| 50 | + public function setAttribute(?AttributeInterface $attribute) : void; |
|
| 51 | 51 | |
| 52 | 52 | /** |
| 53 | 53 | * @return mixed |
@@ -84,5 +84,5 @@ discard block |
||
| 84 | 84 | /** |
| 85 | 85 | * @param string|null $localeCode |
| 86 | 86 | */ |
| 87 | - public function setLocaleCode(?string $localeCode): void; |
|
| 87 | + public function setLocaleCode(?string $localeCode) : void; |
|
| 88 | 88 | } |
@@ -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\Attribute\Model; |
| 15 | 15 | |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | * |
| 57 | 57 | * @return bool |
| 58 | 58 | */ |
| 59 | - public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): bool; |
|
| 59 | + public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : bool; |
|
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | 62 | * @param string $attributeCode |
@@ -64,5 +64,5 @@ discard block |
||
| 64 | 64 | * |
| 65 | 65 | * @return AttributeValueInterface|null |
| 66 | 66 | */ |
| 67 | - public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): ?AttributeValueInterface; |
|
| 67 | + public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : ?AttributeValueInterface; |
|
| 68 | 68 | } |
@@ -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\AttributeBundle\DependencyInjection; |
| 15 | 15 | |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | public function load(array $config, ContainerBuilder $container): void |
| 27 | 27 | { |
| 28 | 28 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 29 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 29 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 30 | 30 | |
| 31 | 31 | $loader->load('services.xml'); |
| 32 | 32 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | foreach ($resources as $subjectName => $subjectConfig) { |
| 42 | 42 | foreach ($subjectConfig as $resourceName => $resourceConfig) { |
| 43 | 43 | if (is_array($resourceConfig)) { |
| 44 | - $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig; |
|
| 44 | + $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig; |
|
| 45 | 45 | } |
| 46 | 46 | } |
| 47 | 47 | } |
@@ -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 | use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer; |
| 15 | 15 | use Symfony\Component\Config\Loader\LoaderInterface; |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function registerContainerConfiguration(LoaderInterface $loader): void |
| 41 | 41 | { |
| 42 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 42 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -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\OrderBundle\Context; |
| 15 | 15 | |
@@ -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\OrderBundle\DependencyInjection; |
| 15 | 15 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | public function load(array $config, ContainerBuilder $container): void |
| 31 | 31 | { |
| 32 | 32 | $config = $this->processConfiguration($this->getConfiguration([], $container), $config); |
| 33 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 33 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 34 | 34 | |
| 35 | 35 | $loader->load(sprintf('services/integrations/%s.xml', $config['driver'])); |
| 36 | 36 | |
@@ -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\OrderBundle\Remover; |
| 15 | 15 | |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | |
| 66 | 66 | public function remove(): void |
| 67 | 67 | { |
| 68 | - $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod)); |
|
| 68 | + $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod)); |
|
| 69 | 69 | |
| 70 | 70 | $this->eventDispatcher->dispatch(SyliusExpiredCartsEvents::PRE_REMOVE, new GenericEvent($expiredCarts)); |
| 71 | 71 | |