Completed
Push — master ( feff07...2c2488 )
by ARCANEDEV
05:46
created
resources/views/admin/_includes/sidebar.blade.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         $output[] = '<i class="'.$item->icon().'"></i> <span>'.$item->title().'</span> <i class="fa fa-angle-left pull-right"></i>';
20 20
         $output[] = '</a>';
21 21
         $output[] = '<ul class="treeview-menu">';
22
-        $output[] = $item->children()->transform(function ($child) { return renderSidebarItem($child); })->implode(PHP_EOL);
22
+        $output[] = $item->children()->transform(function($child) { return renderSidebarItem($child); })->implode(PHP_EOL);
23 23
         $output[] = '</ul>';
24 24
     }
25 25
     else {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@
 block discarded – undo
21 21
         $output[] = '<ul class="treeview-menu">';
22 22
         $output[] = $item->children()->transform(function ($child) { return renderSidebarItem($child); })->implode(PHP_EOL);
23 23
         $output[] = '</ul>';
24
-    }
25
-    else {
24
+    } else {
26 25
         $output[] = '<a href="'.$item->url().'">';
27 26
         $output[] = '<i class="'.$item->icon().'"></i> <span>'.$item->title().'</span>';
28 27
         $output[] = '</a>';
Please login to merge, or discard this patch.
src/FoundationServiceProvider.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,8 @@
 block discarded – undo
95 95
     {
96 96
         $providers = $this->config()->get('arcanesoft.foundation.modules.providers', []);
97 97
 
98
-        if (count($providers) > 0)
99
-            $this->registerProviders($providers);
98
+        if (count($providers) > 0) {
99
+                    $this->registerProviders($providers);
100
+        }
100 101
     }
101 102
 }
Please login to merge, or discard this patch.
src/Providers/RouteServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
      */
50 50
     private function mapAdminRoutes()
51 51
     {
52
-        $this->adminGroup(function () {
53
-            $this->name('foundation.')->group(function () {
52
+        $this->adminGroup(function() {
53
+            $this->name('foundation.')->group(function() {
54 54
                 Routes\Admin\DashboardRoute::register();
55 55
                 Routes\Admin\SettingsRoutes::register();
56 56
                 Routes\Admin\SystemRoutes::register();
Please login to merge, or discard this patch.
src/Policies/RouteViewerPolicy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
      | -----------------------------------------------------------------
16 16
      */
17 17
 
18
-    const PERMISSION_LIST      = 'foundation.routeviewer.list';
18
+    const PERMISSION_LIST = 'foundation.routeviewer.list';
19 19
 
20 20
     /* -----------------------------------------------------------------
21 21
      |  Abilities
Please login to merge, or discard this patch.
src/Http/Routes/Admin/SettingsRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function map()
22 22
     {
23
-        $this->prefix('settings')->name('settings.')->group(function () {
23
+        $this->prefix('settings')->name('settings.')->group(function() {
24 24
             $this->get('/', 'SettingsController@index')
25 25
                  ->name('index'); // admin::foundation.settings.index
26 26
         });
Please login to merge, or discard this patch.
src/Http/Routes/Admin/SystemRoutes.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
      */
21 21
     public static function bindings()
22 22
     {
23
-        (new static)->bind('logviewer_log_date', function ($date) {
23
+        (new static)->bind('logviewer_log_date', function($date) {
24 24
             return log_viewer()->get($date);
25 25
         });
26 26
     }
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function map()
32 32
     {
33
-        $this->namespace('System')->prefix('system')->name('system.')->group(function () {
33
+        $this->namespace('System')->prefix('system')->name('system.')->group(function() {
34 34
             $this->registerSystemInformationRoutes();
35 35
             $this->registerLogViewerRoutes();
36 36
             $this->registerRouteViewerRoutes();
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
      */
48 48
     private function registerSystemInformationRoutes()
49 49
     {
50
-        $this->prefix('information')->name('information.')->group(function () {
50
+        $this->prefix('information')->name('information.')->group(function() {
51 51
             $this->get('/', 'InformationController@index')
52
-                 ->name('index');  // admin::foundation.system.information.index
52
+                 ->name('index'); // admin::foundation.system.information.index
53 53
         });
54 54
     }
55 55
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      */
59 59
     private function registerLogViewerRoutes()
60 60
     {
61
-        $this->prefix('log-viewer')->name('log-viewer.')->group(function () {
61
+        $this->prefix('log-viewer')->name('log-viewer.')->group(function() {
62 62
             $this->get('/', 'LogViewerController@index')
63 63
                  ->name('index'); // admin::foundation.system.log-viewer.index
64 64
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 $this->get('/', 'LogViewerController@listLogs')
67 67
                      ->name('list'); // admin::foundation.system.log-viewer.logs.list
68 68
 
69
-                $this->prefix('{logviewer_log_date}')->group(function () {
69
+                $this->prefix('{logviewer_log_date}')->group(function() {
70 70
                     $this->get('/', 'LogViewerController@show')
71 71
                          ->name('show'); // admin::foundation.system.log-viewer.logs.show
72 72
 
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     private function registerRouteViewerRoutes()
94 94
     {
95
-        $this->prefix('routes')->name('routes.')->group(function () {
95
+        $this->prefix('routes')->name('routes.')->group(function() {
96 96
             $this->get('/', 'RoutesController@index')
97 97
                  ->name('index'); // admin::foundation.system.routes.index
98 98
         });
Please login to merge, or discard this patch.
src/Http/Controllers/Admin/System/LogViewerController.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
             return redirect()->route('admin::foundation.system.log-viewer.logs.show', [$log->date]);
184 184
 
185 185
         $levels  = $this->logViewer->levelsNames();
186
-        $entries = $log->entries($level)->filter(function (LogEntry $value) use ($query) {
186
+        $entries = $log->entries($level)->filter(function(LogEntry $value) use ($query) {
187 187
             return Str::contains($value->header, $query);
188 188
         })->paginate($this->perPage);
189 189
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -152,8 +152,9 @@  discard block
 block discarded – undo
152 152
     {
153 153
         $this->authorize(LogViewerPolicy::PERMISSION_SHOW);
154 154
 
155
-        if ($level == 'all')
156
-            return redirect()->route('admin::foundation.system.log-viewer.logs.show', [$log->date]);
155
+        if ($level == 'all') {
156
+                    return redirect()->route('admin::foundation.system.log-viewer.logs.show', [$log->date]);
157
+        }
157 158
 
158 159
         $levels  = $this->logViewer->levelsNames();
159 160
         $entries = $this->logViewer->entries($log->date, $level)->paginate($this->perPage);
@@ -179,8 +180,9 @@  discard block
 block discarded – undo
179 180
      */
180 181
     public function search(Log $log, $level = 'all', Request $request)
181 182
     {
182
-        if (is_null($query = $request->get('query')))
183
-            return redirect()->route('admin::foundation.system.log-viewer.logs.show', [$log->date]);
183
+        if (is_null($query = $request->get('query'))) {
184
+                    return redirect()->route('admin::foundation.system.log-viewer.logs.show', [$log->date]);
185
+        }
184 186
 
185 187
         $levels  = $this->logViewer->levelsNames();
186 188
         $entries = $log->entries($level)->filter(function (LogEntry $value) use ($query) {
Please login to merge, or discard this patch.
src/Seeds/RolesTableSeeder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
                 'name'        => 'LogViewer Manager',
26 26
                 'description' => 'The LogViewer manager role.',
27 27
                 'is_locked'   => true,
28
-            ],[
28
+            ], [
29 29
                 'name'        => 'RouteViewer Manager',
30 30
                 'description' => 'The RouteViewer manager role.',
31 31
                 'is_locked'   => true,
Please login to merge, or discard this patch.
src/ViewComposers/System/FoldersPermissionsComposer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      */
52 52
     private function prepare(array $folders)
53 53
     {
54
-        return collect($folders)->mapWithKeys(function ($folder) {
54
+        return collect($folders)->mapWithKeys(function($folder) {
55 55
             $path = base_path($folder);
56 56
 
57 57
             return [
Please login to merge, or discard this patch.