Test Failed
Push — master ( a4b299...6cd9b3 )
by Gianluca
15:28
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/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.
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/ShopCartController.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@  discard block
 block discarded – undo
25 25
         if (is_null($checkElement)) {
26 26
             if($num_avaibile_product > 0){
27 27
                 return true;
28
-            }else{
28
+            } else{
29 29
                 return false;
30 30
             }
31
-        }else{
31
+        } else{
32 32
             //if there is something in the cart check the avaibility
33 33
             if ($checkElement->quantity + 1 <= $num_avaibile_product) {
34 34
                 return true;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 session()->push('products.ids', $product_item_id);
51 51
                 session()->put('cart',self::getCountableCart(session('products.ids')));
52 52
                 return response()->json(session('cart'));
53
-            }else{
53
+            } else{
54 54
                 //if number i want is less than number avaible product i can add into cart
55 55
                 $mycart = Cart::where('product_item_id',$product->id)->where('user_id',Auth::user()->id)->first();
56 56
                 if(is_null($mycart)){
@@ -59,13 +59,13 @@  discard block
 block discarded – undo
59 59
                     $cart->product_item_id = $product_item_id;
60 60
                     $cart->quantity = 1;
61 61
                     $cart->save();
62
-                }else{
62
+                } else{
63 63
                     $mycart->quantity = $mycart->quantity + 1;
64 64
                     $mycart->save();
65 65
                 }
66 66
                 return true;
67 67
             }
68
-        }else{
68
+        } else{
69 69
             return response()->json([
70 70
                 'errors' => "Prodotto non disponibile o terminato",
71 71
             ], 422);
Please login to merge, or discard this patch.