| Total Complexity | 2 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FsaController extends \yii\console\Controller |
||
| 11 | { |
||
| 12 | public $defaultAction = null; |
||
| 13 | |||
| 14 | public $ageThreshold = 7; // in days |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Deletes unconfirmed accounts that are older than the lifetime of the |
||
| 18 | * verification token |
||
| 19 | */ |
||
| 20 | public function actionRemoveOldUnconfirmedAccounts(): void |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Returns the cut-off time threshold for unconfirmed users we should delete |
||
| 38 | * |
||
| 39 | * @return integer |
||
| 40 | */ |
||
| 41 | public function getTimeThreshold(): int |
||
| 48 |