Passed
Pull Request — master (#193)
by
unknown
03:10
created
src/Client/Html/Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -384,7 +384,7 @@
 block discarded – undo
384 384
 		$domain = str_replace( '/', '_', $item->getResourceType() ); // maximum compatiblity
385 385
 
386 386
 		if( in_array( $item->getResourceType(), ['catalog', 'product', 'supplier'] ) ) {
387
-			$tags[] = $tagAll ? $domain . '-' . $item->getId() : $domain ;
387
+			$tags[] = $tagAll ? $domain . '-' . $item->getId() : $domain;
388 388
 		}
389 389
 
390 390
 		if( $item instanceof \Aimeos\MShop\Common\Item\Time\Iface && ( $date = $item->getDateEnd() ) !== null ) {
Please login to merge, or discard this patch.
templates/client/html/catalog/detail/body.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -623,20 +623,20 @@
 block discarded – undo
623 623
 
624 624
 <?php
625 625
 // preselection of a variant in a selection article
626
-if (isset($_GET['productId']) && is_numeric($_GET['productId'])):
626
+if( isset( $_GET['productId'] ) && is_numeric( $_GET['productId'] ) ):
627 627
 
628 628
     foreach( $this->detailProductItem->getRefItems( 'product', null, 'default' ) as $prodid => $product ) :
629 629
 
630
-        if ($prodid == $_GET['productId']):
630
+        if( $prodid == $_GET['productId'] ):
631 631
 
632
-            $attributes = $product->getRefItems('attribute',null,'variant');
632
+            $attributes = $product->getRefItems( 'attribute', null, 'variant' );
633 633
             $js = '';
634
-            foreach($attributes as $attribId => $attribute):
635
-                $js .= '"' .  $attribute->getType() . '": "' . $attribute->getId() . '",
634
+            foreach( $attributes as $attribId => $attribute ):
635
+                $js .= '"' . $attribute->getType() . '": "' . $attribute->getId() . '",
636 636
                 ';
637 637
             endforeach;
638 638
 
639
-            if (!empty($js)): ?>
639
+            if( !empty( $js ) ): ?>
640 640
                <script>
641 641
                    AimeosVariantSelectionProduct = {"prodId": "<?= $this->detailProductItem->getId() ?>", "attributes": {<?= $js ?>}};
642 642
                </script>
Please login to merge, or discard this patch.