| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 38 | static private function sendEmail($email, $error) |
||
| 39 | { |
||
| 40 | \Mail::queue('emails.optimise.error', ['error' => $error], function ($message) use ($email) { |
||
| 41 | $message->from(config('mail.from.address'), config('mail.from.name')); |
||
| 42 | $message->to($email)->subject('Problems during optimisation'); |
||
| 43 | }); |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
Adding a
@returnannotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.