Completed
Pull Request — develop (#28)
by Neil
07:49
created
app/Api/Controllers/APIController.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@  discard block
 block discarded – undo
11 11
 class ApiController extends Controller
12 12
 {
13 13
     /**
14
-    * Get info about the install
15
-    */
14
+     * Get info about the install
15
+     */
16 16
     public function get_info()
17 17
     {
18 18
         $versions['git'] = `git rev-parse --short HEAD`;
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 
29 29
     /**
30 30
      * Get statistics about the install
31
-    **/
31
+     **/
32 32
     public function get_stats()
33 33
     {
34 34
         $stats['devices']    = DB::select('SELECT COUNT(device_id) AS `total` FROM `devices`')[0]->total;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $stats['devices']    = DB::select('SELECT COUNT(device_id) AS `total` FROM `devices`')[0]->total;
35 35
         $stats['ports']      = DB::select('SELECT COUNT(port_id) AS `total` FROM `ports`')[0]->total;
36 36
         $stats['syslog']     = DB::select('SELECT COUNT(seq) AS `total` FROM `syslog`')[0]->total;
37
-        $stats['eventlog']     = DB::select('SELECT COUNT(event_id) AS `total` FROM `eventlog`')[0]->total;
37
+        $stats['eventlog'] = DB::select('SELECT COUNT(event_id) AS `total` FROM `eventlog`')[0]->total;
38 38
         $stats['apps']       = DB::select('SELECT COUNT(app_id) AS `total` FROM `applications`')[0]->total;
39 39
         $stats['services']   = DB::select('SELECT COUNT(service_id) AS `total` FROM `services`')[0]->total;
40 40
         $stats['storage']    = DB::select('SELECT COUNT(storage_id) AS `total` FROM `storage`')[0]->total;
Please login to merge, or discard this patch.
app/Http/Controllers/HomeController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
     public function about() {
22 22
         $versions = $this->api->be(auth()->user())->get('/api/info');
23 23
         $stats    = $this->api->be(auth()->user())->get('/api/stats');
24
-        return view('general.about', ['versions'=>$versions,'stats'=>$stats]);
24
+        return view('general.about', ['versions'=>$versions, 'stats'=>$stats]);
25 25
     }
26 26
 }
Please login to merge, or discard this patch.