| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 1 | public function execute(Candidate $candidate) |
|
| 37 | { |
||
| 38 | 1 | $process = new Process( |
|
| 39 | 1 | self::PROCESS_COMMAND, |
|
| 40 | 1 | realpath($this->rootPath), |
|
| 41 | 1 | null, |
|
| 42 | 1 | $candidate->getContent(), |
|
| 43 | self::PROCESS_TIMEOUT |
||
| 44 | 1 | ); |
|
| 45 | 1 | $process->run(); |
|
| 46 | |||
| 47 | // remove extra header |
||
| 48 | 1 | $parsingResult = explode("\n", $process->getOutput()); |
|
| 49 | 1 | array_shift($parsingResult); |
|
| 50 | |||
| 51 | 1 | return implode("\n", $parsingResult); |
|
| 52 | } |
||
| 53 | } |
||
| 54 |