@@ -9,7 +9,7 @@ |
||
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\Uploader; |
15 | 15 |
@@ -9,7 +9,7 @@ discard block |
||
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 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * {@inheritdoc} |
130 | 130 | */ |
131 | - public function setVersion(?int $version): void |
|
131 | + public function setVersion(?int $version) : void |
|
132 | 132 | { |
133 | 133 | $this->version = $version; |
134 | 134 | } |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | /** |
153 | 153 | * {@inheritdoc} |
154 | 154 | */ |
155 | - public function setOnHold(?int $onHold): void |
|
155 | + public function setOnHold(?int $onHold) : void |
|
156 | 156 | { |
157 | 157 | $this->onHold = $onHold; |
158 | 158 | } |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | /** |
169 | 169 | * {@inheritdoc} |
170 | 170 | */ |
171 | - public function setOnHand(?int $onHand): void |
|
171 | + public function setOnHand(?int $onHand) : void |
|
172 | 172 | { |
173 | 173 | $this->onHand = (0 > $onHand) ? 0 : $onHand; |
174 | 174 | } |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | /** |
209 | 209 | * {@inheritdoc} |
210 | 210 | */ |
211 | - public function setShippingCategory(?ShippingCategoryInterface $category): void |
|
211 | + public function setShippingCategory(?ShippingCategoryInterface $category) : void |
|
212 | 212 | { |
213 | 213 | $this->shippingCategory = $category; |
214 | 214 | } |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | /** |
225 | 225 | * {@inheritdoc} |
226 | 226 | */ |
227 | - public function setWeight(?float $weight): void |
|
227 | + public function setWeight(?float $weight) : void |
|
228 | 228 | { |
229 | 229 | $this->weight = $weight; |
230 | 230 | } |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | /** |
241 | 241 | * {@inheritdoc} |
242 | 242 | */ |
243 | - public function setWidth(?float $width): void |
|
243 | + public function setWidth(?float $width) : void |
|
244 | 244 | { |
245 | 245 | $this->width = $width; |
246 | 246 | } |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | /** |
257 | 257 | * {@inheritdoc} |
258 | 258 | */ |
259 | - public function setHeight(?float $height): void |
|
259 | + public function setHeight(?float $height) : void |
|
260 | 260 | { |
261 | 261 | $this->height = $height; |
262 | 262 | } |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | /** |
273 | 273 | * {@inheritdoc} |
274 | 274 | */ |
275 | - public function setDepth(?float $depth): void |
|
275 | + public function setDepth(?float $depth) : void |
|
276 | 276 | { |
277 | 277 | $this->depth = $depth; |
278 | 278 | } |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | /** |
329 | 329 | * {@inheritdoc} |
330 | 330 | */ |
331 | - public function setTaxCategory(?TaxCategoryInterface $category): void |
|
331 | + public function setTaxCategory(?TaxCategoryInterface $category) : void |
|
332 | 332 | { |
333 | 333 | $this->taxCategory = $category; |
334 | 334 | } |
@@ -9,7 +9,7 @@ discard block |
||
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\Test\Services; |
15 | 15 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | /** |
95 | 95 | * {@inheritdoc} |
96 | 96 | */ |
97 | - public function create(?string $code = null, ?string $name = null, ?string $currencyCode = null): array |
|
97 | + public function create(?string $code = null, ?string $name = null, ?string $currencyCode = null) : array |
|
98 | 98 | { |
99 | 99 | $currency = $this->provideCurrency($currencyCode); |
100 | 100 | $locale = $this->provideLocale(); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @return CurrencyInterface |
126 | 126 | */ |
127 | - private function provideCurrency(?string $currencyCode): CurrencyInterface |
|
127 | + private function provideCurrency(?string $currencyCode) : CurrencyInterface |
|
128 | 128 | { |
129 | 129 | $currencyCode = (null !== $currencyCode) ? $currencyCode : self::DEFAULT_CHANNEL_CURRENCY; |
130 | 130 |
@@ -9,7 +9,7 @@ |
||
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\Metadata; |
15 | 15 |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | "enabled": "true" |
76 | 76 | } |
77 | 77 | } |
78 | -EOT; |
|
78 | +eot; |
|
79 | 79 | |
80 | 80 | $this->client->request('POST', '/api/v1/customers/', [], [], static::$authorizedHeaderWithContentType, $data); |
81 | 81 | |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | "email": "[email protected]", |
99 | 99 | "gender": "m" |
100 | 100 | } |
101 | -EOT; |
|
101 | +eot; |
|
102 | 102 | |
103 | 103 | $this->client->request('POST', '/api/v1/customers/', [], [], static::$authorizedHeaderWithContentType, $data); |
104 | 104 | |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | "plainPassword" : "testPassword" |
125 | 125 | } |
126 | 126 | } |
127 | -EOT; |
|
127 | +eot; |
|
128 | 128 | |
129 | 129 | $this->client->request('POST', '/api/v1/customers/', [], [], static::$authorizedHeaderWithContentType, $data); |
130 | 130 | |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | "email": "[email protected]", |
278 | 278 | "gender": "m" |
279 | 279 | } |
280 | -EOT; |
|
280 | +eot; |
|
281 | 281 | |
282 | 282 | $this->client->request('PUT', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
283 | 283 | |
@@ -317,7 +317,7 @@ discard block |
||
317 | 317 | "firstName": "John", |
318 | 318 | "lastName": "Doe" |
319 | 319 | } |
320 | -EOT; |
|
320 | +eot; |
|
321 | 321 | |
322 | 322 | $this->client->request('PATCH', '/api/v1/customers/' . $customers['customer_Oliver']->getId(), [], [], static::$authorizedHeaderWithContentType, $data); |
323 | 323 |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | ] |
86 | 86 | } |
87 | -EOT; |
|
87 | +eot; |
|
88 | 88 | |
89 | 89 | $this->client->request('POST', '/api/v1/zones/country', [], [], static::$authorizedHeaderWithContentType, $data); |
90 | 90 | |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | } |
215 | 215 | ] |
216 | 216 | } |
217 | -EOT; |
|
217 | +eot; |
|
218 | 218 | |
219 | 219 | $this->client->request('PUT', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
220 | 220 | |
@@ -265,7 +265,7 @@ discard block |
||
265 | 265 | { |
266 | 266 | "name": "European Union +" |
267 | 267 | } |
268 | -EOT; |
|
268 | +eot; |
|
269 | 269 | |
270 | 270 | $this->client->request('PATCH', '/api/v1/zones/' . $zones['zone_eu']->getCode(), [], [], static::$authorizedHeaderWithContentType, $data); |
271 | 271 |
@@ -9,7 +9,7 @@ |
||
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; |
@@ -9,7 +9,7 @@ |
||
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\ResourceBundle\Doctrine\ODM\PHPCR\EventListener; |
15 | 15 |
@@ -9,7 +9,7 @@ |
||
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\ResourceBundle\Doctrine\ODM\PHPCR\EventListener; |
15 | 15 |