Completed
Push — scalar-types/theme ( 71f30c )
by Kamil
21:15
created
src/Sylius/Component/Shipping/Model/ShipmentUnit.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductVariant.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/OrderItemUnit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Bundle/ShippingBundle/DependencyInjection/SyliusShippingExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/test/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Bundle/InventoryBundle/DependencyInjection/SyliusInventoryExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/test/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/InventoryBundle/Twig/InventoryExtension.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Asset/Installer/OutputAwareInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@
 block discarded – undo
22 22
 {
23 23
     /**
24 24
      * @param OutputInterface $output
25
+     * @return void
25 26
      */
26 27
     public function setOutput(OutputInterface $output): void;
27 28
 }
Please login to merge, or discard this patch.