Completed
Push — scalar-types/order ( bd3d7c )
by Kamil
21:55
created
src/Sylius/Bundle/GridBundle/DependencyInjection/SyliusGridExtension.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\GridBundle\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
         $loader->load('services.xml');
35 35
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/Doctrine/PHPCRODM/ExpressionBuilder.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\GridBundle\Doctrine\PHPCRODM;
15 15
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      */
166 166
     public function orderBy(string $field, string $direction)
167 167
     {
168
-        $this->orderBys = [ $field => $direction ];
168
+        $this->orderBys = [$field => $direction];
169 169
     }
170 170
 
171 171
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/GridBundle/Doctrine/PHPCRODM/ExpressionBuilderInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Sylius\Bundle\GridBundle\Doctrine\PHPCRODM;
6 6
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/Doctrine/ORM/ExpressionBuilder.php 1 patch
Spacing   +8 added lines, -8 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\GridBundle\Doctrine\ORM;
15 15
 
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $parameterName = $this->getParameterName($field);
68 68
         $this->queryBuilder->setParameter($parameterName, $value);
69 69
 
70
-        return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':'.$parameterName);
70
+        return $this->queryBuilder->expr()->eq($this->getFieldName($field), ':' . $parameterName);
71 71
     }
72 72
 
73 73
     /**
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $parameterName = $this->getParameterName($field);
79 79
         $this->queryBuilder->setParameter($parameterName, $value);
80 80
 
81
-        return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':'.$parameterName);
81
+        return $this->queryBuilder->expr()->neq($this->getFieldName($field), ':' . $parameterName);
82 82
     }
83 83
 
84 84
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $parameterName = $this->getParameterName($field);
90 90
         $this->queryBuilder->setParameter($parameterName, $value);
91 91
 
92
-        $this->queryBuilder->andWhere($this->getFieldName($field).' < :'.$parameterName);
92
+        $this->queryBuilder->andWhere($this->getFieldName($field) . ' < :' . $parameterName);
93 93
     }
94 94
 
95 95
     /**
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $parameterName = $this->getParameterName($field);
101 101
         $this->queryBuilder->setParameter($parameterName, $value);
102 102
 
103
-        $this->queryBuilder->andWhere($this->getFieldName($field).' <= :'.$parameterName);
103
+        $this->queryBuilder->andWhere($this->getFieldName($field) . ' <= :' . $parameterName);
104 104
     }
105 105
 
106 106
     /**
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
         $parameterName = $this->getParameterName($field);
112 112
         $this->queryBuilder->setParameter($parameterName, $value);
113 113
 
114
-        $this->queryBuilder->andWhere($this->getFieldName($field).' > :'.$parameterName);
114
+        $this->queryBuilder->andWhere($this->getFieldName($field) . ' > :' . $parameterName);
115 115
     }
116 116
 
117 117
     /**
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
         $parameterName = $this->getParameterName($field);
123 123
         $this->queryBuilder->setParameter($parameterName, $value);
124 124
 
125
-        $this->queryBuilder->andWhere($this->getFieldName($field).' >= :'.$parameterName);
125
+        $this->queryBuilder->andWhere($this->getFieldName($field) . ' >= :' . $parameterName);
126 126
     }
127 127
 
128 128
     /**
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     private function getFieldName(string $field): string
198 198
     {
199 199
         if (false === strpos($field, '.')) {
200
-            return $this->queryBuilder->getRootAlias().'.'.$field;
200
+            return $this->queryBuilder->getRootAlias() . '.' . $field;
201 201
         }
202 202
 
203 203
         return $field;
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/Doctrine/DBAL/ExpressionBuilder.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\Bundle\GridBundle\Doctrine\DBAL;
15 15
 
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
     {
66 66
         $this->queryBuilder->setParameter($field, $value);
67 67
 
68
-        return $this->queryBuilder->expr()->eq($field, ':'.$field);
68
+        return $this->queryBuilder->expr()->eq($field, ':' . $field);
69 69
     }
70 70
 
71 71
     /**
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     {
76 76
         $this->queryBuilder->setParameter($field, $value);
77 77
 
78
-        return $this->queryBuilder->expr()->neq($field, ':'.$field);
78
+        return $this->queryBuilder->expr()->neq($field, ':' . $field);
79 79
     }
80 80
 
81 81
     /**
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      */
84 84
     public function lessThan(string $field, $value)
85 85
     {
86
-        $this->queryBuilder->andWhere($field.' < :'.$field)->setParameter($field, $value);
86
+        $this->queryBuilder->andWhere($field . ' < :' . $field)->setParameter($field, $value);
87 87
     }
88 88
 
89 89
     /**
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      */
92 92
     public function lessThanOrEqual(string $field, $value)
93 93
     {
94
-        $this->queryBuilder->andWhere($field.' =< :'.$field)->setParameter($field, $value);
94
+        $this->queryBuilder->andWhere($field . ' =< :' . $field)->setParameter($field, $value);
95 95
     }
96 96
 
97 97
     /**
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     public function greaterThan(string $field, $value)
101 101
     {
102
-        $this->queryBuilder->andWhere($field.' > :'.$field)->setParameter($field, $value);
102
+        $this->queryBuilder->andWhere($field . ' > :' . $field)->setParameter($field, $value);
103 103
     }
104 104
 
105 105
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function greaterThanOrEqual(string $field, $value)
109 109
     {
110
-        $this->queryBuilder->andWhere($field.' => :%s'.$field)->setParameter($field, $value);
110
+        $this->queryBuilder->andWhere($field . ' => :%s' . $field)->setParameter($field, $value);
111 111
     }
112 112
 
113 113
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/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.
src/Sylius/Component/Product/Model/ProductVariantTranslationInterface.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\Product\Model;
15 15
 
@@ -36,5 +36,5 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param string|null $name
38 38
      */
39
-    public function setName(?string $name): void;
39
+    public function setName(?string $name) : void;
40 40
 }
Please login to merge, or discard this patch.
Component/Product/Model/ProductAssociationTypeTranslationInterface.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\Product\Model;
15 15
 
@@ -36,5 +36,5 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * @param string|null $name
38 38
      */
39
-    public function setName(?string $name): void;
39
+    public function setName(?string $name) : void;
40 40
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Product/Model/Product.php 1 patch
Spacing   +12 added lines, -12 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\Product\Model;
15 15
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
     /**
102 102
      * @param string $code
103 103
      */
104
-    public function setCode(?string $code): void
104
+    public function setCode(?string $code) : void
105 105
     {
106 106
         $this->code = $code;
107 107
     }
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     /**
118 118
      * {@inheritdoc}
119 119
      */
120
-    public function setName(?string $name): void
120
+    public function setName(?string $name) : void
121 121
     {
122 122
         $this->getTranslation()->setName($name);
123 123
     }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     /**
134 134
      * {@inheritdoc}
135 135
      */
136
-    public function setSlug(?string $slug): void
136
+    public function setSlug(?string $slug) : void
137 137
     {
138 138
         $this->getTranslation()->setSlug($slug);
139 139
     }
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     /**
150 150
      * {@inheritdoc}
151 151
      */
152
-    public function setDescription(?string $description): void
152
+    public function setDescription(?string $description) : void
153 153
     {
154 154
         $this->getTranslation()->setDescription($description);
155 155
     }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     /**
166 166
      * {@inheritdoc}
167 167
      */
168
-    public function setMetaKeywords(?string $metaKeywords): void
168
+    public function setMetaKeywords(?string $metaKeywords) : void
169 169
     {
170 170
         $this->getTranslation()->setMetaKeywords($metaKeywords);
171 171
     }
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
     /**
182 182
      * {@inheritdoc}
183 183
      */
184
-    public function setMetaDescription(?string $metaDescription): void
184
+    public function setMetaDescription(?string $metaDescription) : void
185 185
     {
186 186
         $this->getTranslation()->setMetaDescription($metaDescription);
187 187
     }
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
     /**
214 214
      * {@inheritdoc}
215 215
      */
216
-    public function addAttribute(?AttributeValueInterface $attribute): void
216
+    public function addAttribute(?AttributeValueInterface $attribute) : void
217 217
     {
218 218
         Assert::isInstanceOf(
219 219
             $attribute,
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     /**
231 231
      * {@inheritdoc}
232 232
      */
233
-    public function removeAttribute(?AttributeValueInterface $attribute): void
233
+    public function removeAttribute(?AttributeValueInterface $attribute) : void
234 234
     {
235 235
         Assert::isInstanceOf(
236 236
             $attribute,
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * {@inheritdoc}
257 257
      */
258
-    public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): bool
258
+    public function hasAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : bool
259 259
     {
260 260
         $localeCode = $localeCode ?: $this->getTranslation()->getLocale();
261 261
 
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
     /**
273 273
      * {@inheritdoc}
274 274
      */
275
-    public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null): ?AttributeValueInterface
275
+    public function getAttributeByCodeAndLocale(string $attributeCode, ?string $localeCode = null) : ?AttributeValueInterface
276 276
     {
277 277
         if (null === $localeCode) {
278 278
             $localeCode = $this->getTranslation()->getLocale();
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
     private function getAttributeInDifferentLocale(
447 447
         ProductAttributeValueInterface $attributeValue,
448 448
         ?string $localeCode
449
-    ): AttributeValueInterface {
449
+    ) : AttributeValueInterface {
450 450
         if (!$this->hasAttributeByCodeAndLocale($attributeValue->getCode(), $localeCode)) {
451 451
             return $attributeValue;
452 452
         }
Please login to merge, or discard this patch.