| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 16 | public function run($callback = null) { |
||
| 17 | $this->start($callback); |
||
| 18 | while($this->isRunning()) { |
||
| 19 | $this->checkTimeout(); |
||
| 20 | sleep(1); |
||
| 21 | } |
||
| 22 | |||
| 23 | if ($this->hasBeenSignaled()) { |
||
| 24 | throw new RuntimeException(sprintf( |
||
| 25 | 'The process has been signaled with signal "%s".', |
||
| 26 | $this->getTermSignal()) |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | |||
| 30 | return $this->getExitCode(); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |