Test Failed
Push — master ( 092323...db408b )
by Glegrith
07:57 queued 10s
created
app/framework/Component/Database/Schema/Builder.php 1 patch
Braces   +8 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,17 +73,19 @@
 block discarded – undo
73 73
             if($Column->default != null) {
74 74
                 $default = $Column->default;
75 75
                 if (is_string($default)) {
76
-                    if (str($default)->startsWith("%"))
77
-                        $default = str($default)->explode("%")->last();
78
-                    else
79
-                        $default = "'".$default."'";
76
+                    if (str($default)->startsWith("%")) {
77
+                                            $default = str($default)->explode("%")->last();
78
+                    } else {
79
+                                            $default = "'".$default."'";
80
+                    }
80 81
                 }
81 82
 
82 83
                 $query .= " DEFAULT ".$default;
83 84
             }
84 85
 
85
-            if(count($table->getColumns())-1 != $key)
86
-                $query .= ", ";
86
+            if(count($table->getColumns())-1 != $key) {
87
+                            $query .= ", ";
88
+            }
87 89
         }
88 90
         $query .= ");";
89 91
 
Please login to merge, or discard this patch.