Passed
Branch master (4f99e3)
by Aimeos
04:48
created
client/html/src/Client/Html/Basket/Related/Bought/Standard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -296,10 +296,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Stock/Standard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -298,8 +298,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
client/html/src/Client/Html/Catalog/Lists/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -609,7 +609,7 @@
 block discarded – undo
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 !== [] )
Please login to merge, or discard this patch.
client/html/src/Client/Html/Account/Download/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
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 );
Please login to merge, or discard this patch.
client/html/src/Client/Html/Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Standard/Process/Standard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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' ) );
Please login to merge, or discard this patch.
client/html/src/Client/Html/Checkout/Confirm/Standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
client/html/templates/catalog/detail/body-standard.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 													}
Please login to merge, or discard this patch.
client/html/templates/catalog/filter/attribute-body-standard.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.