Passed
Push — master ( c49d39...b41a51 )
by Chubarov
16:29
created
src/Modes/Each.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,10 +15,10 @@
 block discarded – undo
15 15
      */
16 16
     public function postEmail(SheduleEmail $tasks)
17 17
     {
18
-        Mail::send('postman::email', ['html' => $tasks->email->text], function($message)  use ($tasks) {
18
+        Mail::send('postman::email', [ 'html' => $tasks->email->text ], function($message)  use ($tasks) {
19 19
             $message->subject($tasks->email->theme);
20 20
             $message->from(config('mail.from.address'));
21
-            $message->to($tasks->email->users->map(function($value){ return $value->email;})->toArray());
21
+            $message->to($tasks->email->users->map(function($value) { return $value->email; })->toArray());
22 22
         });
23 23
 
24 24
         // if to reached the sender
Please login to merge, or discard this patch.
src/Modes/OneToAll.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
             $tasks->email->users->each(function ($value) use ($message) {
27 27
                 $message->bcc($value->email);
28 28
             });
29
-         });
29
+            });
30 30
 
31 31
         // if to reached the sender
32 32
         if (empty(Mail::failures())) {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
      */
20 20
     public function postEmail(SheduleEmail $tasks) : void
21 21
     {
22
-        Mail::send('postman::email', ['html' => $tasks->email->text], function($message)  use ($tasks) {
22
+        Mail::send('postman::email', [ 'html' => $tasks->email->text ], function($message)  use ($tasks) {
23 23
             $message->subject($tasks->email->theme);
24 24
             $message->from(config('mail.from.address'));
25 25
             $message->to(config('mail.from.address'));
26
-            $tasks->email->users->each(function ($value) use ($message) {
26
+            $tasks->email->users->each(function($value) use ($message) {
27 27
                 $message->bcc($value->email);
28 28
             });
29 29
          });
Please login to merge, or discard this patch.