Passed
Push — master ( 588295...22ea17 )
by Aimeos
05:10
created
src/MShop/Price/Manager/Base.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -102,16 +102,19 @@
 block discarded – undo
102 102
 
103 103
 			if( $siteId )
104 104
 			{
105
-				if( in_array( $siteId, $siteIds ) ) // if product is inherited, inherit price too
105
+				if( in_array( $siteId, $siteIds ) ) {
106
+					// if product is inherited, inherit price too
106 107
 				{
107 108
 					if( !in_array( $priceItem->getSiteId(), $siteIds ) ) {
108 109
 						continue;
109
-					}
110 110
 				}
111
-				elseif( $priceItem->getSiteId() !== $siteId ) // Use price from specific site originally passed as parameter
111
+					}
112
+				} elseif( $priceItem->getSiteId() !== $siteId ) {
113
+					// Use price from specific site originally passed as parameter
112 114
 				{
113 115
 					continue;
114 116
 				}
117
+				}
115 118
 			}
116 119
 
117 120
 			$qty = (string) $priceItem->getQuantity();
Please login to merge, or discard this patch.