Completed
Push — scalar-types/customer ( db66a3...ff9fd6 )
by Kamil
24:23
created
src/Sylius/Component/Locale/Converter/LocaleConverterInterface.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\Locale\Converter;
15 15
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @throws \InvalidArgumentException
28 28
      */
29
-    public function convertNameToCode(string $name, ?string $locale = null): string;
29
+    public function convertNameToCode(string $name, ?string $locale = null) : string;
30 30
 
31 31
     /**
32 32
      * @param string $code
@@ -36,5 +36,5 @@  discard block
 block discarded – undo
36 36
      *
37 37
      * @throws \InvalidArgumentException
38 38
      */
39
-    public function convertCodeToName(string $code, ?string $locale = null): string;
39
+    public function convertCodeToName(string $code, ?string $locale = null) : string;
40 40
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Locale/Model/LocaleInterface.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\Locale\Model;
15 15
 
@@ -27,5 +27,5 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @return string|null
29 29
      */
30
-    public function getName(?string $locale = null): ?string;
30
+    public function getName(?string $locale = null) : ?string;
31 31
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Locale/Model/Locale.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\Locale\Model;
15 15
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     /**
66 66
      * {@inheritdoc}
67 67
      */
68
-    public function setCode(?string $code): void
68
+    public function setCode(?string $code) : void
69 69
     {
70 70
         $this->code = $code;
71 71
     }
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
     /**
74 74
      * {@inheritdoc}
75 75
      */
76
-    public function getName(?string $locale = null): ?string
76
+    public function getName(?string $locale = null) : ?string
77 77
     {
78 78
         return Intl::getLocaleBundle()->getLocaleName($this->getCode(), $locale);
79 79
     }
Please login to merge, or discard this patch.
Sylius/Bundle/LocaleBundle/DependencyInjection/SyliusLocaleExtension.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\LocaleBundle\DependencyInjection;
15 15
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     public function load(array $config, ContainerBuilder $container): void
32 32
     {
33 33
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
34
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
34
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
35 35
 
36 36
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
37 37
 
Please login to merge, or discard this patch.
src/Sylius/Component/Locale/Converter/LocaleConverter.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\Locale\Converter;
15 15
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * {@inheritdoc}
26 26
      */
27
-    public function convertNameToCode(string $name, ?string $locale = null): string
27
+    public function convertNameToCode(string $name, ?string $locale = null) : string
28 28
     {
29 29
         $names = Intl::getLocaleBundle()->getLocaleNames($locale ?? 'en');
30 30
         $code = array_search($name, $names, true);
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * {@inheritdoc}
39 39
      */
40
-    public function convertCodeToName(string $code, ?string $locale = null): string
40
+    public function convertCodeToName(string $code, ?string $locale = null) : string
41 41
     {
42 42
         $name = Intl::getLocaleBundle()->getLocaleName($code, $locale ?? 'en');
43 43
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/MoneyBundle/Formatter/MoneyFormatterInterface.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
  * For the full copyright and license information, please view the LICENSE
9 9
  * file that was distributed with this source code.
10 10
  */
11
-declare(strict_types=1);
11
+declare(strict_types = 1);
12 12
 
13 13
 namespace Sylius\Bundle\MoneyBundle\Formatter;
14 14
 
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @throws \InvalidArgumentException
28 28
      */
29
-    public function format(int $amount, string $currencyCode, ?string $locale = null): string;
29
+    public function format(int $amount, string $currencyCode, ?string $locale = null) : string;
30 30
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/MoneyBundle/Formatter/MoneyFormatter.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\MoneyBundle\Formatter;
15 15
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * {@inheritdoc}
25 25
      */
26
-    public function format(int $amount, string $currency, ?string $locale = null): string
26
+    public function format(int $amount, string $currency, ?string $locale = null) : string
27 27
     {
28 28
         $formatter = new \NumberFormatter($locale ?? 'en', \NumberFormatter::CURRENCY);
29 29
 
Please login to merge, or discard this patch.
Sylius/Bundle/MoneyBundle/Templating/Helper/ConvertMoneyHelperInterface.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\MoneyBundle\Templating\Helper;
15 15
 
@@ -27,5 +27,5 @@  discard block
 block discarded – undo
27 27
      *
28 28
      * @throws \InvalidArgumentException
29 29
      */
30
-    public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode): string;
30
+    public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode) : string;
31 31
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/MoneyBundle/Templating/Helper/ConvertMoneyHelper.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\MoneyBundle\Templating\Helper;
15 15
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     /**
35 35
      * {@inheritdoc}
36 36
      */
37
-    public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode): string
37
+    public function convertAmount(int $amount, ?string $sourceCurrencyCode, ?string $targetCurrencyCode) : string
38 38
     {
39 39
         return (string) $this->currencyConverter->convert($amount, $sourceCurrencyCode, $targetCurrencyCode);
40 40
     }
Please login to merge, or discard this patch.