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