Passed
Pull Request — master (#14)
by ARCANEDEV
19:38
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/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/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/SystemRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      */
25 25
     public function map(): void
26 26
     {
27
-        $this->adminGroup(function () {
27
+        $this->adminGroup(function() {
28 28
             // admin::system.index
29 29
             $this->get('/', [SystemController::class, 'index'])
30 30
                  ->name('index');
Please login to merge, or discard this patch.
src/System/Http/Controllers/LogViewerController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@
 block discarded – undo
103 103
         $log     = $this->getLogOrFail($date);
104 104
         $levels  = $this->logViewer->levelsNames();
105 105
         $entries = $log->entries($level)
106
-            ->unless(is_null($query = $request->get('query')), function (LogEntryCollection $entries) use ($query) {
107
-                return $entries->filter(function (LogEntry $value) use ($query) {
106
+            ->unless(is_null($query = $request->get('query')), function(LogEntryCollection $entries) use ($query) {
107
+                return $entries->filter(function(LogEntry $value) use ($query) {
108 108
                     return Str::contains($value->header, $query);
109 109
                 });
110 110
             })
Please login to merge, or discard this patch.
src/System/Http/Controllers/AbilitiesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
      */
79 79
     protected function getAbilities()
80 80
     {
81
-        return $this->manager->abilities()->map(function (Ability $ability) {
81
+        return $this->manager->abilities()->map(function(Ability $ability) {
82 82
             return $ability->setMeta('is_registered', Gate::has($ability->key()));
83 83
         });
84 84
     }
Please login to merge, or discard this patch.
src/Core/CoreServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     private function extendMetricsAuthorization(): void
65 65
     {
66
-        Metric::macro('authorizedToSee', function (Request $request): bool {
66
+        Metric::macro('authorizedToSee', function(Request $request): bool {
67 67
             return method_exists($this, 'authorize')
68 68
                 ? $this->authorize($request) === true
69 69
                 : true;
Please login to merge, or discard this patch.