Skip to content

Apply fixes from StyleCI #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/DumbDbCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
use Exception;
use Flarum\Console\AbstractCommand;
use Flarum\Foundation\{Config, Paths};
use Spatie\DbDumper\Compressors\{Bzip2Compressor, GzipCompressor};
use Spatie\DbDumper\Databases\MySql;
use Spatie\DbDumper\Compressors\{GzipCompressor, Bzip2Compressor};
use Spatie\DbDumper\Exceptions\CannotSetParameter;
use Symfony\Component\Console\Input\{InputArgument, InputOption};

Expand All @@ -19,7 +19,7 @@ class DumbDbCommand extends AbstractCommand
];

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


if ($binaryPath = $this->input->getOption('binary-path')) {
$dumper->setDumpBinaryPath($binaryPath);
}
Expand Down Expand Up @@ -252,6 +251,7 @@ protected function fire(): int
$this->info("Database dumped successfully to: $path");
} catch (Exception $e) {
$this->error('Failed to dump database: '.$e->getMessage());

return 1;
}

Expand Down