| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 3 | public function run($request) |
|
| 29 | { |
||
| 30 | 3 | $currentUser = Security::getCurrentUser(); |
|
| 31 | /** @var PartialSubmissionJob $job */ |
||
| 32 | 3 | $job = new PartialSubmissionJob(); |
|
| 33 | 3 | $job->setup(); |
|
| 34 | 3 | if ($currentUser && Email::is_valid_address($currentUser->Email)) { |
|
| 35 | 3 | $job->addAddress($currentUser->Email); |
|
| 36 | } |
||
| 37 | 3 | $job->process(); |
|
| 38 | 3 | } |
|
| 39 | } |
||
| 40 |