@@ -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 | } |
@@ -11,7 +11,7 @@ discard block |
||
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 |
||
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 |
||
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}); ?>"; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | session()->forget('genealabs-laravel-messenger.title'); |
22 | 22 | session()->forget('genealabs-laravel-messenger.type'); |
23 | 23 | |
24 | - if (! $framework || ! $type) { |
|
24 | + if (!$framework || !$type) { |
|
25 | 25 | return view("genealabs-laravel-messenger::empty"); |
26 | 26 | } |
27 | 27 | |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | $level = $this->getValueOrDefault( |
50 | 50 | $level, |
51 | 51 | 'info', |
52 | - ['info', 'success', 'warning', 'danger'] |
|
52 | + [ 'info', 'success', 'warning', 'danger' ] |
|
53 | 53 | ); |
54 | - $type = $this->getValueOrDefault($type, 'alert', ['alert', 'modal']); |
|
54 | + $type = $this->getValueOrDefault($type, 'alert', [ 'alert', 'modal' ]); |
|
55 | 55 | |
56 | 56 | session([ |
57 | 57 | 'genealabs-laravel-messenger.autoHide' => $autoHide, |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | ]); |
64 | 64 | } |
65 | 65 | |
66 | - protected function getValueOrDefault($value, $default, array $haystack = []) |
|
66 | + protected function getValueOrDefault($value, $default, array $haystack = [ ]) |
|
67 | 67 | { |
68 | 68 | if (count($haystack)) { |
69 | 69 | return in_array($value, $haystack) ? $value : $default; |