Test Failed
Pull Request — master (#6)
by
unknown
04:54
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);
@@ -126,8 +127,9 @@  discard block
 block discarded – undo
126 127
             $this->saveCurrentStepData($form);
127 128
 
128 129
 
129
-            if( !$this->allowAnonymous )
130
-                throw new AccessDeniedException("Anonymous users cannot buy");
130
+            if( !$this->allowAnonymous ) {
131
+                            throw new AccessDeniedException("Anonymous users cannot buy");
132
+            }
131 133
 
132 134
             // @todo done this because craue form flow doesn't permit to add a custom action
133 135
             if( $this->requestStack->getCurrentRequest()->request->get('flow_cart_transition') == self::TRANSITION_RESET_CART ) {
Please login to merge, or discard this patch.