Completed
Push — product/missing-methods ( 0cfbf7 )
by Kamil
25:41
created
src/Sylius/Bundle/CoreBundle/Form/Type/Order/OrderType.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,8 @@
 block discarded – undo
50 50
         $resolver->setDefault('validation_groups', function (FormInterface $form) {
51 51
             $validationGroups = $this->validationGroups;
52 52
 
53
-            if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
53
+            if ((bool) $form->get('promotionCoupon')->getNormData()) {
54
+// Validate the coupon if it was sent
54 55
                 $validationGroups[] = 'sylius_promotion_coupon';
55 56
             }
56 57
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/spec/Context/SessionBasedCartContextSpec.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         SessionInterface $session,
46 46
         OrderRepositoryInterface $orderRepository,
47 47
         OrderInterface $cart
48
-    )  {
48
+    ) {
49 49
         $session->has('session_key_name')->willReturn(true);
50 50
         $session->get('session_key_name')->willReturn(12345);
51 51
         $orderRepository->findCartById(12345)->willReturn($cart);
Please login to merge, or discard this patch.