Completed
Push — scalar-types/resource ( 4814fd )
by Kamil
23:02
created
src/Sylius/Component/Locale/Context/LocaleNotFoundException.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,7 @@  discard block
 block discarded – undo
20 20
 {
21 21
     /**
22 22
      * {@inheritdoc}
23
+     * @param string $message
23 24
      */
24 25
     public function __construct(?string $message = null, \Exception $previousException = null)
25 26
     {
@@ -38,7 +39,7 @@  discard block
 block discarded – undo
38 39
 
39 40
     /**
40 41
      * @param string $localeCode
41
-     * @param array $availableLocalesCodes
42
+     * @param string[] $availableLocalesCodes
42 43
      *
43 44
      * @return self
44 45
      */
Please login to merge, or discard this patch.
src/Sylius/Component/Locale/Model/LocalesAwareInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -34,11 +34,13 @@
 block discarded – undo
34 34
 
35 35
     /**
36 36
      * @param LocaleInterface $locale
37
+     * @return void
37 38
      */
38 39
     public function addLocale(LocaleInterface $locale): void;
39 40
 
40 41
     /**
41 42
      * @param LocaleInterface $locale
43
+     * @return void
42 44
      */
43 45
     public function removeLocale(LocaleInterface $locale): void;
44 46
 }
Please login to merge, or discard this patch.
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/Component/Customer/Model/CustomerAwareInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -25,6 +25,7 @@
 block discarded – undo
25 25
 
26 26
     /**
27 27
      * @param CustomerInterface|null $customer
28
+     * @return void
28 29
      */
29 30
     public function setCustomer(?CustomerInterface $customer): void;
30 31
 }
Please login to merge, or discard this 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\Customer\Model;
15 15
 
@@ -26,5 +26,5 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * @param CustomerInterface|null $customer
28 28
      */
29
-    public function setCustomer(?CustomerInterface $customer): void;
29
+    public function setCustomer(?CustomerInterface $customer) : void;
30 30
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Customer/Model/CustomerGroupInterface.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@
 block discarded – undo
29 29
 
30 30
     /**
31 31
      * @param string|null $name
32
+     * @return void
32 33
      */
33 34
     public function setName(?string $name): void;
34 35
 }
Please login to merge, or discard this 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\Customer\Model;
15 15
 
@@ -30,5 +30,5 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * @param string|null $name
32 32
      */
33
-    public function setName(?string $name): void;
33
+    public function setName(?string $name) : void;
34 34
 }
Please login to merge, or discard this patch.