Skip to content

Commit

Permalink
mod langfilr:export (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShibuyaKosuke authored Jun 1, 2023
1 parent c867c46 commit 598a8ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Console/TransExportCommend.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function handle(): void
];
})->toArray();

$tables = Table::all()->mapWithKeys(function(TableInterface $table){
$tables = Table::all()->mapWithKeys(function (TableInterface $table) {
return [$table->TABLE_NAME => $table->TABLE_COMMENT];
})->toArray();

Expand All @@ -59,6 +59,8 @@ public function handle(): void
if (!file_exists($dir) && !mkdir($dir, true) && !is_dir($dir)) {
throw new \RuntimeException(sprintf('Directory "%s" was not created', $dir));
}
$old = require($dir . '/columns.php');
$response = array_merge($response, $old);

File::put(
$dir . '/columns.php',
Expand Down

0 comments on commit 598a8ee

Please sign in to comment.