@@ -103,8 +103,9 @@ |
||
| 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 | |
@@ -126,8 +126,7 @@ |
||
| 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 | } |