Conditions | 4 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | protected function serve(InputInterface $input, OutputInterface $output) |
||
22 | { |
||
23 | $port = $this->port($input); |
||
24 | $continue = true; |
||
25 | do { |
||
26 | if ($this->check_port($port)) { |
||
27 | $this->output->writeln('<info>Running php artisan serve --port='.$port.'</info>'); |
||
28 | exec('php artisan serve --port='.$port.' > /dev/null 2>&1 &'); |
||
29 | sleep(1); |
||
30 | if (file_exists('/usr/bin/sensible-browser')) { |
||
31 | $this->output->writeln('<info>Opening http://localhost:'.$port.' with default browser</info>'); |
||
32 | passthru('/usr/bin/sensible-browser http://localhost:'.$port); |
||
33 | } |
||
34 | $continue = false; |
||
35 | } |
||
36 | ++$port; |
||
37 | } while ($continue); |
||
38 | } |
||
39 | |||
86 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.