@@ -100,8 +100,9 @@ discard block |
||
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 |
||
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 ) { |