Test Failed
Push — master ( 15b84c...40f0e3 )
by David
05:09
created
Form/CartFlow.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -100,8 +100,9 @@  discard block
 block discarded – undo
100 100
             $paymentMethod = $data->getPaymentMethod();
101 101
 
102 102
             // se non è settato vuol dire che non ci sono ancora arrivato
103
-            if( !$paymentMethod )
104
-                return false;
103
+            if( !$paymentMethod ) {
104
+                            return false;
105
+            }
105 106
 
106 107
             /** @var GatewayInterface $gateway */
107 108
             $gateway = $this->payum->getGateway($paymentMethod);
@@ -125,8 +126,9 @@  discard block
 block discarded – undo
125 126
         if ($this->isValid($form)) {
126 127
             $this->saveCurrentStepData($form);
127 128
 
128
-            if( !$this->allowAnonymous )
129
-                throw new AccessDeniedException("Anonymous users cannot buy");
129
+            if( !$this->allowAnonymous ) {
130
+                            throw new AccessDeniedException("Anonymous users cannot buy");
131
+            }
130 132
 
131 133
             // @todo done this because craue form flow doesn't permit to add a custom action
132 134
             if( $this->requestStack->getCurrentRequest()->request->get('flow_cart_transition') == self::TRANSITION_RESET_CART ) {
Please login to merge, or discard this patch.