Passed
Pull Request — master (#19)
by
unknown
13:44 queued 08:59
created
src/Console/Commands/Publish.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         if ($this->option('config')) {
15 15
             $this->call('vendor:publish', [
16 16
                 '--provider' => Service::class,
17
-                '--tag' => ['config'],
17
+                '--tag' => [ 'config' ],
18 18
                 '--force' => true,
19 19
             ]);
20 20
         }
Please login to merge, or discard this patch.
src/Providers/Service.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 
12 12
     public function boot()
13 13
     {
14
-        if (! $this->app->routesAreCached()) {
14
+        if (!$this->app->routesAreCached()) {
15 15
             require __DIR__ . '/../../routes/web.php';
16 16
         }
17 17
 
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $this->commands(Publish::class);
32 32
 
33
-        $this->app->singleton('messenger', function () {
33
+        $this->app->singleton('messenger', function() {
34 34
             return new Messenger;
35 35
         });
36 36
         $this->registerBladeDirective('deliver');
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
             throw new Exception("Blade directive '{$alias}' is already registered.");
49 49
         }
50 50
 
51
-        $blade->directive($alias, function ($parameters) use ($formMethod) {
51
+        $blade->directive($alias, function($parameters) use ($formMethod) {
52 52
             $parameters = trim($parameters, "()");
53 53
 
54 54
             return "<?php echo app('messenger')->{$formMethod}({$parameters}); ?>";
Please login to merge, or discard this patch.
src/Message.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,32 +26,32 @@
 block discarded – undo
26 26
 
27 27
     public function getAutoHideAttribute() : bool
28 28
     {
29
-        return ($this->attributes['autoHide'] === true);
29
+        return ($this->attributes[ 'autoHide' ] === true);
30 30
     }
31 31
 
32 32
     public function getFrameworkAttribute() : string
33 33
     {
34
-        return $this->attributes['framework']
34
+        return $this->attributes[ 'framework' ]
35 35
             ?: config('genealabs-laravel-messenger.framework');
36 36
     }
37 37
 
38 38
     public function getMessageAttribute() : string
39 39
     {
40
-        return $this->attributes['message'] ?: '';
40
+        return $this->attributes[ 'message' ] ?: '';
41 41
     }
42 42
 
43 43
     public function getLevelAttribute() : string
44 44
     {
45
-        return $this->attributes['level'] ?: 'info';
45
+        return $this->attributes[ 'level' ] ?: 'info';
46 46
     }
47 47
 
48 48
     public function getTitleAttribute() : string
49 49
     {
50
-        return $this->attributes['title'] ?: '';
50
+        return $this->attributes[ 'title' ] ?: '';
51 51
     }
52 52
 
53 53
     public function getTypeAttribute() : string
54 54
     {
55
-        return $this->attributes['type'] ?: 'alert';
55
+        return $this->attributes[ 'type' ] ?: 'alert';
56 56
     }
57 57
 }
Please login to merge, or discard this patch.
src/Messenger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
         $message = session('genealabs-laravel-messenger.message');
10 10
         session()->forget('genealabs-laravel-messenger.message');
11 11
 
12
-        if (! $message) {
12
+        if (!$message) {
13 13
             return view("genealabs-laravel-messenger::empty");
14 14
         }
15 15
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         ]);
41 41
 
42 42
         if ($text) {
43
-            session(['genealabs-laravel-messenger.message' => $message]);
43
+            session([ 'genealabs-laravel-messenger.message' => $message ]);
44 44
         }
45 45
     }
46 46
 }
Please login to merge, or discard this patch.