Conditions | 4 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
22 | public function execute(string $localBasePath, FileReader $fileReader, VaultLayoutInterface $vaultLayout): bool |
||
23 | { |
||
24 | $absolutePath = $localBasePath . $this->relativePath; |
||
25 | |||
26 | if (is_file($absolutePath) || is_link($absolutePath)) |
||
27 | { |
||
28 | return unlink($localBasePath . $this->relativePath); |
||
29 | } |
||
30 | elseif (is_dir($absolutePath)) |
||
31 | { |
||
32 | return rmdir($absolutePath); |
||
33 | } |
||
34 | |||
35 | return false; |
||
36 | } |
||
37 | |||
46 |