@@ -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\Shipping\Model; |
| 15 | 15 | |
@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | /** |
| 70 | 70 | * {@inheritdoc} |
| 71 | 71 | */ |
| 72 | - public function setShipment(?ShipmentInterface $shipment): void |
|
| 72 | + public function setShipment(?ShipmentInterface $shipment) : void |
|
| 73 | 73 | { |
| 74 | 74 | $this->shipment = $shipment; |
| 75 | 75 | } |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | /** |
| 86 | 86 | * @param ShippableInterface|null $shippable |
| 87 | 87 | */ |
| 88 | - public function setShippable(?ShippableInterface $shippable): void |
|
| 88 | + public function setShippable(?ShippableInterface $shippable) : void |
|
| 89 | 89 | { |
| 90 | 90 | $this->shippable = $shippable; |
| 91 | 91 | } |
@@ -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\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 | /** |
@@ -39,8 +39,8 @@ |
||
| 39 | 39 | public function getFunctions(): array |
| 40 | 40 | { |
| 41 | 41 | return [ |
| 42 | - new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | - new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 42 | + new \Twig_Function('sylius_inventory_is_available', [$this->helper, 'isStockAvailable']), |
|
| 43 | + new \Twig_Function('sylius_inventory_is_sufficient', [$this->helper, 'isStockSufficient']), |
|
| 44 | 44 | ]; |
| 45 | 45 | } |
| 46 | 46 | } |
@@ -22,6 +22,7 @@ |
||
| 22 | 22 | { |
| 23 | 23 | /** |
| 24 | 24 | * @param OutputInterface $output |
| 25 | + * @return void |
|
| 25 | 26 | */ |
| 26 | 27 | public function setOutput(OutputInterface $output): void; |
| 27 | 28 | } |