Passed
Pull Request — master (#14)
by ARCANEDEV
06:41
created
src/System/Http/Routes/LogViewerRoutes.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -24,18 +24,18 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function map(): void
26 26
     {
27
-        $this->adminGroup(function () {
28
-            $this->prefix('log-viewer')->name('log-viewer.')->group(function () {
27
+        $this->adminGroup(function() {
28
+            $this->prefix('log-viewer')->name('log-viewer.')->group(function() {
29 29
                 // admin::system.log-viewer.index
30 30
                 $this->get('/', [LogViewerController::class, 'index'])
31 31
                      ->name('index');
32 32
 
33
-                $this->prefix('logs')->name('logs.')->group(function () {
33
+                $this->prefix('logs')->name('logs.')->group(function() {
34 34
                     // admin::system.log-viewer.logs.index
35 35
                     $this->get('/', [LogViewerController::class, 'logs'])
36 36
                          ->name('index');
37 37
 
38
-                    $this->prefix('{admin_log_file_date}')->group(function () {
38
+                    $this->prefix('{admin_log_file_date}')->group(function() {
39 39
                         // admin::system.log-viewer.logs.show
40 40
                         $this->get('/', [LogViewerController::class, 'showLog'])
41 41
                              ->name('show');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                              ->middleware(['ajax'])
50 50
                              ->name('delete');
51 51
 
52
-                        $this->prefix('{admin_log_level}')->group(function () {
52
+                        $this->prefix('{admin_log_level}')->group(function() {
53 53
                             // admin::system.log-viewer.logs.filter
54 54
                             $this->get('/', [LogViewerController::class, 'filter'])
55 55
                                  ->name('filter');
Please login to merge, or discard this patch.
src/System/Http/Routes/RoutesViewer.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('routes-viewer')->name('routes-viewer.')->group(function () {
27
+        $this->adminGroup(function() {
28
+            $this->prefix('routes-viewer')->name('routes-viewer.')->group(function() {
29 29
                 // admin::system.routes-viewer.index
30 30
                 $this->get('/', [RoutesViewerController::class, 'index'])
31 31
                      ->name('index');
Please login to merge, or discard this patch.
src/System/Http/Routes/MaintenanceRoutes.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('maintenance')->name('maintenance.')->group(function () {
27
+        $this->adminGroup(function() {
28
+            $this->prefix('maintenance')->name('maintenance.')->group(function() {
29 29
                 // admin::system.maintenance.index
30 30
                 $this->get('/', [MaintenanceController::class, 'index'])
31 31
                      ->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/System/ViewComposers/FoldersPermissionsComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     protected static function getFoldersPermissions(array $folders): array
70 70
     {
71
-        return array_map(function ($folder) {
71
+        return array_map(function($folder) {
72 72
             $path = base_path($folder);
73 73
 
74 74
             return [
Please login to merge, or discard this patch.
src/System/ViewComposers/RequiredPhpExtensionsComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      */
69 69
     protected static function getRequiredExtensions(array $extensions): array
70 70
     {
71
-        return array_map(function ($extension) {
71
+        return array_map(function($extension) {
72 72
             return extension_loaded($extension);
73 73
         }, array_combine($extensions, $extensions));
74 74
     }
Please login to merge, or discard this patch.
src/Core/Providers/AuthServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function boot(): void
42 42
     {
43
-        Gate::after(function ($user, string $ability) {
43
+        Gate::after(function($user, string $ability) {
44 44
             /** @var  \App\Models\User  $user */
45 45
             return $user->isAdmin()
46 46
                 || $user->may($ability);
Please login to merge, or discard this patch.
src/Core/Http/Routes/MetricsRoutes.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('metrics')->name('foundation.metrics.')->group(function () {
27
+        $this->adminGroup(function() {
28
+            $this->prefix('metrics')->name('foundation.metrics.')->group(function() {
29 29
                 // api-admin::foundation.metrics.process
30 30
                 $this->get('process', [MetricsController::class, 'process'])
31 31
                      ->middleware(['ajax'])
Please login to merge, or discard this patch.