Test Failed
Push — master ( 1129de...bac6db )
by Gianluca
06:48
created
src/Libraries/Template.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     public static function getProducts($id = null){
60 60
         if($id === null){
61 61
             $products = Product::all();
62
-        }else{
62
+        } else{
63 63
             $products = Category::where('id',$id)->orWhere('parent_id',$id)->first()->products;
64 64
         }
65 65
         return $products;
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             $html .= "<label>{$label}</label>";
84 84
             $html .= "<input disabled class='form-control' type='{$type}' value='{$value}'>";
85 85
             return $html;
86
-        }else{
86
+        } else{
87 87
             $html = '';
88 88
             $html .= "<label>{$label}</label>";
89 89
             $html .= "<textarea disabled class='form-control'>{$value}</textarea>";
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 if(isset($filter[$detail->id])){
125 125
                     if($filter[$detail->id] == $detail_value_id){
126 126
                         $selected = 'selected';
127
-                    }else{
127
+                    } else{
128 128
                         $selected = '';
129 129
                     }
130 130
                 }
Please login to merge, or discard this patch.