Reformat code.

This commit is contained in:
James Cole
2020-03-21 15:43:41 +01:00
parent f76585dc9b
commit c6d17e9bd7
43 changed files with 50 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ class CreateDatabase extends Command
{
if ('mysql' !== env('DB_CONNECTION')) {
$this->info(sprintf('CreateDB does not apply to "%s", skipped.', env('DB_CONNECTION')));
return 0;
}
// try to set up a raw connection:
@@ -68,6 +69,7 @@ class CreateDatabase extends Command
$pdo = new PDO($dsn, env('DB_USERNAME'), env('DB_PASSWORD'), $options);
} catch (PDOException $e) {
$this->error(sprintf('Error when connecting to DB: %s', $e->getMessage()));
return 1;
}
// with PDO, try to list DB's (