Test Failed
Push — master ( befccc...a4b299 )
by Gianluca
19:49
created
src/Libraries/Template.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public static function getProducts($id = null){
53 53
         if($id === null){
54 54
             $products = Product::all();
55
-        }else{
55
+        } else{
56 56
             $products = Category::find($id)->products;
57 57
         }
58 58
         return $products;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             $html .= "<label>{$label}</label>";
77 77
             $html .= "<input class='form-control' type='{$type}' value='{$value}'>";
78 78
             return $html;
79
-        }else{
79
+        } else{
80 80
             $html = '';
81 81
             $html .= "<label>{$label}</label>";
82 82
             $html .= "<textarea class='form-control'>{$value}</textarea>";
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 if(isset($filter[$detail->id])){
118 118
                     if($filter[$detail->id] == $detail_value_id){
119 119
                         $selected = 'selected';
120
-                    }else{
120
+                    } else{
121 121
                         $selected = '';
122 122
                     }
123 123
                 }
Please login to merge, or discard this patch.
src/Http/Controllers/shop/ShopSingleProductController.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -13,16 +13,16 @@
 block discarded – undo
13 13
 
14 14
 class ShopSingleProductController extends Controller
15 15
 {
16
-     public function page($id,$product_item_id = null){
17
-         $product = Product::find($id);
18
-         if($product_item_id == null){
19
-             return redirect()->route('shop.single.product',[$product->id,$product->items->first()->id]);
20
-         }
21
-         $details_fields = Template::getDetailsFields($product,$product_item_id);
22
-         $configuration_fields = Template::getConfigurationFields($product_item_id);
23
-         $btn_cart = Template::buttonCart($product_item_id);
24
-
25
-
26
-         return view('mongicommerce.pages.single-product',compact('product','details_fields','configuration_fields','btn_cart'));
27
-     }
16
+        public function page($id,$product_item_id = null){
17
+            $product = Product::find($id);
18
+            if($product_item_id == null){
19
+                return redirect()->route('shop.single.product',[$product->id,$product->items->first()->id]);
20
+            }
21
+            $details_fields = Template::getDetailsFields($product,$product_item_id);
22
+            $configuration_fields = Template::getConfigurationFields($product_item_id);
23
+            $btn_cart = Template::buttonCart($product_item_id);
24
+
25
+
26
+            return view('mongicommerce.pages.single-product',compact('product','details_fields','configuration_fields','btn_cart'));
27
+        }
28 28
 }
Please login to merge, or discard this patch.