@@ -59,7 +59,7 @@ |
||
59 | 59 | ]) |
60 | 60 | ], |
61 | 61 | ]) |
62 | - ->addEventListener(FormEvents::PRE_SET_DATA, function(FormEvent $event) { |
|
62 | + ->addEventListener(FormEvents::PRE_SET_DATA, function (FormEvent $event) { |
|
63 | 63 | $data = $event->getData(); |
64 | 64 | |
65 | 65 | $data['payum.http_client'] = '@sylius.payum.http_client'; |
@@ -40,14 +40,14 @@ discard block |
||
40 | 40 | && isset($options['configuration']['multiple']) |
41 | 41 | && !$options['configuration']['multiple']) { |
42 | 42 | $builder->addModelTransformer(new CallbackTransformer( |
43 | - function($array) { |
|
43 | + function ($array) { |
|
44 | 44 | if (count($array) > 0) { |
45 | 45 | return $array[0]; |
46 | 46 | } |
47 | 47 | |
48 | 48 | return null; |
49 | 49 | }, |
50 | - function($string) { |
|
50 | + function ($string) { |
|
51 | 51 | if (!is_null($string)) { |
52 | 52 | return [$string]; |
53 | 53 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $resolver |
67 | 67 | ->setRequired('configuration') |
68 | 68 | ->setDefault('placeholder', 'sylius.form.attribute_type_configuration.select.choose') |
69 | - ->setNormalizer('choices', function(Options $options){ |
|
69 | + ->setNormalizer('choices', function (Options $options) { |
|
70 | 70 | if (is_array($options['configuration']) |
71 | 71 | && isset($options['configuration']['choices']) |
72 | 72 | && is_array($options['configuration']['choices'])) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | return []; |
80 | 80 | }) |
81 | - ->setNormalizer('multiple', function(Options $options){ |
|
81 | + ->setNormalizer('multiple', function (Options $options) { |
|
82 | 82 | if (is_array($options['configuration']) && isset($options['configuration']['multiple'])) { |
83 | 83 | return $options['configuration']['multiple']; |
84 | 84 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | $resolver |
67 | 67 | ->setRequired('configuration') |
68 | 68 | ->setDefault('placeholder', 'sylius.form.attribute_type_configuration.select.choose') |
69 | - ->setNormalizer('choices', function(Options $options){ |
|
69 | + ->setNormalizer('choices', function(Options $options) { |
|
70 | 70 | if (is_array($options['configuration']) |
71 | 71 | && isset($options['configuration']['choices']) |
72 | 72 | && is_array($options['configuration']['choices'])) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | return []; |
80 | 80 | }) |
81 | - ->setNormalizer('multiple', function(Options $options){ |
|
81 | + ->setNormalizer('multiple', function(Options $options) { |
|
82 | 82 | if (is_array($options['configuration']) && isset($options['configuration']['multiple'])) { |
83 | 83 | return $options['configuration']['multiple']; |
84 | 84 | } |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | public function storeAllowsPaying($paymentMethodName, $position = null) |
90 | 90 | { |
91 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
91 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Offline', 'Payment method', true, $position); |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | */ |
172 | 172 | public function theStoreHasPaymentMethodNotAssignedToAnyChannel($paymentMethodName) |
173 | 173 | { |
174 | - $this->createPaymentMethod($paymentMethodName, 'PM_'.$paymentMethodName, 'Payment method', 'Offline', false); |
|
174 | + $this->createPaymentMethod($paymentMethodName, 'PM_' . $paymentMethodName, 'Payment method', 'Offline', false); |
|
175 | 175 | } |
176 | 176 | |
177 | 177 | /** |
@@ -491,7 +491,7 @@ |
||
491 | 491 | } |
492 | 492 | EOT; |
493 | 493 | |
494 | - $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon) , [], [], static::$authorizedHeaderWithContentType, $data); |
|
494 | + $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
|
495 | 495 | |
496 | 496 | $response = $this->client->getResponse(); |
497 | 497 | $this->assertResponse($response, 'taxon/update_validation_fail_response', Response::HTTP_BAD_REQUEST); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | } |
183 | 183 | } |
184 | 184 | } |
185 | -EOT; |
|
185 | +eot; |
|
186 | 186 | |
187 | 187 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
188 | 188 | |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | { |
203 | 203 | "code": "fluffy_pets" |
204 | 204 | } |
205 | -EOT; |
|
205 | +eot; |
|
206 | 206 | |
207 | 207 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
208 | 208 | |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | } |
236 | 236 | } |
237 | 237 | } |
238 | -EOT; |
|
238 | +eot; |
|
239 | 239 | |
240 | 240 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
241 | 241 | |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | "code": "horror", |
259 | 259 | "parent": "books" |
260 | 260 | } |
261 | -EOT; |
|
261 | +eot; |
|
262 | 262 | |
263 | 263 | $this->client->request('POST', '/api/v1/taxons/', [], [], static::$authorizedHeaderWithContentType, $data); |
264 | 264 | |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | } |
300 | 300 | ] |
301 | 301 | } |
302 | -EOT; |
|
302 | +eot; |
|
303 | 303 | |
304 | 304 | $this->client->request('POST', '/api/v1/taxons/', [], [ |
305 | 305 | 'images' => [ |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | }, |
334 | 334 | "parent": "books" |
335 | 335 | } |
336 | -EOT; |
|
336 | +eot; |
|
337 | 337 | $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
338 | 338 | $response = $this->client->getResponse(); |
339 | 339 | |
@@ -360,7 +360,7 @@ discard block |
||
360 | 360 | } |
361 | 361 | } |
362 | 362 | } |
363 | -EOT; |
|
363 | +eot; |
|
364 | 364 | $this->client->request('PUT', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
365 | 365 | $response = $this->client->getResponse(); |
366 | 366 | |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | } |
388 | 388 | } |
389 | 389 | } |
390 | -EOT; |
|
390 | +eot; |
|
391 | 391 | $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
392 | 392 | $response = $this->client->getResponse(); |
393 | 393 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | } |
414 | 414 | } |
415 | 415 | } |
416 | -EOT; |
|
416 | +eot; |
|
417 | 417 | $this->client->request('PATCH', $this->getTaxonUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
418 | 418 | $response = $this->client->getResponse(); |
419 | 419 | $this->assertResponseCode($response, Response::HTTP_NO_CONTENT); |
@@ -459,7 +459,7 @@ discard block |
||
459 | 459 | } |
460 | 460 | ] |
461 | 461 | } |
462 | -EOT; |
|
462 | +eot; |
|
463 | 463 | |
464 | 464 | $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon), [], [], static::$authorizedHeaderWithContentType, $data); |
465 | 465 | |
@@ -489,7 +489,7 @@ discard block |
||
489 | 489 | } |
490 | 490 | ] |
491 | 491 | } |
492 | -EOT; |
|
492 | +eot; |
|
493 | 493 | |
494 | 494 | $this->client->request('PUT', $this->getTaxonProductsPositionsChangeUrl($taxon) , [], [], static::$authorizedHeaderWithContentType, $data); |
495 | 495 |