Conditions | 4 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
54 | private function autoremove(): void |
||
55 | { |
||
56 | if (!$this->live) { |
||
57 | return; |
||
58 | } |
||
59 | $finder = Utils\Finder::findFiles('*.eml'); |
||
60 | if (is_string($this->live)) { |
||
61 | $finder->date('<=', "- {$this->live}"); |
||
62 | } |
||
63 | |||
64 | foreach ($finder->in($this->path) as $file) { |
||
65 | @unlink($file->getPathname()); |
||
66 | } |
||
67 | $this->live = null; // clear temporary onetime per execution. |
||
68 | } |
||
71 |
This interface has been deprecated. The supplier of the interface has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the interface will be removed and what other interface to use instead.