| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function execute() |
||
| 19 | { |
||
| 20 | $fullQualifiedFilePath = $this->getFilePath() . DIRECTORY_SEPARATOR . |
||
| 21 | $this->getFileName(); |
||
| 22 | $fileCouldNotBeRemoved = (unlink($fullQualifiedFilePath) !== true); |
||
| 23 | |||
| 24 | if ($fileCouldNotBeRemoved) { |
||
| 25 | throw new RuntimeException( |
||
| 26 | 'could not delete file "' . $fullQualifiedFilePath . '"' |
||
| 27 | ); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | } |