Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
46 | public function updateTokens() |
||
47 | { |
||
48 | // Clear any possible tokens in the session, just to be sure |
||
49 | Controller::curr()->getRequest()->getSession()->clear('tokens'); |
||
50 | |||
51 | if ($member = $this->getMember()) { |
||
52 | /** @var DataList|BackupCode[] $expiredCodes */ |
||
53 | $expiredCodes = BackupCode::get()->filter(['MemberID' => $member->ID]); |
||
54 | $expiredCodes->removeAll(); |
||
55 | |||
56 | BackupCode::generateTokensForMember($member); |
||
57 | } |
||
61 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.