Conditions | 3 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
33 | protected function interactWithDatabase(ConnectionInterface $connection, ?string $dbName): void |
||
34 | { |
||
35 | if ($this->io->option('force') || $this->io->confirm("Would you like to drop database <comment>$dbName</comment>?")) { |
||
36 | $connection->schema()->dropDatabase($dbName); |
||
|
|||
37 | |||
38 | $this->io->line('Database <comment>%s</comment> has been <info>dropped</info> for connection <comment>%s</comment>.', $dbName, $connection->getName()); |
||
39 | } |
||
50 |