Skip to content

Commit c434620

Browse files
committed
code cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
1 parent 8ad57cd commit c434620

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

core/Command/Db/Migrations/GenerateFromSchemaFileCommand.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -130,11 +130,7 @@ protected function schemaToMigration(Schema $schema) {
130130
if (is_string($default)) {
131131
$default = "'$default'";
132132
} else if (is_bool($default)) {
133-
if ($default === true) {
134-
$default = 'true';
135-
} else {
136-
$default = 'false';
137-
}
133+
$default = ($default === true) ? 'true' : 'false';
138134
}
139135
$content .= str_replace('{{default}}', $default, <<<'EOT'
140136
'default' => {{default}},

0 commit comments

Comments
 (0)