@@ -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 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * @see client/html/catalog/stock/url/action |
| 62 | 62 | * @see client/html/catalog/stock/url/config |
| 63 | 63 | * @see client/html/catalog/stock/url/max-items |
| 64 | - */ |
|
| 64 | + */ |
|
| 65 | 65 | $cntl = $view->config( 'client/html/catalog/stock/url/controller', 'catalog' ); |
| 66 | 66 | |
| 67 | 67 | /** client/html/catalog/stock/url/action |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | * @see client/html/catalog/stock/url/controller |
| 79 | 79 | * @see client/html/catalog/stock/url/config |
| 80 | 80 | * @see client/html/catalog/stock/url/max-items |
| 81 | - */ |
|
| 81 | + */ |
|
| 82 | 82 | $action = $view->config( 'client/html/catalog/stock/url/action', 'stock' ); |
| 83 | 83 | |
| 84 | 84 | /** client/html/catalog/stock/url/config |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * @see client/html/catalog/stock/url/controller |
| 102 | 102 | * @see client/html/catalog/stock/url/action |
| 103 | 103 | * @see client/html/catalog/stock/url/max-items |
| 104 | - */ |
|
| 104 | + */ |
|
| 105 | 105 | $config = $view->config( 'client/html/catalog/stock/url/config', [] ); |
| 106 | 106 | |
| 107 | 107 | /** client/html/catalog/stock/url/max-items |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | * @see client/html/catalog/stock/url/controller |
| 120 | 120 | * @see client/html/catalog/stock/url/action |
| 121 | 121 | * @see client/html/catalog/stock/url/config |
| 122 | - */ |
|
| 122 | + */ |
|
| 123 | 123 | $max = $view->config( 'client/html/catalog/stock/url/max-items', 100 ); |
| 124 | 124 | |
| 125 | 125 | |
@@ -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 ); |
@@ -541,15 +541,15 @@ |
||
| 541 | 541 | |
| 542 | 542 | |
| 543 | 543 | /** |
| 544 | - * Returns the template for the given configuration key |
|
| 545 | - * |
|
| 546 | - * If the "l_type" parameter is present, a specific template for this given |
|
| 547 | - * type is used if available. |
|
| 548 | - * |
|
| 549 | - * @param string $confkey Key to the configuration setting for the template |
|
| 550 | - * @param string $default Default template if none is configured or not found |
|
| 551 | - * @return string Relative template path |
|
| 552 | - */ |
|
| 544 | + * Returns the template for the given configuration key |
|
| 545 | + * |
|
| 546 | + * If the "l_type" parameter is present, a specific template for this given |
|
| 547 | + * type is used if available. |
|
| 548 | + * |
|
| 549 | + * @param string $confkey Key to the configuration setting for the template |
|
| 550 | + * @param string $default Default template if none is configured or not found |
|
| 551 | + * @return string Relative template path |
|
| 552 | + */ |
|
| 553 | 553 | protected function getTemplatePath( $confkey, $default ) |
| 554 | 554 | { |
| 555 | 555 | if( ( $type = $this->view->param( 'l_type' ) ) !== null && ctype_alnum( $type ) !== false ) { |
@@ -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 | |
@@ -459,7 +459,7 @@ |
||
| 459 | 459 | * @see client/html/checkout/standard/address/delivery/mandatory |
| 460 | 460 | * @see client/html/checkout/standard/address/delivery/optional |
| 461 | 461 | * @see client/html/checkout/standard/address/delivery/hidden |
| 462 | - */ |
|
| 462 | + */ |
|
| 463 | 463 | $disable = $view->config( 'client/html/checkout/standard/address/delivery/disable-new', false ); |
| 464 | 464 | $type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_DELIVERY; |
| 465 | 465 | |
@@ -536,7 +536,7 @@ |
||
| 536 | 536 | * @see client/html/checkout/standard/address/billing/mandatory |
| 537 | 537 | * @see client/html/checkout/standard/address/billing/optional |
| 538 | 538 | * @see client/html/checkout/standard/address/billing/hidden |
| 539 | - */ |
|
| 539 | + */ |
|
| 540 | 540 | $disable = $view->config( 'client/html/checkout/standard/address/billing/disable-new', false ); |
| 541 | 541 | $type = \Aimeos\MShop\Order\Item\Base\Address\Base::TYPE_PAYMENT; |
| 542 | 542 | |
@@ -533,7 +533,7 @@ discard block |
||
| 533 | 533 | * @see client/html/checkout/standard/url/target |
| 534 | 534 | * @see client/html/checkout/standard/url/action |
| 535 | 535 | * @see client/html/checkout/standard/url/config |
| 536 | - */ |
|
| 536 | + */ |
|
| 537 | 537 | $cCntl = $view->config( 'client/html/checkout/standard/url/controller', 'checkout' ); |
| 538 | 538 | |
| 539 | 539 | /** client/html/checkout/standard/url/action |
@@ -549,7 +549,7 @@ discard block |
||
| 549 | 549 | * @see client/html/checkout/standard/url/target |
| 550 | 550 | * @see client/html/checkout/standard/url/controller |
| 551 | 551 | * @see client/html/checkout/standard/url/config |
| 552 | - */ |
|
| 552 | + */ |
|
| 553 | 553 | $cAction = $view->config( 'client/html/checkout/standard/url/action', 'index' ); |
| 554 | 554 | |
| 555 | 555 | /** client/html/checkout/standard/url/config |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | * @see client/html/checkout/standard/url/controller |
| 573 | 573 | * @see client/html/checkout/standard/url/action |
| 574 | 574 | * @see client/html/url/config |
| 575 | - */ |
|
| 575 | + */ |
|
| 576 | 576 | $cConfig = $view->config( 'client/html/checkout/standard/url/config', [] ); |
| 577 | 577 | |
| 578 | 578 | |