Completed
Push — scalar-types/resource ( 4814fd )
by Kamil
23:02
created
Sylius/Bundle/MailerBundle/DependencyInjection/SyliusMailerExtension.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\MailerBundle\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
         $configFiles = [
36 36
             'services.xml',
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/Address.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
 
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * {@inheritdoc}
39 39
      */
40
-    public function setCustomer(?BaseCustomerInterface $customer): void
40
+    public function setCustomer(?BaseCustomerInterface $customer) : void
41 41
     {
42 42
         $this->customer = $customer;
43 43
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Registry/PrioritizedServiceRegistryInterface.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 interface PrioritizedServiceRegistryInterface
20 20
 {
21 21
     /**
22
-     * @return iterable
22
+     * @return \Zend\Stdlib\PriorityQueue
23 23
      */
24 24
     public function all(): iterable;
25 25
 
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @throws ExistingServiceException
31 31
      * @throws \InvalidArgumentException
32
+     * @return void
32 33
      */
33 34
     public function register($service, int $priority = 0): void;
34 35
 
@@ -36,6 +37,7 @@  discard block
 block discarded – undo
36 37
      * @param object $service
37 38
      *
38 39
      * @throws NonExistingServiceException
40
+     * @return void
39 41
      */
40 42
     public function unregister($service): void;
41 43
 
Please login to merge, or discard this patch.
src/Sylius/Component/Registry/ServiceRegistryInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -29,6 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @throws ExistingServiceException
31 31
      * @throws \InvalidArgumentException
32
+     * @return void
32 33
      */
33 34
     public function register(string $identifier, $service): void;
34 35
 
@@ -36,6 +37,7 @@  discard block
 block discarded – undo
36 37
      * @param string $identifier
37 38
      *
38 39
      * @throws NonExistingServiceException
40
+     * @return void
39 41
      */
40 42
     public function unregister(string $identifier): void;
41 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.
src/Sylius/Bundle/MoneyBundle/DependencyInjection/SyliusMoneyExtension.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\MoneyBundle\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
         $container->setParameter('sylius_money.locale', $config['locale']);
36 36
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             return;
47 47
         }
48 48
 
49
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
49
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
50 50
         $loader->load('services/integrations/currency.xml');
51 51
     }
52 52
 }
Please login to merge, or discard this patch.