Completed
Push — master ( 9e3353...dc977e )
by Joao
02:24
created
src/Database/Blueprint.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,9 @@
 block discarded – undo
103 103
         // If no name was specified for this index, we will create one using a basic
104 104
         // convention of the table name, followed by the columns, followed by an
105 105
         // index type, such as primary or index, which makes the index unique.
106
-        if (is_null($index))
107
-            $index = $this->createIndexName($type, $columns);
106
+        if (is_null($index)) {
107
+                    $index = $this->createIndexName($type, $columns);
108
+        }
108 109
         return $this->addCommand($type, compact('index', 'columns', 'length'));
109 110
     }
110 111
 
Please login to merge, or discard this patch.
src/Database/MySqlGrammar.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,7 @@
 block discarded – undo
126 126
                 if ( isset($command->length) )
127 127
                 {
128 128
                     $column .= "({$command->length})";
129
-                }
130
-                elseif ( 'string' == $blueprintColumn->type && $blueprintColumn->length > 255 )
129
+                } elseif ( 'string' == $blueprintColumn->type && $blueprintColumn->length > 255 )
131 130
                 {
132 131
                     $column .= '(255)';
133 132
                 }
Please login to merge, or discard this patch.