Completed
Push — scalar-types/ui ( 162de3 )
by Kamil
22:15
created
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.
src/Sylius/Component/Inventory/Model/StockableInterface.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\Inventory\Model;
15 15
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
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/UiBundle/DependencyInjection/SyliusUiExtension.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\UiBundle\DependencyInjection;
15 15
 
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
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
 }
Please login to merge, or discard this patch.