Passed
Push — master ( 4c2e75...5843e8 )
by Chubarov
07:03
created
src/Modes/Each.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
      */
14 14
     public function postEmail(SheduleEmail $tasks)
15 15
     {
16
-        Mail::raw($tasks->email->text, function ($message) use ($tasks) {
16
+        Mail::raw($tasks->email->text, function($message) use ($tasks) {
17 17
         $message->subject($tasks->email->theme);
18 18
         $message->from(config('mail.from.address'));
19
-        $message->to($tasks->email->users->map(function($value){ return $value->email;})->toArray());
19
+        $message->to($tasks->email->users->map(function($value) { return $value->email; })->toArray());
20 20
     });
21 21
 
22 22
         // if to reached the sender
Please login to merge, or discard this patch.
src/Parser.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 {
14 14
     public static function parse() : void
15 15
     {
16
-         SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get()
16
+            SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get()
17 17
                     ->each(function ($value) {
18 18
                         $value->mode->owner->postEmail($value);
19 19
                     });
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
 {
14 14
     public static function parse() : void
15 15
     {
16
-         SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [Carbon::now(), 0])->get()
17
-                    ->each(function ($value) {
16
+         SheduleEmail::whereRaw('CAST(date AS Datetime) <= ? AND status_action = ?', [ Carbon::now(), 0 ])->get()
17
+                    ->each(function($value) {
18 18
                         $value->mode->owner->postEmail($value);
19 19
                     });
20 20
     }
Please login to merge, or discard this patch.
src/Models/ModePostEmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 
8 8
 class ModePostEmail extends Model
9 9
 {
10
-    protected $fillable = ['name', 'description', 'owner'];
10
+    protected $fillable = [ 'name', 'description', 'owner' ];
11 11
 
12 12
     public function getOwnerAttribute(string $value) : Mode
13 13
     {
Please login to merge, or discard this patch.
src/Console/InstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      */
28 28
     public function handle() : void
29 29
     {
30
-        $this->call('vendor:publish', ['--tag' => 'postman-migration']);
30
+        $this->call('vendor:publish', [ '--tag' => 'postman-migration' ]);
31 31
         $this->call('migrate');
32 32
         $this->call('postman:seed');
33 33
         $this->call('postman:assets');
Please login to merge, or discard this patch.
src/SheduleEmailServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
         ]);
34 34
         $this->loadViews();
35 35
 
36
-        Request::macro('datePostman', function (Request $request) {
37
-            $request-> date =  Carbon::parse($request->date)->toDateTimeString();
36
+        Request::macro('datePostman', function(Request $request) {
37
+            $request-> date = Carbon::parse($request->date)->toDateTimeString();
38 38
         });
39 39
         $this->mergeConfigFrom(__DIR__.'/../config/postman.php', 'postman');
40 40
         $this->publishesAll();
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
     public function register()
44 44
     {
45
-        if (! defined('POSTMAN_PATH')) {
45
+        if (!defined('POSTMAN_PATH')) {
46 46
             define('POSTMAN_PATH', realpath(__DIR__.'/../'));
47 47
         }
48 48
     }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             'prefix' => 'postman',
84 84
             'namespace' => 'agoalofalife\postman\Http\Controllers',
85 85
             'middleware' => 'web',
86
-        ], function () {
86
+        ], function() {
87 87
             $this->loadRoutesFrom(__DIR__.'/../routes/web.php');
88 88
         });
89 89
     }
Please login to merge, or discard this patch.
config/postman.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 return [
3 3
     'switcher' => true,
4
-     /*
4
+        /*
5 5
      |--------------------------------------------------------------------------
6 6
      | List modes classes
7 7
      |--------------------------------------------------------------------------
@@ -17,9 +17,9 @@  discard block
 block discarded – undo
17 17
      |--------------------------------------------------------------------------
18 18
      | Set middleware
19 19
      */
20
-     'middleware' => '',
20
+        'middleware' => '',
21 21
 
22
-      /*
22
+        /*
23 23
       |--------------------------------------------------------------------------
24 24
       | Sizes table
25 25
       |--------------------------------------------------------------------------
Please login to merge, or discard this patch.