Passed
Push — master ( e53101...fb16c6 )
by Mike
02:26
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/Messenger.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
         $autoHide = (bool) $autoHide;
46 46
         $framework = $framework
47 47
             ?: config('genealabs-laravel-messenger.framework');
48
-        $level = in_array($level, ['info', 'success', 'warning', 'danger'])
48
+        $level = in_array($level, [ 'info', 'success', 'warning', 'danger' ])
49 49
             ? $level
50 50
             : 'info';
51 51
         $title = $title ?: '';
52
-        $type = in_array($type, ['alert', 'modal'])
52
+        $type = in_array($type, [ 'alert', 'modal' ])
53 53
             ? $type
54 54
             : 'alert';
55 55
 
Please login to merge, or discard this patch.