Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class Uninstall extends Processor |
||
9 | { |
||
10 | public function run(): string |
||
11 | { |
||
12 | return $this->exists() ? $this->delete() : $this->skipped(); |
||
13 | } |
||
14 | |||
15 | protected function exists(): bool |
||
20 | } |
||
21 | |||
22 | protected function delete(): string |
||
23 | { |
||
24 | $this->log('Deleting a file: ' . $this->target_path); |
||
25 | |||
26 | File::delete($this->target_path); |
||
27 | |||
28 | return Status::DELETED; |
||
29 | } |
||
30 | |||
31 | protected function skipped(): string |
||
36 | } |
||
37 | } |
||
38 |