@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | static::bindRouteClasses($routes); |
47 | 47 | |
48 | - $this->routes(function () use ($routes) { |
|
48 | + $this->routes(function() use ($routes) { |
|
49 | 49 | static::mapRouteClasses($routes); |
50 | 50 | }); |
51 | 51 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | protected function adminApiGroup(Closure $callback): void |
82 | 82 | { |
83 | - $this->adminGroup(function () use ($callback) { |
|
83 | + $this->adminGroup(function() use ($callback) { |
|
84 | 84 | $this->prefix('api') |
85 | 85 | ->name('api.') |
86 | 86 | ->middleware(['ajax']) |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | private function prepareModuleCallback(Closure $callback): Closure |
99 | 99 | { |
100 | 100 | return method_exists($this, 'moduleGroup') |
101 | - ? function () use ($callback) { $this->moduleGroup($callback); } |
|
101 | + ? function() use ($callback) { $this->moduleGroup($callback); } |
|
102 | 102 | : $callback; |
103 | 103 | } |
104 | 104 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function map(): void |
26 | 26 | { |
27 | - $this->prefix('dependencies')->name('dependencies.')->group(function () { |
|
27 | + $this->prefix('dependencies')->name('dependencies.')->group(function() { |
|
28 | 28 | // admin::system.dependencies.index |
29 | 29 | $this->get('/', [DependenciesController::class, 'index']) |
30 | 30 | ->name('index'); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function map(): void |
26 | 26 | { |
27 | - $this->prefix('routes-viewer')->name('routes-viewer.')->group(function () { |
|
27 | + $this->prefix('routes-viewer')->name('routes-viewer.')->group(function() { |
|
28 | 28 | // admin::system.routes-viewer.index |
29 | 29 | $this->get('/', [RoutesViewerController::class, 'index']) |
30 | 30 | ->name('index'); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function map(): void |
26 | 26 | { |
27 | - $this->prefix('abilities')->name('abilities.')->group(function () { |
|
27 | + $this->prefix('abilities')->name('abilities.')->group(function() { |
|
28 | 28 | // admin::system.abilities.index |
29 | 29 | $this->get('/', [AbilitiesController::class, 'index']) |
30 | 30 | ->name('index'); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function map(): void |
26 | 26 | { |
27 | - $this->prefix('maintenance')->name('maintenance.')->group(function () { |
|
27 | + $this->prefix('maintenance')->name('maintenance.')->group(function() { |
|
28 | 28 | // admin::system.maintenance.index |
29 | 29 | $this->get('/', [MaintenanceController::class, 'index']) |
30 | 30 | ->name('index'); |
@@ -24,13 +24,13 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function map(): void |
26 | 26 | { |
27 | - $this->prefix('log-viewer')->name('log-viewer.')->group(function () { |
|
27 | + $this->prefix('log-viewer')->name('log-viewer.')->group(function() { |
|
28 | 28 | // admin::system.log-viewer.index |
29 | 29 | $this->get('/', [LogViewerController::class, 'index']) |
30 | 30 | ->name('index'); |
31 | 31 | |
32 | - $this->prefix('logs')->name('logs.')->group(function () { |
|
33 | - $this->prefix('{admin_log_file_date}')->group(function () { |
|
32 | + $this->prefix('logs')->name('logs.')->group(function() { |
|
33 | + $this->prefix('{admin_log_file_date}')->group(function() { |
|
34 | 34 | // admin::system.log-viewer.logs.show |
35 | 35 | $this->get('/', [LogViewerController::class, 'showLog']) |
36 | 36 | ->name('show'); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | ->middleware(['ajax']) |
45 | 45 | ->name('delete'); |
46 | 46 | |
47 | - $this->prefix('{admin_log_level}')->group(function () { |
|
47 | + $this->prefix('{admin_log_level}')->group(function() { |
|
48 | 48 | // admin::system.log-viewer.logs.filter |
49 | 49 | $this->get('/', [LogViewerController::class, 'filter']) |
50 | 50 | ->name('filter'); |
@@ -84,8 +84,8 @@ discard block |
||
84 | 84 | private function getResults(PackageManifest $manifest): LengthAwarePaginator |
85 | 85 | { |
86 | 86 | $packages = $manifest->installed() |
87 | - ->unless(empty($this->search), function (Collection $items) { |
|
88 | - return $items->filter(function ($package) { |
|
87 | + ->unless(empty($this->search), function(Collection $items) { |
|
88 | + return $items->filter(function($package) { |
|
89 | 89 | $needles = explode(' ', Str::lower($this->search)); |
90 | 90 | $haystacks = [ |
91 | 91 | $package['name'], |
@@ -99,13 +99,13 @@ discard block |
||
99 | 99 | return false; |
100 | 100 | }); |
101 | 101 | }) |
102 | - ->sortBy(function ($package) { |
|
102 | + ->sortBy(function($package) { |
|
103 | 103 | if ($this->sortField === 'name') |
104 | 104 | return $package['name']; |
105 | 105 | |
106 | 106 | return $package['name']; |
107 | 107 | }, SORT_REGULAR, ! $this->sortAsc) |
108 | - ->transform(function ($package) { |
|
108 | + ->transform(function($package) { |
|
109 | 109 | return $package + [ |
110 | 110 | 'key' => str_replace('/', '+', $package['name']), |
111 | 111 | ]; |
@@ -88,11 +88,11 @@ discard block |
||
88 | 88 | private function getResults(PolicyManager $manager, Gate $gate): LengthAwarePaginator |
89 | 89 | { |
90 | 90 | $abilities = $manager->abilities() |
91 | - ->map(function (Ability $ability) use ($gate) { |
|
91 | + ->map(function(Ability $ability) use ($gate) { |
|
92 | 92 | return $ability->setMeta('is_registered', $gate->has($ability->key())); |
93 | 93 | }) |
94 | - ->unless(empty($this->search), function (Collection $items) { |
|
95 | - return $items->filter(function (Ability $ability) { |
|
94 | + ->unless(empty($this->search), function(Collection $items) { |
|
95 | + return $items->filter(function(Ability $ability) { |
|
96 | 96 | $needles = explode(' ', Str::lower($this->search)); |
97 | 97 | $haystacks = [ |
98 | 98 | $ability->key(), |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | return false; |
109 | 109 | }); |
110 | 110 | }) |
111 | - ->sortBy(function (Ability $ability) { |
|
111 | + ->sortBy(function(Ability $ability) { |
|
112 | 112 | if ($this->sortField === 'name') |
113 | 113 | return $ability->meta('name', ''); |
114 | 114 |