Passed
Pull Request — master (#14)
by ARCANEDEV
06:41
created
src/Helpers/UI/Actions/LinkAction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 
41 41
         return static::make()->href($url)->class($action['class'])
42 42
             ->html($withText ? $icon.' '.$text : $icon)
43
-            ->unless($withText, function (LinkAction $link) use ($text) {
43
+            ->unless($withText, function(LinkAction $link) use ($text) {
44 44
                 return $link->tooltip($text);
45 45
             });
46 46
     }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function setDisabled(bool $disabled)
76 76
     {
77
-        return $this->if($disabled, function (LinkAction $link) {
77
+        return $this->if($disabled, function(LinkAction $link) {
78 78
             return $link->href('#')
79 79
                 ->class('btn btn-sm btn-outline-secondary disabled');
80 80
         });
Please login to merge, or discard this patch.
src/Helpers/UI/Actions/ButtonAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 
40 40
         return static::make()->class($action['class'])
41 41
             ->html($withText ? $icon.' '.$text : $icon)
42
-            ->unless($withText, function (ButtonAction $link) use ($text) {
42
+            ->unless($withText, function(ButtonAction $link) use ($text) {
43 43
                 return $link->tooltip($text);
44 44
             });
45 45
     }
Please login to merge, or discard this patch.
src/Helpers/Sidebar/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     public function setSelected($name): Collection
54 54
     {
55
-        return $this->transform(function (Item $item) use ($name) {
55
+        return $this->transform(function(Item $item) use ($name) {
56 56
             return $item->setSelected($name);
57 57
         });
58 58
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     public function hasAnySelected(): bool
71 71
     {
72
-        return $this->filter(function (Item $item) {
72
+        return $this->filter(function(Item $item) {
73 73
             return $item->isActive();
74 74
         })->isNotEmpty();
75 75
     }
Please login to merge, or discard this patch.
src/Helpers/Sidebar/Item.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function icon($classes = '') : HtmlString
147 147
     {
148 148
         $html = $this->icon
149
-            ? '<i class="' . $this->icon . ' ' . $classes . '"></i>'
149
+            ? '<i class="'.$this->icon.' '.$classes.'"></i>'
150 150
             : '';
151 151
 
152 152
         return new HtmlString($html);
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
             if ($user->can($permission))
236 236
                 return true;
237 237
 
238
-        return $this->children->filter(function (Item $item) use ($user) {
238
+        return $this->children->filter(function(Item $item) use ($user) {
239 239
             return $item->canSee($user);
240 240
         })->isNotEmpty();
241 241
     }
Please login to merge, or discard this patch.
src/Support/Providers/Concerns/HasConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     protected function publishMultipleConfig(): void
97 97
     {
98 98
         $files = Collection::make($this->configFilesPaths())
99
-            ->mapWithKeys(function ($file) {
99
+            ->mapWithKeys(function($file) {
100 100
                 return [$file => config_path($this->vendor.DS.$this->packageName().DS.basename($file))];
101 101
             })
102 102
             ->toArray();
Please login to merge, or discard this patch.
src/Support/Http/Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
 
161 161
         return tap(
162 162
             view()->make($name, $data, array_merge($this->viewData, $mergeData)),
163
-            function ($view) {
163
+            function($view) {
164 164
                 $this->postRenderingView($view);
165 165
             }
166 166
         );
Please login to merge, or discard this patch.
src/Support/Http/AdminRouteRegistrar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     private function prepareModuleCallback(Closure $callback): Closure
83 83
     {
84 84
         return method_exists($this, 'moduleGroup')
85
-            ? function () use ($callback) { $this->moduleGroup($callback); }
85
+            ? function() use ($callback) { $this->moduleGroup($callback); }
86 86
             : $callback;
87 87
     }
88 88
 }
89 89
\ No newline at end of file
Please login to merge, or discard this patch.
src/System/SystemServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             Providers\ViewServiceProvider::class,
32 32
         ]);
33 33
 
34
-        $this->app->booting(function (Application $app) {
34
+        $this->app->booting(function(Application $app) {
35 35
             /** @var  \Illuminate\Contracts\Config\Repository  $config */
36 36
             $config = $app['config'];
37 37
 
Please login to merge, or discard this patch.
src/System/Http/Routes/AbilitiesRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@
 block discarded – undo
24 24
      */
25 25
     public function map(): void
26 26
     {
27
-        $this->adminGroup(function () {
28
-            $this->prefix('abilities')->name('abilities.')->group(function () {
27
+        $this->adminGroup(function() {
28
+            $this->prefix('abilities')->name('abilities.')->group(function() {
29 29
                 // admin::system.abilities.index
30 30
                 $this->get('/', [AbilitiesController::class, 'index'])
31 31
                      ->name('index');
Please login to merge, or discard this patch.