| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | protected function clearAllLogsBefore(Carbon $carbon) { |
||
| 27 | $date_string = $carbon->copy()->format('Y-m-d H:i:s'); |
||
| 28 | |||
| 29 | CrawlerStatus::where('created_at', '<=', $date_string) |
||
| 30 | ->orWhereNull('created_at') |
||
| 31 | ->delete(); |
||
| 32 | CrawlerStatusLogs::where('created_at', '<=', $date_string) |
||
| 33 | ->orWhereNull('created_at') |
||
| 34 | ->delete(); |
||
| 35 | } |
||
| 37 |