Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php namespace JobApis\JobsToMail\Jobs; |
||
28 | 2 | public function handle(UserRepositoryInterface $users) |
|
29 | { |
||
30 | 2 | if ($users->confirm($this->token)) { |
|
31 | 1 | return new FlashMessage( |
|
32 | 1 | 'alert-success', |
|
33 | 'Your email address has been confirmed. |
||
34 | 1 | Look for new jobs in your inbox tomorrow.' |
|
35 | ); |
||
36 | } |
||
37 | 1 | return new FlashMessage( |
|
38 | 1 | 'alert-danger', |
|
39 | 1 | 'That token is invalid or expired. Please create a new job search.' |
|
40 | ); |
||
41 | } |
||
42 | } |
||
43 |