| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0438 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 2 | protected function doRun(Code $code) |
|
| 23 | { |
||
| 24 | 2 | $file = $this->createTemporaryFile(); |
|
| 25 | 2 | $code->writeTo($file); |
|
| 26 | |||
| 27 | 2 | $process = new Process("php $file"); |
|
| 28 | 2 | $process->run(); |
|
| 29 | |||
| 30 | 2 | if (!@unlink($file)) { |
|
| 31 | $this->logger->debug(sprintf('CLI: Could not delete file: %s', $file)); |
||
| 32 | } |
||
| 33 | |||
| 34 | 2 | return $process->getOutput(); |
|
| 35 | } |
||
| 36 | } |
||
| 37 |