Test Failed
Push — master ( bb09d0...43a40c )
by Gianluca
16:56 queued 11:51
created
src/Http/Controllers/admin/AdminConfigurationFieldController.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
         if($type === 'textarea'){
55 55
             $html = '';
56 56
             $html .= '<textarea data-configuration_id="'.$field->id .'" class="form-control mongiconfigurationfield"></textarea>';
57
-        }else{
57
+        } else{
58 58
             $html .= '<input type="'.$type.'" data-configuration_id="'.$field->id .'" class="form-control mongiconfigurationfield">';
59 59
         }
60 60
         return $html;
Please login to merge, or discard this patch.
src/Libraries/Template.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,12 +46,12 @@
 block discarded – undo
46 46
     public static function getProducts($id = null){
47 47
         if($id === null){
48 48
             $products = Product::all();
49
-        }else{
49
+        } else{
50 50
             if(Category::find($id)){
51 51
                 $belong_to_this_category = Category::find($id)->children->pluck('id')->toArray();
52 52
                 $result = array_merge($belong_to_this_category, [0 =>$id]);
53 53
                 $products = Product::whereIn('category_id',$result)->get();
54
-            }else{
54
+            } else{
55 55
                 $products = [];
56 56
             }
57 57
         }
Please login to merge, or discard this patch.