Completed
Push — master ( feff07...2c2488 )
by ARCANEDEV
05:46
created
resources/views/admin/_includes/sidebar.blade.php 1 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/Http/Routes/Admin/DashboardRoute.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
     public function map()
22 22
     {
23 23
         $this->get('/', 'DashboardController@index')
24
-             ->name('home'); // admin::foundation.home
24
+                ->name('home'); // admin::foundation.home
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
src/Http/Routes/Admin/SettingsRoutes.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         $this->prefix('settings')->name('settings.')->group(function () {
24 24
             $this->get('/', 'SettingsController@index')
25
-                 ->name('index'); // admin::foundation.settings.index
25
+                    ->name('index'); // admin::foundation.settings.index
26 26
         });
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Http/Routes/Admin/SystemRoutes.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
     {
50 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
 
@@ -60,28 +60,28 @@  discard block
 block discarded – undo
60 60
     {
61 61
         $this->prefix('log-viewer')->name('log-viewer.')->group(function () {
62 62
             $this->get('/', 'LogViewerController@index')
63
-                 ->name('index'); // admin::foundation.system.log-viewer.index
63
+                    ->name('index'); // admin::foundation.system.log-viewer.index
64 64
 
65 65
             $this->prefix('logs')->name('logs.')->group(function() {
66 66
                 $this->get('/', 'LogViewerController@listLogs')
67
-                     ->name('list'); // admin::foundation.system.log-viewer.logs.list
67
+                        ->name('list'); // admin::foundation.system.log-viewer.logs.list
68 68
 
69 69
                 $this->prefix('{logviewer_log_date}')->group(function () {
70 70
                     $this->get('/', 'LogViewerController@show')
71
-                         ->name('show'); // admin::foundation.system.log-viewer.logs.show
71
+                            ->name('show'); // admin::foundation.system.log-viewer.logs.show
72 72
 
73 73
                     $this->get('download', 'LogViewerController@download')
74
-                         ->name('download'); // admin::foundation.system.log-viewer.logs.download
74
+                            ->name('download'); // admin::foundation.system.log-viewer.logs.download
75 75
 
76 76
                     $this->get('{level}', 'LogViewerController@showByLevel')
77
-                         ->name('filter'); // admin::foundation.system.log-viewer.logs.filter
77
+                            ->name('filter'); // admin::foundation.system.log-viewer.logs.filter
78 78
 
79 79
                     $this->get('{level}/search', 'LogViewerController@search')
80
-                         ->name('search'); // admin::foundation.system.log-viewer.logs.search
80
+                            ->name('search'); // admin::foundation.system.log-viewer.logs.search
81 81
 
82 82
                     $this->delete('delete', 'LogViewerController@delete')
83
-                         ->middleware('ajax')
84
-                         ->name('delete'); // admin::foundation.system.log-viewer.logs.delete
83
+                            ->middleware('ajax')
84
+                            ->name('delete'); // admin::foundation.system.log-viewer.logs.delete
85 85
                 });
86 86
             });
87 87
         });
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $this->prefix('routes')->name('routes.')->group(function () {
96 96
             $this->get('/', 'RoutesController@index')
97
-                 ->name('index'); // admin::foundation.system.routes.index
97
+                    ->name('index'); // admin::foundation.system.routes.index
98 98
         });
99 99
     }
100 100
 }
Please login to merge, or discard this patch.
src/Http/Controllers/Admin/System/LogViewerController.php 1 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/ViewComposers/System/ApplicationInfoComposer.php 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -102,17 +102,13 @@
 block discarded – undo
102 102
 
103 103
         if (($bytes >= 0) && ($bytes < $kb)) {
104 104
             return $bytes . ' B';
105
-        }
106
-        elseif (($bytes >= $kb) && ($bytes < $mb)) {
105
+        } elseif (($bytes >= $kb) && ($bytes < $mb)) {
107 106
             return ceil($bytes / $kb).' KB';
108
-        }
109
-        elseif (($bytes >= $mb) && ($bytes < $gb)) {
107
+        } elseif (($bytes >= $mb) && ($bytes < $gb)) {
110 108
             return ceil($bytes / $mb).' MB';
111
-        }
112
-        elseif (($bytes >= $gb) && ($bytes < $tb)) {
109
+        } elseif (($bytes >= $gb) && ($bytes < $tb)) {
113 110
             return ceil($bytes / $gb).' GB';
114
-        }
115
-        elseif ($bytes >= $tb) {
111
+        } elseif ($bytes >= $tb) {
116 112
             return ceil($bytes / $tb).' TB';
117 113
         }
118 114
 
Please login to merge, or discard this patch.