Completed
Pull Request — develop (#28)
by Neil
07:21
created
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function map(Router $router)
39 39
     {
40
-        $router->group(['namespace' => $this->namespace], function ($router) {
40
+        $router->group(['namespace' => $this->namespace], function($router) {
41 41
             require app_path('Http/routes.php');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
app/Http/Controllers/DeviceController.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/Http/Controllers/PortController.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/DeviceController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use App\User;
6 6
 use App\Device;
7
-use App\Port;
8 7
 use Illuminate\Http\Request;
9 8
 
10 9
 class DeviceController extends Controller
Please login to merge, or discard this patch.
app/Port.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
     // TODO: move to a common file
46 46
     // base = 1024 for bits, 1000 for mibibits
47
-    function formatBps($bits, $precision = 2, $base=1000) {
47
+    function formatBps($bits, $precision = 2, $base = 1000) {
48 48
        $units = array('bps', 'Kbps', 'Mbps', 'Gbps', 'Tbps');
49 49
 
50 50
        $bits = max($bits, 0);
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
        $bits /= pow($base, $pow);
55 55
 
56
-        return round($bits, $precision) . ' ' . $units[$pow];
56
+        return round($bits, $precision).' '.$units[$pow];
57 57
     }
58 58
 
59 59
     // ---- Define Reletionships ----
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.
app/Api/Controllers/APIController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,10 +3,8 @@
 block discarded – undo
3 3
 namespace App\Api\Controllers;
4 4
 
5 5
 use DB;
6
-use App\User;
7 6
 use App\Device;
8 7
 use App\Port;
9
-use Illuminate\Http\Request;
10 8
 
11 9
 class ApiController extends Controller
12 10
 {
Please login to merge, or discard this patch.