@@ -296,10 +296,10 @@ |
||
296 | 296 | |
297 | 297 | foreach( $basket->getProducts() as $orderProduct ) |
298 | 298 | { |
299 | - $list[ $orderProduct->getProductId() ] = true; |
|
299 | + $list[$orderProduct->getProductId()] = true; |
|
300 | 300 | |
301 | 301 | foreach( $orderProduct->getProducts() as $subProduct ) { |
302 | - $list[ $subProduct->getProductId() ] = true; |
|
302 | + $list[$subProduct->getProductId()] = true; |
|
303 | 303 | } |
304 | 304 | } |
305 | 305 |
@@ -298,8 +298,8 @@ |
||
298 | 298 | $stockItemsByProducts = []; |
299 | 299 | $productCodes = (array) $view->param( 's_prodcode', [] ); |
300 | 300 | |
301 | - foreach( $this->getStockItems( $productCodes ) as $stockItem ){ |
|
302 | - $stockItemsByProducts[ $stockItem->getProductCode() ][] = $stockItem; |
|
301 | + foreach( $this->getStockItems( $productCodes ) as $stockItem ) { |
|
302 | + $stockItemsByProducts[$stockItem->getProductCode()][] = $stockItem; |
|
303 | 303 | } |
304 | 304 | |
305 | 305 | $view->stockItemsByProducts = $stockItemsByProducts; |
@@ -609,7 +609,7 @@ |
||
609 | 609 | ->oneOf( $view->param( 'f_oneid', [] ) ) |
610 | 610 | ->category( $catids, 'default', $level ) |
611 | 611 | ->text( $view->param( 'f_search' ) ) |
612 | - ->slice( ($page - 1) * $size, $size )->sort( $sort ) |
|
612 | + ->slice( ( $page - 1 ) * $size, $size )->sort( $sort ) |
|
613 | 613 | ->search( $domains, $total ); |
614 | 614 | |
615 | 615 | if( $catids !== [] ) |
@@ -327,7 +327,7 @@ |
||
327 | 327 | $config['count'] = 0; |
328 | 328 | } |
329 | 329 | |
330 | - if( $maxcnt === null || ((int) $config['count']) < $maxcnt ) |
|
330 | + if( $maxcnt === null || ( (int) $config['count'] ) < $maxcnt ) |
|
331 | 331 | { |
332 | 332 | $config['count']++; |
333 | 333 | $listItem->setConfig( $config ); |
@@ -340,7 +340,7 @@ discard block |
||
340 | 340 | if( $item instanceof \Aimeos\MShop\Common\Item\ListRef\Iface ) |
341 | 341 | { |
342 | 342 | $this->addMetaItemRef( $item, $expires, $tags, $tagAll ); |
343 | - $idMap[ $item->getResourceType() ][] = $item->getId(); |
|
343 | + $idMap[$item->getResourceType()][] = $item->getId(); |
|
344 | 344 | } |
345 | 345 | |
346 | 346 | $this->addMetaItemSingle( $item, $expires, $tags, $tagAll ); |
@@ -606,11 +606,11 @@ discard block |
||
606 | 606 | 'header' => $this->getParamHash( $prefixes, $uid . ':' . $confkey . ':header', $cfg ), |
607 | 607 | ); |
608 | 608 | |
609 | - if( !isset( $this->cache[ $keys[$type] ] ) ) { |
|
609 | + if( !isset( $this->cache[$keys[$type]] ) ) { |
|
610 | 610 | $this->cache = $context->getCache()->getMultiple( $keys ); |
611 | 611 | } |
612 | 612 | |
613 | - return ( isset( $this->cache[ $keys[$type] ] ) ? $this->cache[ $keys[$type] ] : null ); |
|
613 | + return ( isset( $this->cache[$keys[$type]] ) ? $this->cache[$keys[$type]] : null ); |
|
614 | 614 | } |
615 | 615 | |
616 | 616 |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | $basketCntl = \Aimeos\Controller\Frontend::create( $context, 'basket' ); |
260 | 260 | |
261 | 261 | |
262 | - if ( $view->param( 'cs_order', null ) !== null ) |
|
262 | + if( $view->param( 'cs_order', null ) !== null ) |
|
263 | 263 | { |
264 | 264 | parent::process(); |
265 | 265 | |
@@ -269,7 +269,7 @@ discard block |
||
269 | 269 | |
270 | 270 | $context->getSession()->set( 'aimeos/orderid', $orderItem->getId() ); |
271 | 271 | } |
272 | - elseif ( $view->param( 'cp_payment', null ) !== null ) |
|
272 | + elseif( $view->param( 'cp_payment', null ) !== null ) |
|
273 | 273 | { |
274 | 274 | $parts = \Aimeos\MShop\Order\Item\Base\Base::PARTS_ALL; |
275 | 275 | $orderItem = $orderCntl->getItem( $context->getSession()->get( 'aimeos/orderid' ) ); |
@@ -323,7 +323,7 @@ |
||
323 | 323 | $orderItem = $orderCntl->getItem( $orderid ); |
324 | 324 | } |
325 | 325 | |
326 | - $orderCntl->update( $orderItem ); // update stock, coupons, etc. |
|
326 | + $orderCntl->update( $orderItem ); // update stock, coupons, etc. |
|
327 | 327 | |
328 | 328 | parent::process(); |
329 | 329 |
@@ -78,8 +78,8 @@ discard block |
||
78 | 78 | |
79 | 79 | foreach( $subItems as $attrId => $attrItem ) |
80 | 80 | { |
81 | - $attrMap[ $attrItem->getType() ][ $attrId ] = $attrItem; |
|
82 | - $subAttrDeps[ $attrId ][] = $subProdId; |
|
81 | + $attrMap[$attrItem->getType()][$attrId] = $attrItem; |
|
82 | + $subAttrDeps[$attrId][] = $subProdId; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | $propItems = array_merge( $propItems, $subProduct->getPropertyItems() ); |
@@ -88,8 +88,8 @@ discard block |
||
88 | 88 | |
89 | 89 | foreach( $propItems as $propId => $propItem ) |
90 | 90 | { |
91 | - $propMap[ $propItem->getType() ][ $propId ] = $propItem; |
|
92 | - $subPropDeps[ $propId ][] = $propItem->getParentId(); |
|
91 | + $propMap[$propItem->getType()][$propId] = $propItem; |
|
92 | + $subPropDeps[$propId][] = $propItem->getParentId(); |
|
93 | 93 | } |
94 | 94 | } |
95 | 95 | |
@@ -383,7 +383,7 @@ discard block |
||
383 | 383 | <table class="attributes"> |
384 | 384 | <tbody> |
385 | 385 | <?php foreach( $this->detailProductItem->getRefItems( 'attribute', null, 'default' ) as $attrId => $attrItem ) : ?> |
386 | - <?php if( isset( $attrItems[ $attrId ] ) ) { $attrItem = $attrItems[ $attrId ]; } ?> |
|
386 | + <?php if( isset( $attrItems[$attrId] ) ) { $attrItem = $attrItems[$attrId]; } ?> |
|
387 | 387 | <tr class="item"> |
388 | 388 | <td class="name"><?= $enc->html( $this->translate( 'client/code', $attrItem->getType() ), $enc::TRUST ); ?></td> |
389 | 389 | <td class="value"> |
@@ -410,10 +410,10 @@ discard block |
||
410 | 410 | <?php foreach( $attrMap as $type => $attrItems ) : ?> |
411 | 411 | <?php foreach( $attrItems as $attrItem ) : $classes = ""; ?> |
412 | 412 | <?php |
413 | - if( isset( $subAttrDeps[ $attrItem->getId() ] ) ) |
|
413 | + if( isset( $subAttrDeps[$attrItem->getId()] ) ) |
|
414 | 414 | { |
415 | 415 | $classes .= ' subproduct'; |
416 | - foreach( $subAttrDeps[ $attrItem->getId() ] as $prodid ) { |
|
416 | + foreach( $subAttrDeps[$attrItem->getId()] as $prodid ) { |
|
417 | 417 | $classes .= ' subproduct-' . $prodid; |
418 | 418 | } |
419 | 419 | } |
@@ -458,10 +458,10 @@ discard block |
||
458 | 458 | <?php foreach( $propItems as $propertyItem ) : $classes = ''; ?> |
459 | 459 | <?php |
460 | 460 | if( $propertyItem->getParentId() != $this->detailProductItem->getId() |
461 | - && isset( $subPropDeps[ $propertyItem->getId() ] ) |
|
461 | + && isset( $subPropDeps[$propertyItem->getId()] ) |
|
462 | 462 | ) { |
463 | 463 | $classes .= ' subproduct'; |
464 | - foreach( $subPropDeps[ $propertyItem->getId() ] as $prodid ) { |
|
464 | + foreach( $subPropDeps[$propertyItem->getId()] as $prodid ) { |
|
465 | 465 | $classes .= ' subproduct-' . $prodid; |
466 | 466 | } |
467 | 467 | } |
@@ -115,7 +115,7 @@ |
||
115 | 115 | </ul> |
116 | 116 | |
117 | 117 | <?php if( count( $attrIds ) > 1 || count( $optIds ) > 1 || count( $oneIds ) > 1 ) : ?> |
118 | - <?php $current = $params; unset( $current['f_attrid'], $current['f_optid'], $current['f_oneid'] ); ?> |
|
118 | + <?php $current = $params; unset( $current['f_attrid'], $current['f_optid'], $current['f_oneid'] ); ?> |
|
119 | 119 | <a class="selected-all" href="<?= $enc->attr( $this->url( $listTarget, $listController, $listAction, $current, [], $listConfig ) ); ?>"> |
120 | 120 | <?= $enc->html( $this->translate( 'client', 'clear all' ), $enc::TRUST ); ?> |
121 | 121 | </a> |