| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | 1 | public function __invoke(): void |
|
| 36 | { |
||
| 37 | $this |
||
| 38 | 1 | ->folders |
|
| 39 | 1 | ->matching(new Trashed) |
|
| 40 | 1 | ->foreach(function(Folder $folder): void { |
|
| 41 | 1 | ($this->removeFolder)(new RemoveFolder($folder->identity())); |
|
| 42 | 1 | }); |
|
| 43 | $this |
||
| 44 | 1 | ->files |
|
| 45 | 1 | ->matching(new Trashed) |
|
| 46 | 1 | ->foreach(function(File $file): void { |
|
| 47 | 1 | ($this->removeFile)(new RemoveFile($file->identity())); |
|
| 48 | 1 | }); |
|
| 51 |