@@ -42,7 +42,6 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * MailsAbstract constructor. |
| 44 | 44 | * |
| 45 | - * @param \Illuminate\Mail\Mailer $mail |
|
| 46 | 45 | */ |
| 47 | 46 | public function __construct() |
| 48 | 47 | { |
@@ -81,7 +80,7 @@ discard block |
||
| 81 | 80 | } |
| 82 | 81 | |
| 83 | 82 | /** |
| 84 | - * @param $subject |
|
| 83 | + * @param string $subject |
|
| 85 | 84 | */ |
| 86 | 85 | public function setSubject($subject) |
| 87 | 86 | { |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | */ |
| 62 | 62 | public function send($data = []) |
| 63 | 63 | { |
| 64 | - if(!$this->fromEmail || !$this->toEmail){ |
|
| 64 | + if (!$this->fromEmail || !$this->toEmail) { |
|
| 65 | 65 | throw new EmailIsMissedException(); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | // check if sending emails is enabled and if this is not running a testing environment |
| 71 | 71 | if (Config::get('mail.enabled')) { |
| 72 | 72 | |
| 73 | - Mail::queue('EmailTemplates.' . $this->template, $data, function ($m) { |
|
| 73 | + Mail::queue('EmailTemplates.' . $this->template, $data, function($m) { |
|
| 74 | 74 | $m->from($this->fromEmail, $this->fromName); |
| 75 | 75 | $m->to($this->toEmail, $this->toName) |
| 76 | 76 | ->subject($this->subject); |