Completed
Push — typehint/addressing ( 847595 )
by Kamil
24:15
created
src/Sylius/Component/Shipping/Model/ShippingCategory.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
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * {@inheritdoc}
68 68
      */
69
-    public function getCode(): ?string
69
+    public function getCode(): ? string
70 70
     {
71 71
         return $this->code;
72 72
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     /**
75 75
      * {@inheritdoc}
76 76
      */
77
-    public function setCode(?string $code): void
77
+    public function setCode(? string $code) : void
78 78
     {
79 79
         $this->code = $code;
80 80
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Form/Type/ZoneCodeChoiceType.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\AddressingBundle\Form\Type;
15 15
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
             ->setDefaults([
58 58
                 'choice_filter' => null,
59 59
                 'choices' => function (Options $options): iterable {
60
-                    $zones =  $this->zoneRepository->findAll();
60
+                    $zones = $this->zoneRepository->findAll();
61 61
                     if ($options['choice_filter']) {
62 62
                         $zones = array_filter($zones, $options['choice_filter']);
63 63
                     }
Please login to merge, or discard this patch.
Bundle/AddressingBundle/Form/EventListener/BuildAddressFormSubscriber.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\Bundle\AddressingBundle\Form\EventListener;
15 15
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      *
135 135
      * @return FormInterface
136 136
      */
137
-    private function createProvinceCodeChoiceForm(CountryInterface $country, ?string $provinceCode = null): FormInterface
137
+    private function createProvinceCodeChoiceForm(CountryInterface $country, ? string $provinceCode = null) : FormInterface
138 138
     {
139 139
         return $this->formFactory->createNamed('provinceCode', ProvinceCodeChoiceType::class, $provinceCode, [
140 140
             'country' => $country,
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      *
150 150
      * @return FormInterface
151 151
      */
152
-    private function createProvinceNameTextForm(?string $provinceName = null): FormInterface
152
+    private function createProvinceNameTextForm(? string $provinceName = null) : FormInterface
153 153
     {
154 154
         return $this->formFactory->createNamed('provinceName', TextType::class, $provinceName, [
155 155
             'required' => false,
Please login to merge, or discard this patch.
Bundle/AddressingBundle/DependencyInjection/SyliusAddressingExtension.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\AddressingBundle\DependencyInjection;
15 15
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function load(array $config, ContainerBuilder $container): void
33 33
     {
34 34
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
35
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
35
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
36 36
 
37 37
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
38 38
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/AddressingBundle/Twig/CountryNameExtension.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\AddressingBundle\Twig;
15 15
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      *
38 38
      * @return string
39 39
      */
40
-    public function translateCountryIsoCode($country, ?string $locale = null): string
40
+    public function translateCountryIsoCode($country, ? string $locale = null) : string
41 41
     {
42 42
         if ($country instanceof CountryInterface) {
43 43
             return Intl::getRegionBundle()->getCountryName($country->getCode(), $locale);
Please login to merge, or discard this patch.