Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
56 | public function removeOldFilesByIntervalDays(): void |
||
57 | { |
||
58 | $time_before = time() - $this->params['days_interval'] * 86400; |
||
59 | foreach ($this->files as $file) { |
||
60 | $f = explode('-', $file); |
||
61 | $f = str_replace('.sql', '', $f); |
||
62 | if ($f[1] < $time_before) { |
||
63 | @unlink($this->params['files_path'] . '/' . $file); |
||
64 | } |
||
68 |