Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
66 | protected function execute(InputInterface $input, OutputInterface $output) |
||
67 | { |
||
68 | if ($input->getOption(self::OPTION_IF_EXISTS) |
||
69 | && !in_array($this->name, $this->connection->getSchemaManager()->listDatabases()) |
||
70 | ) { |
||
71 | return; |
||
72 | } |
||
73 | |||
74 | $this->connection->getSchemaManager()->dropDatabase($this->name); |
||
75 | |||
76 | $output->writeln(sprintf('<info>Dropped database <comment>%s</comment></info>', $this->name)); |
||
77 | } |
||
79 |