@@ -14,7 +14,7 @@ |
||
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 | } |
@@ -26,32 +26,32 @@ |
||
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 | } |
@@ -9,7 +9,7 @@ discard block |
||
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 |
||
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 | } |
@@ -15,7 +15,7 @@ discard block |
||
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 |
||
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 |
||
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}); ?>"; |