Completed
Push — scalar-types/order ( bd3d7c )
by Kamil
21:55
created
src/Sylius/Component/Attribute/Model/AttributeTranslation.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\Attribute\Model;
15 15
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * {@inheritdoc}
51 51
      */
52
-    public function setName(?string $name): void
52
+    public function setName(?string $name) : void
53 53
     {
54 54
         $this->name = $name;
55 55
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/AttributeValueInterface.php 1 patch
Spacing   +4 added lines, -4 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\Attribute\Model;
15 15
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param AttributeSubjectInterface|null $subject
38 38
      */
39
-    public function setSubject(?AttributeSubjectInterface $subject): void;
39
+    public function setSubject(?AttributeSubjectInterface $subject) : void;
40 40
 
41 41
     /**
42 42
      *
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     /**
48 48
      * @param AttributeInterface|null $attribute
49 49
      */
50
-    public function setAttribute(?AttributeInterface $attribute): void;
50
+    public function setAttribute(?AttributeInterface $attribute) : void;
51 51
 
52 52
     /**
53 53
      * @return mixed
@@ -84,5 +84,5 @@  discard block
 block discarded – undo
84 84
     /**
85 85
      * @param string|null $localeCode
86 86
      */
87
-    public function setLocaleCode(?string $localeCode): void;
87
+    public function setLocaleCode(?string $localeCode) : void;
88 88
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/Model/AttributeSubjectInterface.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\Attribute\Model;
15 15
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @return bool
58 58
      */
59
-    public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): bool;
59
+    public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : bool;
60 60
 
61 61
     /**
62 62
      * @param string $attributeCode
@@ -64,5 +64,5 @@  discard block
 block discarded – undo
64 64
      *
65 65
      * @return AttributeValueInterface|null
66 66
      */
67
-    public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): ?AttributeValueInterface;
67
+    public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : ?AttributeValueInterface;
68 68
 }
Please login to merge, or discard this patch.
Bundle/AttributeBundle/DependencyInjection/SyliusAttributeExtension.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\AttributeBundle\DependencyInjection;
15 15
 
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function load(array $config, ContainerBuilder $container): void
27 27
     {
28 28
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
29
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
29
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
30 30
 
31 31
         $loader->load('services.xml');
32 32
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         foreach ($resources as $subjectName => $subjectConfig) {
42 42
             foreach ($subjectConfig as $resourceName => $resourceConfig) {
43 43
                 if (is_array($resourceConfig)) {
44
-                    $resolvedResources[$subjectName.'_'.$resourceName] = $resourceConfig;
44
+                    $resolvedResources[$subjectName . '_' . $resourceName] = $resourceConfig;
45 45
                 }
46 46
             }
47 47
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/AttributeBundle/test/app/AppKernel.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
 use PSS\SymfonyMockerContainer\DependencyInjection\MockerContainer;
15 15
 use Symfony\Component\Config\Loader\LoaderInterface;
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function registerContainerConfiguration(LoaderInterface $loader): void
41 41
     {
42
-        $loader->load(__DIR__.'/config/config.yml');
42
+        $loader->load(__DIR__ . '/config/config.yml');
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/spec/Context/SessionBasedCartContextSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 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 spec\Sylius\Bundle\OrderBundle\Context;
15 15
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/DependencyInjection/SyliusOrderExtension.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\OrderBundle\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/OrderBundle/Remover/ExpiredCartsRemover.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\OrderBundle\Remover;
15 15
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function remove(): void
67 67
     {
68
-        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-'.$this->expirationPeriod));
68
+        $expiredCarts = $this->orderRepository->findCartsNotModifiedSince(new \DateTime('-' . $this->expirationPeriod));
69 69
 
70 70
         $this->eventDispatcher->dispatch(SyliusExpiredCartsEvents::PRE_REMOVE, new GenericEvent($expiredCarts));
71 71
 
Please login to merge, or discard this patch.