@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | session()->forget('genealabs-laravel-messenger.title'); |
| 20 | 20 | session()->forget('genealabs-laravel-messenger.type'); |
| 21 | 21 | |
| 22 | - if (! $message) { |
|
| 22 | + if (!$message) { |
|
| 23 | 23 | return; |
| 24 | 24 | } |
| 25 | 25 | |
@@ -46,14 +46,14 @@ discard block |
||
| 46 | 46 | 'genealabs-laravel-messenger.framework' => $framework |
| 47 | 47 | ?: config('genealabs-laravel-messenger.framework'), |
| 48 | 48 | 'genealabs-laravel-messenger.level' => |
| 49 | - in_array($level, ['info', 'success', 'warning', 'danger']) |
|
| 49 | + in_array($level, [ 'info', 'success', 'warning', 'danger' ]) |
|
| 50 | 50 | ? $level |
| 51 | 51 | : 'info', |
| 52 | 52 | 'genealabs-laravel-messenger.message' => $message, |
| 53 | 53 | 'genealabs-laravel-messenger.title' => $title |
| 54 | 54 | ?: '', |
| 55 | 55 | 'genealabs-laravel-messenger.type' => |
| 56 | - in_array($type, ['alert', 'modal']) |
|
| 56 | + in_array($type, [ 'alert', 'modal' ]) |
|
| 57 | 57 | ? $type |
| 58 | 58 | : 'alert', |
| 59 | 59 | ]); |
@@ -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}); ?>"; |