@@ -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\Core\Model; |
| 15 | 15 | |
@@ -109,10 +109,10 @@ discard block |
||
| 109 | 109 | $string .= '('; |
| 110 | 110 | |
| 111 | 111 | foreach ($this->getOptionValues() as $option) { |
| 112 | - $string .= $option->getOption()->getName().': '.$option->getValue().', '; |
|
| 112 | + $string .= $option->getOption()->getName() . ': ' . $option->getValue() . ', '; |
|
| 113 | 113 | } |
| 114 | 114 | |
| 115 | - $string = substr($string, 0, -2).')'; |
|
| 115 | + $string = substr($string, 0, -2) . ')'; |
|
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | return $string; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | /** |
| 130 | 130 | * {@inheritdoc} |
| 131 | 131 | */ |
| 132 | - public function setVersion(?int $version): void |
|
| 132 | + public function setVersion(?int $version) : void |
|
| 133 | 133 | { |
| 134 | 134 | $this->version = $version; |
| 135 | 135 | } |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * {@inheritdoc} |
| 155 | 155 | */ |
| 156 | - public function setOnHold(?int $onHold): void |
|
| 156 | + public function setOnHold(?int $onHold) : void |
|
| 157 | 157 | { |
| 158 | 158 | $this->onHold = $onHold; |
| 159 | 159 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | /** |
| 170 | 170 | * {@inheritdoc} |
| 171 | 171 | */ |
| 172 | - public function setOnHand(?int $onHand): void |
|
| 172 | + public function setOnHand(?int $onHand) : void |
|
| 173 | 173 | { |
| 174 | 174 | $this->onHand = (0 > $onHand) ? 0 : $onHand; |
| 175 | 175 | } |
@@ -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\Core\Model; |
| 15 | 15 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | /** |
| 53 | 53 | * {@inheritdoc} |
| 54 | 54 | */ |
| 55 | - public function setShipment(?BaseShipmentInterface $shipment): void |
|
| 55 | + public function setShipment(?BaseShipmentInterface $shipment) : void |
|
| 56 | 56 | { |
| 57 | 57 | $this->shipment = $shipment; |
| 58 | 58 | } |
@@ -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\Inventory\Model; |
| 15 | 15 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | /** |
| 37 | 37 | * @param int|null $onHold |
| 38 | 38 | */ |
| 39 | - public function setOnHold(?int $onHold): void; |
|
| 39 | + public function setOnHold(?int $onHold) : void; |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * @return int|null |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | /** |
| 47 | 47 | * @param int|null $onHand |
| 48 | 48 | */ |
| 49 | - public function setOnHand(?int $onHand): void; |
|
| 49 | + public function setOnHand(?int $onHand) : void; |
|
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * @return bool |
@@ -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\ShippingBundle\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 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function registerContainerConfiguration(LoaderInterface $loader): void |
| 45 | 45 | { |
| 46 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 46 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -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\InventoryBundle\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 | $this->registerResources('sylius', $config['driver'], $config['resources'], $container); |
| 36 | 36 | |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | public function registerContainerConfiguration(LoaderInterface $loader): void |
| 45 | 45 | { |
| 46 | - $loader->load(__DIR__.'/config/config.yml'); |
|
| 46 | + $loader->load(__DIR__ . '/config/config.yml'); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
@@ -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\UiBundle\DependencyInjection; |
| 15 | 15 | |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | public function load(array $config, ContainerBuilder $container): void |
| 30 | 30 | { |
| 31 | - $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 31 | + $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 32 | 32 | $loader->load('services.xml'); |
| 33 | 33 | } |
| 34 | 34 | } |