Test Failed
Push — master ( 65fd5f...3b2076 )
by Mike
03:58
created
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.
src/Providers/Service.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
     public function boot(): void
17 17
     {
18
-        if (! $this->app->routesAreCached()) {
18
+        if (!$this->app->routesAreCached()) {
19 19
             require __DIR__ . '/../../routes/web.php';
20 20
         }
21 21
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     {
39 39
         $this->commands(Publish::class);
40 40
 
41
-        $this->app->singleton('messenger', function () {
41
+        $this->app->singleton('messenger', function() {
42 42
             return new Messenger;
43 43
         });
44 44
         $this->registerBladeDirective('deliver');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             throw new Exception("Blade directive '{$alias}' is already registered.");
57 57
         }
58 58
 
59
-        $blade->directive($alias, function ($parameters) use ($formMethod) {
59
+        $blade->directive($alias, function($parameters) use ($formMethod) {
60 60
             $parameters = trim($parameters, "()");
61 61
 
62 62
             return "<?php echo app('messenger')->{$formMethod}({$parameters}); ?>";
Please login to merge, or discard this patch.
src/Console/Commands/Publish.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 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
         }
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
         if ($this->option('views')) {
23 23
             $this->call('vendor:publish', [
24 24
                 '--provider' => Service::class,
25
-                '--tag' => ['views'],
25
+                '--tag' => [ 'views' ],
26 26
                 '--force' => true,
27 27
             ]);
28 28
         }
Please login to merge, or discard this patch.
src/Message.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
 
34 34
     public function getIdAttribute(): string
35 35
     {
36
-         $this->attributes["id"] = $this->attributes["id"]
37
-             ?? Str::random(16);
36
+            $this->attributes["id"] = $this->attributes["id"]
37
+                ?? Str::random(16);
38 38
 
39 39
         return $this->attributes["id"];
40 40
     }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -33,40 +33,40 @@
 block discarded – undo
33 33
 
34 34
     public function getIdAttribute(): string
35 35
     {
36
-         $this->attributes["id"] = $this->attributes["id"]
36
+         $this->attributes[ "id" ] = $this->attributes[ "id" ]
37 37
              ?? Str::random(16);
38 38
 
39
-        return $this->attributes["id"];
39
+        return $this->attributes[ "id" ];
40 40
     }
41 41
 
42 42
     public function getAutoHideAttribute(): bool
43 43
     {
44
-        return ($this->attributes['autoHide'] === true);
44
+        return ($this->attributes[ 'autoHide' ] === true);
45 45
     }
46 46
 
47 47
     public function getFrameworkAttribute(): string
48 48
     {
49
-        return $this->attributes['framework']
49
+        return $this->attributes[ 'framework' ]
50 50
             ?: config('genealabs-laravel-messenger.framework');
51 51
     }
52 52
 
53 53
     public function getMessageAttribute(): string
54 54
     {
55
-        return $this->attributes['message'] ?: '';
55
+        return $this->attributes[ 'message' ] ?: '';
56 56
     }
57 57
 
58 58
     public function getLevelAttribute(): string
59 59
     {
60
-        return $this->attributes['level'] ?: 'info';
60
+        return $this->attributes[ 'level' ] ?: 'info';
61 61
     }
62 62
 
63 63
     public function getTitleAttribute(): string
64 64
     {
65
-        return $this->attributes['title'] ?: '';
65
+        return $this->attributes[ 'title' ] ?: '';
66 66
     }
67 67
 
68 68
     public function getTypeAttribute(): string
69 69
     {
70
-        return $this->attributes['type'] ?: 'alert';
70
+        return $this->attributes[ 'type' ] ?: 'alert';
71 71
     }
72 72
 }
Please login to merge, or discard this patch.