Completed
Push — npm-shrinkwrap ( 52ca24 )
by Kamil
23:13
created
src/Sylius/Bundle/PayumBundle/Form/Type/PaypalGatewayConfigurationType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
Bundle/AttributeBundle/Form/Type/AttributeType/SelectAttributeType.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/PaymentContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
tests/Controller/TaxonApiTest.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.