Test Failed
Push — master ( a84a97...6a5aa6 )
by Gianluca
07:16
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
     public static function getProducts($id = null){
51 51
         if($id === null){
52 52
             $products = Product::all();
53
-        }else{
53
+        } else{
54 54
             if(Category::find($id)){
55 55
                 $belong_to_this_category = Category::find($id)->children->pluck('id')->toArray();
56 56
                 $result = array_merge($belong_to_this_category, [0 =>$id]);
57 57
                 $products = Product::whereIn('category_id',$result)->get();
58
-            }else{
58
+            } else{
59 59
                 $products = [];
60 60
             }
61 61
         }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
                 if(isset($filters[$detail->id])){
88 88
                     if($filters[$detail->id] == $value->detail->id){
89 89
                         $selected = 'selected';
90
-                    }else{
90
+                    } else{
91 91
                         $selected = '';
92 92
                     }
93 93
                 }
Please login to merge, or discard this patch.
src/Http/Controllers/shop/ShopShowVariationProductController.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
             if(count($informations) == $key +1){
33 33
                 $condition = '';
34
-            }else{
34
+            } else{
35 35
                 $condition = 'or';
36 36
             }
37 37
             $g .= ('(a.product_detail_id ='.$product_detail_id.' and a.product_detail_value_id ='.$product_detail_value_id.') '.$condition.'');
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
                 $product_item_id = $result->product_item_id;
47 47
 
48 48
                 return response()->json(route('shop.single.product',[$product_id,$product_item_id]));
49
-            }else{
49
+            } else{
50 50
                 return response()->json(false);
51 51
             }
52
-        }else{
52
+        } else{
53 53
             return response()->json(false);
54 54
         }
55 55
 
Please login to merge, or discard this patch.