@@ -18,8 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | return $name; |
20 | 20 | }; |
21 | -} |
|
22 | -else |
|
21 | +} else |
|
23 | 22 | { |
24 | 23 | $namefcn = function( $view, $key ) { |
25 | 24 | return $view->formparam( (array) $key ); |
@@ -93,9 +92,12 @@ discard block |
||
93 | 92 | <p class="order-notice"> |
94 | 93 | <?= $enc->html( $this->translate( 'client', 'Please enter your payment details' ), $enc::TRUST ); ?> |
95 | 94 | </p> |
96 | - <?php else : ?> |
|
95 | + <?php else { |
|
96 | + : ?> |
|
97 | 97 | <p class="order-notice"> |
98 | - <?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ); ?> |
|
98 | + <?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ); |
|
99 | +} |
|
100 | +?> |
|
99 | 101 | </p> |
100 | 102 | <?php endif; ?> |
101 | 103 | |
@@ -111,8 +113,11 @@ discard block |
||
111 | 113 | /> |
112 | 114 | <?php endforeach; ?> |
113 | 115 | |
114 | - <?php else : ?> |
|
115 | - <input type="hidden" id="process-<?= $key; ?>" |
|
116 | + <?php else { |
|
117 | + : ?> |
|
118 | + <input type="hidden" id="process-<?= $key; |
|
119 | +} |
|
120 | +?>" |
|
116 | 121 | name="<?= $enc->attr( $namefcn( $this, $item->getInternalCode() ) ); ?>" |
117 | 122 | value="<?= $enc->attr( $item->getDefault() ); ?>" |
118 | 123 | /> |
@@ -205,8 +210,7 @@ discard block |
||
205 | 210 | foreach( (array) $item->getDefault() as $key2 => $value ) { |
206 | 211 | $urlParams[] = $namefcn( $this, array( $item->getInternalCode(), $key2 ) ) . '=' . urlencode( $value ); |
207 | 212 | } |
208 | - } |
|
209 | - else |
|
213 | + } else |
|
210 | 214 | { |
211 | 215 | $urlParams[] = $namefcn( $this, $item->getInternalCode() ) . '=' . urlencode( $item->getDefault() ); |
212 | 216 | } |
@@ -220,9 +224,12 @@ discard block |
||
220 | 224 | <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?> |
221 | 225 | </a> |
222 | 226 | |
223 | - <?php else : ?> |
|
227 | + <?php else { |
|
228 | + : ?> |
|
224 | 229 | <button class="btn btn-primary btn-lg btn-action"> |
225 | - <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); ?> |
|
230 | + <?= $enc->html( $this->translate( 'client', 'Proceed' ), $enc::TRUST ); |
|
231 | +} |
|
232 | +?> |
|
226 | 233 | </button> |
227 | 234 | |
228 | 235 | <?php endif; ?> |