Completed
Push — scalar-types/resource ( 4814fd )
by Kamil
23:02
created
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.
src/Sylius/Component/Customer/Model/Customer.php 1 patch
Spacing   +9 added lines, -9 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
 
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * {@inheritdoc}
106 106
      */
107
-    public function setEmail(?string $email): void
107
+    public function setEmail(?string $email) : void
108 108
     {
109 109
         $this->email = $email;
110 110
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     /**
121 121
      * {@inheritdoc}
122 122
      */
123
-    public function setEmailCanonical(?string $emailCanonical): void
123
+    public function setEmailCanonical(?string $emailCanonical) : void
124 124
     {
125 125
         $this->emailCanonical = $emailCanonical;
126 126
     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
     /**
145 145
      * {@inheritdoc}
146 146
      */
147
-    public function setFirstName(?string $firstName): void
147
+    public function setFirstName(?string $firstName) : void
148 148
     {
149 149
         $this->firstName = $firstName;
150 150
     }
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
     /**
161 161
      * {@inheritdoc}
162 162
      */
163
-    public function setLastName(?string $lastName): void
163
+    public function setLastName(?string $lastName) : void
164 164
     {
165 165
         $this->lastName = $lastName;
166 166
     }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
     /**
177 177
      * {@inheritdoc}
178 178
      */
179
-    public function setBirthday(?\DateTimeInterface $birthday): void
179
+    public function setBirthday(?\DateTimeInterface $birthday) : void
180 180
     {
181 181
         $this->birthday = $birthday;
182 182
     }
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
     /**
193 193
      * {@inheritdoc}
194 194
      */
195
-    public function setGender(?string $gender): void
195
+    public function setGender(?string $gender) : void
196 196
     {
197 197
         $this->gender = $gender;
198 198
     }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     /**
225 225
      * {@inheritdoc}
226 226
      */
227
-    public function setGroup(?CustomerGroupInterface $group): void
227
+    public function setGroup(?CustomerGroupInterface $group) : void
228 228
     {
229 229
         $this->group = $group;
230 230
     }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     /**
241 241
      * {@inheritdoc}
242 242
      */
243
-    public function setPhoneNumber(?string $phoneNumber): void
243
+    public function setPhoneNumber(?string $phoneNumber) : void
244 244
     {
245 245
         $this->phoneNumber = $phoneNumber;
246 246
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/PaymentBundle/test/app/AppKernel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      */
44 44
     public function registerContainerConfiguration(LoaderInterface $loader): void
45 45
     {
46
-        $loader->load(__DIR__.'/config/config.yml');
46
+        $loader->load(__DIR__ . '/config/config.yml');
47 47
     }
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/PaymentBundle/DependencyInjection/SyliusPaymentExtension.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\PaymentBundle\DependencyInjection;
15 15
 
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
     public function load(array $config, ContainerBuilder $container): void
30 30
     {
31 31
         $config = $this->processConfiguration($this->getConfiguration([], $container), $config);
32
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
32
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
33 33
 
34 34
         $this->registerResources('sylius', $config['driver'], $config['resources'], $container);
35 35
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Routing/ResourceLoader.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\Routing;
15 15
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
         bool $isApi = false
153 153
     ): Route {
154 154
         $defaults = [
155
-            '_controller' => $metadata->getServiceId('controller').sprintf(':%sAction', $actionName),
155
+            '_controller' => $metadata->getServiceId('controller') . sprintf(':%sAction', $actionName),
156 156
         ];
157 157
 
158 158
         if ($isApi && 'index' === $actionName) {
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     private function getRouteName(MetadataInterface $metadata, array $configuration, string $actionName): string
213 213
     {
214
-        $sectionPrefix = isset($configuration['section']) ? $configuration['section'].'_' : '';
214
+        $sectionPrefix = isset($configuration['section']) ? $configuration['section'] . '_' : '';
215 215
 
216 216
         return sprintf('%s_%s%s_%s', $metadata->getApplicationName(), $sectionPrefix, $metadata->getName(), $actionName);
217 217
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/EventListener/ORMTranslatableListener.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\EventListener;
15 15
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         }
125 125
 
126 126
         /** @var MetadataInterface $translationResourceMetadata */
127
-        $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias().'_translation');
127
+        $translationResourceMetadata = $this->resourceMetadataRegistry->get($resourceMetadata->getAlias() . '_translation');
128 128
 
129 129
         $metadata->mapOneToMany([
130 130
             'fieldName' => 'translations',
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         if (!$this->hasUniqueConstraint($metadata, $columns)) {
185 185
             $constraints = $metadata->table['uniqueConstraints'] ?? [];
186 186
 
187
-            $constraints[$metadata->getTableName().'_uniq_trans'] = [
187
+            $constraints[$metadata->getTableName() . '_uniq_trans'] = [
188 188
                 'columns' => $columns,
189 189
             ];
190 190
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Doctrine/ORM/EntityRepository.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\Doctrine\ORM;
15 15
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             } elseif ('' !== $value) {
102 102
                 $parameter = str_replace('.', '_', $property);
103 103
                 $queryBuilder
104
-                    ->andWhere($queryBuilder->expr()->eq($name, ':'.$parameter))
104
+                    ->andWhere($queryBuilder->expr()->eq($name, ':' . $parameter))
105 105
                     ->setParameter($parameter, $value)
106 106
                 ;
107 107
             }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     protected function getPropertyName(string $name): string
134 134
     {
135 135
         if (false === strpos($name, '.')) {
136
-            return 'o'.'.'.$name;
136
+            return 'o' . '.' . $name;
137 137
         }
138 138
 
139 139
         return $name;
Please login to merge, or discard this patch.