Completed
Push — 1.6-introduction ( bd66ad )
by Kamil
547:12 queued 528:06
created
src/Sylius/Bundle/CoreBundle/Form/Extension/CartTypeExtension.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,8 @@
 block discarded – undo
47 47
     {
48 48
         $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) {
49 49
             return function (FormInterface $form) use ($validationGroups) {
50
-                if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
50
+                if ((bool) $form->get('promotionCoupon')->getNormData()) {
51
+// Validate the coupon if it was sent
51 52
                     $validationGroups[] = 'sylius_promotion_coupon';
52 53
                 }
53 54
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Tests/Application/SyliusPluginTraitTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@
 block discarded – undo
25 25
      */
26 26
     public function it_does_not_crash(): void
27 27
     {
28
-        $class = new class() extends Bundle {
28
+        $class = new class() extends Bundle
29
+        {
29 30
             use SyliusPluginTrait;
30 31
         };
31 32
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/PayumBundle/Action/AuthorizePaymentAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             $request->setModel($details);
76 76
             $this->gateway->execute($request);
77 77
         } finally {
78
-            $payment->setDetails((array)$details);
78
+            $payment->setDetails((array) $details);
79 79
         }
80 80
     }
81 81
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Transform/OrderContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     {
55 55
         $orders = $this->orderRepository->findLatest(1);
56 56
 
57
-        Assert::notEmpty($orders,'No order have been made');
57
+        Assert::notEmpty($orders, 'No order have been made');
58 58
 
59 59
         return $orders[0];
60 60
     }
Please login to merge, or discard this patch.