Test Failed
Push — master ( c94a90...befccc )
by Gianluca
06:01
created
src/Libraries/Template.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@  discard block
 block discarded – undo
51 51
     public static function getProducts($id = null){
52 52
         if($id === null){
53 53
             $products = Product::all();
54
-        }else{
54
+        } else{
55 55
             if(Category::find($id)){
56 56
                 $belong_to_this_category = Category::find($id)->children->pluck('id')->toArray();
57 57
                 $result = array_merge($belong_to_this_category, [0 =>$id]);
58 58
                 $products = Product::whereIn('category_id',$result)->get();
59
-            }else{
59
+            } else{
60 60
                 $products = [];
61 61
             }
62 62
         }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
                 if(isset($filters[$detail->id])){
93 93
                     if($filters[$detail->id] == $detail_value_id){
94 94
                         $selected = 'selected';
95
-                    }else{
95
+                    } else{
96 96
                         $selected = '';
97 97
                     }
98 98
                 }
Please login to merge, or discard this patch.