Completed
Push — master ( 33e787...10dfaa )
by Mahmoud
03:41
created
app/Port/Email/Abstracts/MailsAbstract.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
81 80
     }
82 81
 
83 82
     /**
84
-     * @param $subject
83
+     * @param string $subject
85 84
      */
86 85
     public function setSubject($subject)
87 86
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.