Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2.0078 |
Changes | 0 |
1 | <?php |
||
31 | 1 | protected function doRun(Code $code) |
|
32 | { |
||
33 | 1 | $filename = $this->createFilename(); |
|
34 | 1 | $file = $this->createWebFile($filename); |
|
35 | 1 | $code->writeTo($file); |
|
36 | |||
37 | 1 | $content = $this->http->fetch($filename); |
|
38 | |||
39 | 1 | if (!@unlink($file)) { |
|
40 | $this->logger->debug(sprintf('Web: Could not delete file: %s', $file)); |
||
41 | } |
||
42 | |||
43 | 1 | return $content; |
|
44 | } |
||
68 |