| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | 18 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 35 | { |
||
| 36 | 18 | $this->addLibrary('wildfire'); |
|
| 37 | |||
| 38 | 18 | $template = $this->renderer->render('Libraries/Wildfire.tpl'); |
|
| 39 | 18 | $wildfire = new File(APPPATH . 'libraries/Wildfire.php'); |
|
|
|
|||
| 40 | |||
| 41 | 18 | $wildfire->putContents($template); |
|
| 42 | 18 | $wildfire->close(); |
|
| 43 | |||
| 44 | 18 | Tools::ignite(); |
|
| 45 | |||
| 46 | 18 | $message = 'Wildfire is now installed successfully!'; |
|
| 47 | |||
| 48 | 18 | return $output->writeln('<info>' . $message . '</info>'); |
|
| 49 | } |
||
| 51 |