| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2.0185 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 1 | public function run() |
|
| 28 | { |
||
| 29 | 1 | $this->model->trigger(UserEvent::EVENT_BEFORE_CONFIRMATION); |
|
| 30 | 1 | if ((bool)$this->model->updateAttributes(['confirmed_at' => time()])) { |
|
| 31 | 1 | $this->model->trigger(UserEvent::EVENT_AFTER_CONFIRMATION); |
|
| 32 | |||
| 33 | 1 | return true; |
|
| 34 | } |
||
| 35 | |||
| 36 | return false; |
||
| 37 | } |
||
| 38 | } |
||
| 39 |