Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function run(array $args, \DomElement $element = null) |
||
25 | { |
||
26 | $fileContents = $args[0]; |
||
27 | |||
28 | $path = $this->filePath->getFilePath($fileContents); |
||
29 | if (!file_exists($path)) { |
||
30 | throw new \Exception('File does not exist at: ' . $path); |
||
31 | } |
||
32 | $fileContents = file_get_contents($path); |
||
33 | |||
34 | return $fileContents; |
||
35 | } |
||
36 | } |
||
37 |