| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | protected function execute(InputInterface $input, OutputInterface $output): int |
||
| 23 | { |
||
| 24 | if (!$port = $input->getOption('port')) { |
||
| 25 | $port = 8000; |
||
| 26 | } |
||
| 27 | $output->writeln('Running PHP development server on port ' . $port . '...'); |
||
| 28 | passthru('php -S localhost:' . $port . ' -t ' . getcwd() . '/public public/router.php'); |
||
| 29 | return 1; |
||
| 30 | } |
||
| 32 |