Completed
Push — develop ( ad3019...9936f4 )
by Neil
05:31
created
app/Http/Controllers/HomeController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -3,11 +3,8 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Dingo\Api\Http;
6
-use Dingo\Api\Routing\Router;
7 6
 use Dingo\Api\Routing\Helpers;
8
-use App\Http\Requests;
9 7
 use Illuminate\Http\Request;
10
-use JWTAuth;
11 8
 
12 9
 class HomeController extends Controller
13 10
 {
Please login to merge, or discard this patch.
app/Api/Controllers/APIController.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@  discard block
 block discarded – undo
17 17
             $tmp_devices = DB::table('devices')
18 18
                 ->select(DB::raw('DISTINCT(`devices`.`device_id`),`devices`.*'))
19 19
                 ->get();
20
-        }
21
-        else {
20
+        } else {
22 21
              $tmp_devices = DB::table('devices')
23 22
                 ->select(DB::raw('DISTINCT(`devices`.`device_id`),`devices`.*'))
24 23
                 ->leftJoin('devices_perms AS DP', 'devices.device_id', '=', 'DP.device_id')
@@ -30,8 +29,7 @@  discard block
 block discarded – undo
30 29
             if ($device->status == 0) {
31 30
                 $visual_status = 'danger';
32 31
                 $msg           = $device->status_reason;
33
-            }
34
-            else {
32
+            } else {
35 33
                 $visual_status = 'success';
36 34
                 $msg           = 'up';
37 35
             }
Please login to merge, or discard this patch.