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/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.