Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Lines | 11 |
Ratio | 100 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
61 | 2 | View Code Duplication | public function wait() |
62 | { |
||
63 | // blocks here until process completes |
||
64 | 2 | $this->process->wait(); |
|
65 | |||
66 | 2 | if (!$this->process->isSuccessful()) { |
|
67 | 1 | throw new \RuntimeException($this->process->getErrorOutput()); |
|
68 | } |
||
69 | |||
70 | 1 | return $this->process->getOutput(); |
|
71 | } |
||
72 | } |
||
73 |