| Conditions | 3 |
| Paths | 3 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function handle(ProvisionEvent $event) |
||
| 31 | { |
||
| 32 | $input = $event->getCommandInput(); |
||
| 33 | $toRun = $event->getCount(); |
||
| 34 | |||
| 35 | if ($toRun === 0) { |
||
| 36 | return; |
||
| 37 | } |
||
| 38 | |||
| 39 | $command = sprintf( |
||
| 40 | 'cd %s && ./console %s', |
||
| 41 | $this->appDir, |
||
| 42 | (string) $input |
||
| 43 | ); |
||
| 44 | |||
| 45 | for ($i = 0; $i < $toRun; $i++) { |
||
| 46 | $process = new Process($command); |
||
| 47 | $process->start(); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | } |
||
| 51 |