| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function afterDelete($event) |
||
|
|
|||
| 22 | { |
||
| 23 | /* @var $model OauthClients */ |
||
| 24 | $model = $this->owner; |
||
| 25 | //删除缓存 |
||
| 26 | Predis::getInstance()->getClient()->deleteClientToken($model->client_id); |
||
| 27 | //删除Token |
||
| 28 | //OauthAccessTokens::deleteAll(['client_id' => $model->client_id]); |
||
| 29 | //删除授权码 |
||
| 30 | OauthAuthorizationCodes::deleteAll(['client_id' => $model->client_id]); |
||
| 31 | //删除刷新Token |
||
| 32 | OauthRefreshTokens::deleteAll(['client_id' => $model->client_id]); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.