@@ -60,7 +60,8 @@ discard block |
||
| 60 | 60 | <p class="order-notice"> |
| 61 | 61 | <?= $enc->html( $this->translate( 'client', 'Please enter your payment details' ), $enc::TRUST ) ?> |
| 62 | 62 | </p> |
| 63 | - <?php else : ?> |
|
| 63 | + <?php else { |
|
| 64 | + : ?> |
|
| 64 | 65 | <p class="order-notice"> |
| 65 | 66 | <?= $enc->html( $this->translate( 'client', 'You will now be forwarded to the next step' ), $enc::TRUST ) ?> |
| 66 | 67 | </p> |
@@ -103,7 +104,9 @@ discard block |
||
| 103 | 104 | <?php endforeach ?> |
| 104 | 105 | </select> |
| 105 | 106 | |
| 106 | - <?php break; case 'container': ?> |
|
| 107 | + <?php break; |
|
| 108 | +} |
|
| 109 | +case 'container': ?> |
|
| 107 | 110 | <div id="process-<?= $key ?>"></div> |
| 108 | 111 | |
| 109 | 112 | <?php break; case 'boolean': ?> |
@@ -95,8 +95,7 @@ |
||
| 95 | 95 | $textStock[$level], |
| 96 | 96 | date_create( $date )->format( $dateFormat ) |
| 97 | 97 | ); |
| 98 | - } |
|
| 99 | - else |
|
| 98 | + } else |
|
| 100 | 99 | { |
| 101 | 100 | $text = sprintf( $textStockIn, |
| 102 | 101 | $typeText[$stockType], |
@@ -69,9 +69,12 @@ |
||
| 69 | 69 | */ |
| 70 | 70 | public function header( string $uid = '' ) : ?string |
| 71 | 71 | { |
| 72 | - try { |
|
| 72 | + try |
|
| 73 | + { |
|
| 73 | 74 | return $this->client()->header( $uid ); |
| 74 | - } catch( \Exception $e ) { |
|
| 75 | + } |
|
| 76 | + catch( \Exception $e ) |
|
| 77 | + { |
|
| 75 | 78 | $this->logException( $e ); |
| 76 | 79 | } |
| 77 | 80 | |
@@ -187,8 +187,7 @@ |
||
| 187 | 187 | (string) $view->param( 'b_supplier', '' ), |
| 188 | 188 | $view->param( 'b_siteid' ) |
| 189 | 189 | ); |
| 190 | - } |
|
| 191 | - else |
|
| 190 | + } else |
|
| 192 | 191 | { |
| 193 | 192 | foreach( (array) $view->param( 'b_prod', [] ) as $values ) |
| 194 | 193 | { |
@@ -320,13 +320,11 @@ |
||
| 320 | 320 | { |
| 321 | 321 | $item = $item->set( 'checked', true ); |
| 322 | 322 | unset( $attrparams['f_attrid'][$key] ); |
| 323 | - } |
|
| 324 | - elseif( ( $key = array_search( $id, $optIds ) ) !== false ) |
|
| 323 | + } elseif( ( $key = array_search( $id, $optIds ) ) !== false ) |
|
| 325 | 324 | { |
| 326 | 325 | $item = $item->set( 'checked', true ); |
| 327 | 326 | unset( $attrparams['f_optid'][$key] ); |
| 328 | - } |
|
| 329 | - elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false ) |
|
| 327 | + } elseif( isset( $oneIds[$type] ) && ( $key = array_search( $id, (array) $oneIds[$type] ) ) !== false ) |
|
| 330 | 328 | { |
| 331 | 329 | $item = $item->set( 'checked', true ); |
| 332 | 330 | unset( $attrparams['f_oneid'][$key] ); |
@@ -58,7 +58,10 @@ |
||
| 58 | 58 | <?php $current = $params; if( is_array( $current['f_optid'] ) ) { unset( $current['f_optid'][$key] ); } ?> |
| 59 | 59 | <?php elseif( isset( $oneIds[$attrType] ) && ( $key = array_search( $id, (array) $oneIds[$attrType] ) ) !== false ) : ?> |
| 60 | 60 | <?php $current = $params; if( is_array( $current['f_oneid'][$attrType] ) ) { unset( $current['f_oneid'][$attrType][$key] ); } ?> |
| 61 | - <?php else : continue; ?> |
|
| 61 | + <?php else { |
|
| 62 | + : continue; |
|
| 63 | +} |
|
| 64 | +?> |
|
| 62 | 65 | <?php endif; ?> |
| 63 | 66 | |
| 64 | 67 | <a class="minibutton close" href="<?= $enc->attr( $this->link( $linkKey, $attribute->get( 'params', [] ) ) ); ?>"> |