Conditions | 3 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
32 | 1 | public function run() |
|
33 | { |
||
34 | 1 | if ($this->model && !$this->model->getIsConfirmed()) { |
|
35 | 1 | $token = TokenFactory::makeConfirmationToken($this->model->id); |
|
36 | 1 | $this->mailService->setViewParam('token', $token); |
|
37 | |||
38 | 1 | return $this->mailService->run(); |
|
39 | } |
||
40 | |||
41 | 1 | return false; |
|
42 | } |
||
43 | } |
||
44 |