Completed
Push — 1.1-csrf-token-user ( e22bcb...d4c2fb )
by Kamil
17:31
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
@@ -15,7 +15,8 @@
 block discarded – undo
15 15
      */
16 16
     public function it_does_not_crash(): void
17 17
     {
18
-        new class() extends Bundle {
18
+        new class() extends Bundle
19
+        {
19 20
             use SyliusPluginTrait;
20 21
         };
21 22
     }
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Cart/Context/ShopBasedCartContext.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,8 @@
 block discarded – undo
103 103
         }
104 104
     }
105 105
 
106
-    public function reset() {
106
+    public function reset()
107
+    {
107 108
         $this->cart = null;
108 109
     }
109 110
 }
Please login to merge, or discard this patch.