Conditions | 2 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
32 | public function handle() |
||
33 | { |
||
34 | $this->comment('Cleaning WebSocket Statistics...'); |
||
35 | |||
36 | $days = $this->option('days') ?: config('statistics.delete_statistics_older_than_days'); |
||
37 | |||
38 | $amountDeleted = StatisticsStore::delete( |
||
39 | now()->subDays($days), $this->argument('appId') |
||
40 | ); |
||
41 | |||
42 | $this->info("Deleted {$amountDeleted} record(s) from the WebSocket statistics storage."); |
||
43 | } |
||
45 |