Conditions | 2 |
Paths | 6 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | public function handle() |
||
34 | { |
||
35 | try { |
||
36 | $this->info('[' . Carbon::now()->format('Y-m-d H:i:s') . ']: Command [delete:expiredTokens] started.'); |
||
37 | |||
38 | DB::beginTransaction(); |
||
39 | |||
40 | $this->removeExpiredTokens(); |
||
41 | |||
42 | DB::commit(); |
||
43 | |||
44 | $this->info('[' . Carbon::now()->format('Y-m-d H:i:s') . ']: Command [delete:expiredTokens] ended.'); |
||
45 | } catch (Throwable $t) { |
||
46 | Log::error(LogService::getThrowableTraceAsString($t)); |
||
47 | |||
48 | $this->error($t->getMessage()); |
||
49 | } |
||
70 |