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