Passed
Pull Request — master (#14)
by ARCANEDEV
05:47
created
src/Helpers/Sidebar/Manager.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,8 +74,7 @@
 block discarded – undo
74 74
         foreach ($items as $item) {
75 75
             if (is_array($item)) {
76 76
                 $this->items->pushSidebarItem($item);
77
-            }
78
-            elseif (config()->has($item)) {
77
+            } elseif (config()->has($item)) {
79 78
                 $this->loadFromConfig(config()->get($item));
80 79
             }
81 80
         }
Please login to merge, or discard this patch.
src/Helpers/MaintenanceMode.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -125,8 +125,9 @@
 block discarded – undo
125 125
      */
126 126
     protected function getRetryTime($retry)
127 127
     {
128
-        if (is_numeric($retry) && $retry > 0)
129
-            return (int) $retry;
128
+        if (is_numeric($retry) && $retry > 0) {
129
+                    return (int) $retry;
130
+        }
130 131
 
131 132
         return null;
132 133
     }
Please login to merge, or discard this patch.
src/Support/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Support/Http/AdminRouteRegistrar.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,9 +68,9 @@  discard block
 block discarded – undo
68 68
     protected function adminGroup(Closure $callback): void
69 69
     {
70 70
         $this->prefix($this->getAdminPrefix())
71
-             ->middleware($this->getAdminMiddleware())
72
-             ->name($this->getAdminName())
73
-             ->group($this->prepareModuleCallback($callback));
71
+                ->middleware($this->getAdminMiddleware())
72
+                ->name($this->getAdminName())
73
+                ->group($this->prepareModuleCallback($callback));
74 74
     }
75 75
 
76 76
     /**
@@ -82,9 +82,9 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $this->adminGroup(function () use ($callback) {
84 84
             $this->prefix('api')
85
-                 ->name('api.')
86
-                 ->middleware(['ajax'])
87
-                 ->group($callback);
85
+                    ->name('api.')
86
+                    ->middleware(['ajax'])
87
+                    ->group($callback);
88 88
         });
89 89
     }
90 90
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/System/Http/Routes/DependenciesRoutes.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->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');
Please login to merge, or discard this patch.
src/System/Http/Routes/RoutesViewerRoutes.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 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
-                 ->name('index');
30
+                    ->name('index');
31 31
         });
32 32
     }
33 33
 }
Please login to merge, or discard this 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->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');
Please login to merge, or discard this patch.
src/System/Http/Routes/AbilitiesRoutes.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->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');
Please login to merge, or discard this patch.
src/System/Http/Routes/MaintenanceRoutes.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@
 block discarded – undo
27 27
         $this->prefix('maintenance')->name('maintenance.')->group(function () {
28 28
             // admin::system.maintenance.index
29 29
             $this->get('/', [MaintenanceController::class, 'index'])
30
-                 ->name('index');
30
+                    ->name('index');
31 31
 
32 32
             // admin::system.maintenance.start
33 33
             $this->post('start', [MaintenanceController::class, 'start'])
34
-                 ->name('start');
34
+                    ->name('start');
35 35
 
36 36
             // admin::system.maintenance.stop
37 37
             $this->post('stop', [MaintenanceController::class, 'stop'])
38
-                 ->name('stop');
38
+                    ->name('stop');
39 39
         });
40 40
     }
41 41
 }
Please login to merge, or discard this 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->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');
Please login to merge, or discard this patch.
src/System/Http/Routes/LogViewerRoutes.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -27,31 +27,31 @@
 block discarded – undo
27 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
-                 ->name('index');
30
+                    ->name('index');
31 31
 
32 32
             $this->prefix('logs')->name('logs.')->group(function () {
33 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
-                         ->name('show');
36
+                            ->name('show');
37 37
 
38 38
                     // admin::system.log-viewer.logs.download
39 39
                     $this->get('download', [LogViewerController::class, 'download'])
40
-                         ->name('download');
40
+                            ->name('download');
41 41
 
42 42
                     // admin::system.log-viewer.logs.delete
43 43
                     $this->delete('delete', [LogViewerController::class, 'delete'])
44
-                         ->middleware(['ajax'])
45
-                         ->name('delete');
44
+                            ->middleware(['ajax'])
45
+                            ->name('delete');
46 46
 
47 47
                     $this->prefix('{admin_log_level}')->group(function () {
48 48
                         // admin::system.log-viewer.logs.filter
49 49
                         $this->get('/', [LogViewerController::class, 'filter'])
50
-                             ->name('filter');
50
+                                ->name('filter');
51 51
 
52 52
                         // admin::system.log-viewer.logs.search
53 53
                         $this->get('search', [LogViewerController::class, 'search'])
54
-                             ->name('search');
54
+                                ->name('search');
55 55
                     });
56 56
                 });
57 57
             });
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@  discard block
 block discarded – undo
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
 block discarded – undo
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');
Please login to merge, or discard this patch.