| Total Complexity | 4 |
| Total Lines | 45 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | class DeleteExpiredTokensCommand extends Command |
||
| 23 | { |
||
| 24 | /** @var string */ |
||
| 25 | protected $signature = 'delete:expiredTokens'; |
||
| 26 | |||
| 27 | /** @var string */ |
||
| 28 | protected $description = 'Remove expired tokens from database.'; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Command handle. |
||
| 32 | */ |
||
| 33 | public function handle() |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Remove expired tokens. |
||
| 54 | * We delete separate each token in case we add something to model boot. |
||
| 55 | * |
||
| 56 | * @throws Exception |
||
| 57 | */ |
||
| 58 | private function removeExpiredTokens() |
||
| 70 |