@@ -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], |
@@ -37,14 +37,17 @@ |
||
| 37 | 37 | <span class="name"> |
| 38 | 38 | <?php if( $attribute->getName() != '' ) : ?> |
| 39 | 39 | <?= $enc->html( $attribute->getName() ) ?> |
| 40 | - <?php else : ?> |
|
| 40 | + <?php else { |
|
| 41 | + : ?> |
|
| 41 | 42 | <?= $enc->html( $this->translate( 'client/code', $attribute->getCode() ) ) ?> |
| 42 | 43 | <?php endif ?> |
| 43 | 44 | </span> |
| 44 | 45 | |
| 45 | 46 | <?php switch( $attribute->getValue() ) : case 'array': case 'object': ?> |
| 46 | 47 | <span class="value"><?= $enc->html( join( ', ', (array) $attribute->getValue() ) ) ?></span> |
| 47 | - <?php break; default: ?> |
|
| 48 | + <?php break; |
|
| 49 | +} |
|
| 50 | +default: ?> |
|
| 48 | 51 | <span class="value"><?= $enc->html( $attribute->getValue() ) ?></span> |
| 49 | 52 | <?php endswitch ?> |
| 50 | 53 | |
@@ -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] ); |
@@ -249,13 +249,11 @@ |
||
| 249 | 249 | $response->withHeader( 'Expires', '0' ); |
| 250 | 250 | |
| 251 | 251 | $response->withBody( $response->createStream( $fs->reads( $value ) ) ); |
| 252 | - } |
|
| 253 | - elseif( filter_var( $value, FILTER_VALIDATE_URL ) !== false ) |
|
| 252 | + } elseif( filter_var( $value, FILTER_VALIDATE_URL ) !== false ) |
|
| 254 | 253 | { |
| 255 | 254 | $response->withHeader( 'Location', $value ); |
| 256 | 255 | $response->withStatus( 303 ); |
| 257 | - } |
|
| 258 | - else |
|
| 256 | + } else |
|
| 259 | 257 | { |
| 260 | 258 | $response->withStatus( 404 ); |
| 261 | 259 | } |
@@ -152,7 +152,8 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | </ul> |
| 154 | 154 | |
| 155 | - <?php else : ?> |
|
| 155 | + <?php else { |
|
| 156 | + : ?> |
|
| 156 | 157 | |
| 157 | 158 | <input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) ) ?>"> |
| 158 | 159 | <select id="select-<?= $enc->attr( $key ) ?>" class="form-control select-list" |
@@ -204,7 +205,9 @@ discard block |
||
| 204 | 205 | value="<?= $enc->attr( $price->getValue() ) ?>" |
| 205 | 206 | <?php endif ?> |
| 206 | 207 | > |
| 207 | - <?php break; case 'date': ?> |
|
| 208 | + <?php break; |
|
| 209 | +} |
|
| 210 | +case 'date': ?> |
|
| 208 | 211 | <input id="select-<?= $enc->attr( $key ) ?>" class="form-control" type="date" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>"> |
| 209 | 212 | <?php break; default: ?> |
| 210 | 213 | <input id="select-<?= $enc->attr( $key ) ?>" class="form-control" type="text" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>"> |
@@ -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', [] ) ) ); ?>"> |
@@ -149,8 +149,7 @@ |
||
| 149 | 149 | $value = $oservice->getAttribute( $key, 'delivery' ) ?: $value; |
| 150 | 150 | $item->value = $oservice->getAttribute( $key . '/hidden', 'delivery' ) ?: $value; |
| 151 | 151 | } |
| 152 | - } |
|
| 153 | - else |
|
| 152 | + } else |
|
| 154 | 153 | { |
| 155 | 154 | foreach( $attr as $key => $item ) { |
| 156 | 155 | $item->value = is_array( $item->getDefault() ) ? key( $item->getDefault() ) : $item->getDefault(); |
@@ -138,7 +138,7 @@ |
||
| 138 | 138 | public function data( \Aimeos\Base\View\Iface $view, array &$tags = [], string &$expire = null ) : \Aimeos\Base\View\Iface |
| 139 | 139 | { |
| 140 | 140 | $tree = \Aimeos\Controller\Frontend::create( $this->context(), 'catalog' )->uses( $this->domains() ) |
| 141 | - ->getTree( \Aimeos\Controller\Frontend\Catalog\Iface::LIST ); |
|
| 141 | + ->getTree( \Aimeos\Controller\Frontend\Catalog\Iface::list ); |
|
| 142 | 142 | |
| 143 | 143 | $products = \Aimeos\Controller\Frontend::create( $this->context(), 'product' )->uses( $this->domains() ) |
| 144 | 144 | ->category( $tree->getChildren()->getId()->all(), 'promotion' )->search(); |