Skip to content

Commit a6a6270

Browse files
committed
Apply fixes from StyleCI
1 parent 87e3979 commit a6a6270

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DumbDbCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Exception;
77
use Flarum\Console\AbstractCommand;
88
use Flarum\Foundation\{Config, Paths};
9+
use Spatie\DbDumper\Compressors\{Bzip2Compressor, GzipCompressor};
910
use Spatie\DbDumper\Databases\MySql;
10-
use Spatie\DbDumper\Compressors\{GzipCompressor, Bzip2Compressor};
1111
use Spatie\DbDumper\Exceptions\CannotSetParameter;
1212
use Symfony\Component\Console\Input\{InputArgument, InputOption};
1313

@@ -19,7 +19,7 @@ class DumbDbCommand extends AbstractCommand
1919
];
2020

2121
/**
22-
* Inspired by WP-CLI's DB_Command
22+
* Inspired by WP-CLI's DB_Command.
2323
* @see https://github.com/wp-cli/db-command/blob/e9c4e8ab61e99f7fa7e31e584c2b2b5d54d071db/src/DB_Command.php#L1937
2424
*/
2525
private const ALLOWED_MYSQLDUMP_OPTIONS = [
@@ -207,7 +207,6 @@ protected function fire(): int
207207
mkdir($dir, 0755, true);
208208
}
209209

210-
211210
if ($binaryPath = $this->input->getOption('binary-path')) {
212211
$dumper->setDumpBinaryPath($binaryPath);
213212
}
@@ -252,6 +251,7 @@ protected function fire(): int
252251
$this->info("Database dumped successfully to: $path");
253252
} catch (Exception $e) {
254253
$this->error('Failed to dump database: '.$e->getMessage());
254+
255255
return 1;
256256
}
257257

0 commit comments

Comments
 (0)