Completed
Push — scalar-types/resource ( 4814fd )
by Kamil
23:02
created
src/Sylius/Bundle/ResourceBundle/Controller/RedirectHandlerInterface.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\ResourceBundle\Controller;
15 15
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      *
36 36
      * @return Response
37 37
      */
38
-    public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null): Response;
38
+    public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null) : Response;
39 39
 
40 40
     /**
41 41
      * @param RequestConfiguration $configuration
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Controller/FlashHelper.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\ResourceBundle\Controller;
15 15
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         RequestConfiguration $requestConfiguration,
60 60
         string $actionName,
61 61
         ?ResourceInterface $resource = null
62
-    ): void {
62
+    ) : void {
63 63
         $this->addFlashWithType($requestConfiguration, $actionName, 'success');
64 64
     }
65 65
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Controller/RedirectHandler.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\Bundle\ResourceBundle\Controller;
15 15
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
     /**
62 62
      * {@inheritdoc}
63 63
      */
64
-    public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null): Response
64
+    public function redirectToIndex(RequestConfiguration $configuration, ?ResourceInterface $resource = null) : Response
65 65
     {
66 66
         return $this->redirectToRoute(
67 67
             $configuration,
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
     {
90 90
         if ($configuration->isHeaderRedirection()) {
91 91
             return new Response('', 200, [
92
-                'X-SYLIUS-LOCATION' => $url.$configuration->getRedirectHash(),
92
+                'X-SYLIUS-LOCATION' => $url . $configuration->getRedirectHash(),
93 93
             ]);
94 94
         }
95 95
 
96
-        return new RedirectResponse($url.$configuration->getRedirectHash(), $status);
96
+        return new RedirectResponse($url . $configuration->getRedirectHash(), $status);
97 97
     }
98 98
 
99 99
     /**
Please login to merge, or discard this patch.
Bundle/ResourceBundle/DependencyInjection/SyliusResourceExtension.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\ResourceBundle\DependencyInjection;
15 15
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public function load(array $config, ContainerBuilder $container): void
35 35
     {
36 36
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
37
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
37
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
38 38
 
39 39
         $loader->load('services.xml');
40 40
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             DriverProvider::get($metadata)->load($container, $metadata);
86 86
 
87 87
             if ($metadata->hasParameter('translation')) {
88
-                $alias = $alias.'_translation';
88
+                $alias = $alias . '_translation';
89 89
                 $resourceConfig = array_merge(['driver' => $resourceConfig['driver']], $resourceConfig['translation']);
90 90
 
91 91
                 $resources = $container->hasParameter('sylius.resources') ? $container->getParameter('sylius.resources') : [];
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentMethodTranslation.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\Payment\Model;
15 15
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     /**
65 65
      * {@inheritdoc}
66 66
      */
67
-    public function setName(?string $name): void
67
+    public function setName(?string $name) : void
68 68
     {
69 69
         $this->name = $name;
70 70
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * {@inheritdoc}
82 82
      */
83
-    public function setDescription(?string $description): void
83
+    public function setDescription(?string $description) : void
84 84
     {
85 85
         $this->description = $description;
86 86
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * {@inheritdoc}
98 98
      */
99
-    public function setInstructions(?string $instructions): void
99
+    public function setInstructions(?string $instructions) : void
100 100
     {
101 101
         $this->instructions = $instructions;
102 102
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/Payment.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\Payment\Model;
15 15
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     /**
79 79
      * {@inheritdoc}
80 80
      */
81
-    public function setMethod(?PaymentMethodInterface $method): void
81
+    public function setMethod(?PaymentMethodInterface $method) : void
82 82
     {
83 83
         $this->method = $method;
84 84
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentMethod.php 1 patch
Spacing   +7 added lines, -7 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\Payment\Model;
15 15
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
     /**
82 82
      * {@inheritdoc}
83 83
      */
84
-    public function setCode(?string $code): void
84
+    public function setCode(?string $code) : void
85 85
     {
86 86
         $this->code = $code;
87 87
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     /**
98 98
      * {@inheritdoc}
99 99
      */
100
-    public function setName(?string $name): void
100
+    public function setName(?string $name) : void
101 101
     {
102 102
         $this->getTranslation()->setName($name);
103 103
     }
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     /**
114 114
      * {@inheritdoc}
115 115
      */
116
-    public function setDescription(?string $description): void
116
+    public function setDescription(?string $description) : void
117 117
     {
118 118
         $this->getTranslation()->setDescription($description);
119 119
     }
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * {@inheritdoc}
131 131
      */
132
-    public function setInstructions(?string $instructions): void
132
+    public function setInstructions(?string $instructions) : void
133 133
     {
134 134
         $this->getTranslation()->setInstructions($instructions);
135 135
     }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     /**
146 146
      * {@inheritdoc}
147 147
      */
148
-    public function setEnvironment(?string $environment): void
148
+    public function setEnvironment(?string $environment) : void
149 149
     {
150 150
         $this->environment = $environment;
151 151
     }
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     /**
162 162
      * {@inheritdoc}
163 163
      */
164
-    public function setPosition(?int $position): void
164
+    public function setPosition(?int $position) : void
165 165
     {
166 166
         $this->position = $position;
167 167
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Repository/InMemoryRepository.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\Resource\Repository;
15 15
 
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     /**
113 113
      * {@inheritdoc}
114 114
      */
115
-    public function findBy(array $criteria, ?array $orderBy = null, $limit = null, $offset = null): array
115
+    public function findBy(array $criteria, ? array $orderBy = null, $limit = null, $offset = null) : array
116 116
     {
117 117
         $results = $this->findAll();
118 118
 
Please login to merge, or discard this patch.
src/Sylius/Component/Resource/Model/ArchivableTrait.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\Resource\Model;
15 15
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param \DateTimeInterface|null $archivedAt
38 38
      */
39
-    public function setArchivedAt(?\DateTimeInterface $archivedAt): void
39
+    public function setArchivedAt(?\DateTimeInterface $archivedAt) : void
40 40
     {
41 41
         $this->archivedAt = $archivedAt;
42 42
     }
Please login to merge, or discard this patch.