| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 9 | 
| CRAP Score | 1 | 
| Changes | 5 | ||
| Bugs | 2 | Features | 0 | 
| 1 | <?php | ||
| 33 | 12 | protected function execute(InputInterface $input, OutputInterface $output) | |
| 34 |     { | ||
| 35 | 12 |         $this->addLibrary('wildfire'); | |
| 36 | |||
| 37 | 12 | $file = fopen(APPPATH . 'libraries/Wildfire.php', 'wb'); | |
| 38 | 12 |         $wildfire = $this->renderer->render('Libraries/Wildfire.template'); | |
| 39 | |||
| 40 | 12 | file_put_contents(APPPATH . 'libraries/Wildfire.php', $wildfire); | |
| 41 | 12 | fclose($file); | |
| 42 | |||
| 43 | 12 | Tools::ignite(); | |
| 44 | |||
| 45 | 12 | $message = 'Wildfire is now installed successfully!'; | |
| 46 | |||
| 47 | 12 |         return $output->writeln('<info>' . $message . '</info>'); | |
| 48 | } | ||
| 49 | } | ||
| 50 |