| Conditions | 3 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | 14 | public function init() |
|
| 34 | { |
||
| 35 | 14 | if ($this->failedAt !== null && strtotime($this->failedAt) < strtotime(date('Y-m-d H:i:s'))) { |
|
| 36 | 2 | return \Yii::$app->db->createCommand() |
|
| 37 | 2 | ->delete(\Yii::$app->authManager->assignmentTable, ['user_guid' => (string) $this->userGuid, 'item_name' => $this->roleName]) |
|
| 38 | 2 | ->execute() > 0; |
|
| 39 | } |
||
| 40 | } |
||
| 41 | } |