Passed
Pull Request — master (#209)
by
unknown
03:49
created
templates/client/html/catalog/detail/body.php 1 patch
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -72,30 +72,30 @@
 block discarded – undo
72 72
 $starsAmount = 0;
73 73
 $IDs = [];
74 74
 if (isset( $this->detailProductItem )) {
75
-    $IDs[] = $this->detailProductItem->getId();
76
-    $amountOfStarred = 0;
77
-    if ($this->detailProductItem->getRatings()) {
78
-        $reviewsAmount += $this->detailProductItem->getRatings();
79
-        if($this->detailProductItem->getRating() > 0) {
80
-            $amountOfStarred++;
81
-            $starsAmount += $this->detailProductItem->getRating();
82
-        }
83
-    }
84
-    $refs = $this->detailProductItem->getRefItems();
85
-    if(isset($refs['product'])) {
86
-
87
-        foreach ($refs['product'] as $variant_id => $variant){
88
-            $IDs[] = $variant_id;
89
-            if($variant->getRatings()){
90
-                $reviewsAmount += $variant->getRatings();
91
-                if ($variant->getRating() > 0) {
92
-                    $amountOfStarred++;
93
-                    $starsAmount += $variant->getRating();
94
-                }
95
-            }
96
-        }
97
-        $starsAmount = $starsAmount / $amountOfStarred;
98
-    }
75
+	$IDs[] = $this->detailProductItem->getId();
76
+	$amountOfStarred = 0;
77
+	if ($this->detailProductItem->getRatings()) {
78
+		$reviewsAmount += $this->detailProductItem->getRatings();
79
+		if($this->detailProductItem->getRating() > 0) {
80
+			$amountOfStarred++;
81
+			$starsAmount += $this->detailProductItem->getRating();
82
+		}
83
+	}
84
+	$refs = $this->detailProductItem->getRefItems();
85
+	if(isset($refs['product'])) {
86
+
87
+		foreach ($refs['product'] as $variant_id => $variant){
88
+			$IDs[] = $variant_id;
89
+			if($variant->getRatings()){
90
+				$reviewsAmount += $variant->getRatings();
91
+				if ($variant->getRating() > 0) {
92
+					$amountOfStarred++;
93
+					$starsAmount += $variant->getRating();
94
+				}
95
+			}
96
+		}
97
+		$starsAmount = $starsAmount / $amountOfStarred;
98
+	}
99 99
 }
100 100
 
101 101
 ?>
Please login to merge, or discard this patch.