| Conditions | 2 |
| Paths | 5 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 40 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 41 | { |
||
| 42 | try { |
||
| 43 | $mongoClient = new \MongoClient(); |
||
| 44 | $database = new \MongoDB($mongoClient, 'uber_translations'); |
||
| 45 | $database->execute('"foo";'); // perform interaction to persist database |
||
| 46 | |||
| 47 | $output->writeln("\e[37;42m Database 'uber_translations' successfully created \e[0m"); |
||
| 48 | } catch (\Exception $exception) { |
||
| 49 | $output->writeln(sprintf("\e[37;43m %s \e[0m", $exception->getMessage())); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | } |
||
| 53 |