Completed
Push — master ( 486b73...844878 )
by claudio
03:43
created
app/Http/Controllers/Employees/Auth/AuthController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use plunner\Http\Controllers\Controller;
10 10
 use Tymon\JWTAuth\Support\auth\AuthenticatesAndRegistersUsers;
11 11
 use Tymon\JWTAuth\Support\auth\ThrottlesLogins;
12
-use Log;
13 12
 
14 13
 class AuthController extends Controller
15 14
 {
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/GroupsController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace plunner\Http\Controllers\Employees;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use plunner\Http\Requests;
8 6
 use plunner\Http\Controllers\Controller;
9 7
 
10 8
 class GroupsController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/Companies/ExampleController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace plunner\Http\Controllers\Employees;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use plunner\Http\Requests;
8 6
 use plunner\Http\Controllers\Controller;
9 7
 
10 8
 class GroupsController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/Employees/EmployeesController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace plunner\Http\Controllers\Employees;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use plunner\Http\Requests;
8 6
 use plunner\Http\Controllers\Controller;
9 7
 
10 8
 class GroupsController extends Controller
Please login to merge, or discard this patch.
app/Http/Middleware/GetUserAndRefresh.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace plunner\Http\Middleware;
4 4
 
5
-use Doctrine\Common\Util\Debug;
6 5
 use Log;
7 6
 use Tymon\JWTAuth\Exceptions\JWTException;
8 7
 use Tymon\JWTAuth\Exceptions\TokenExpiredException;
Please login to merge, or discard this patch.
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,13 +22,14 @@
 block discarded – undo
22 22
     {
23 23
         $custom = $this->convertToArray($custom);
24 24
         $headers = $request->headers->all();
25
-        foreach($headers as $header)
26
-            Log::info('header: '.implode('-',$header));
25
+        foreach($headers as $header) {
26
+                    Log::info('header: '.implode('-',$header));
27
+        }
27 28
 
28 29
         if($token = $this->auth->setRequest($request)->getToken()) {
29
-        }else if ($this->auth->getUserModel()){
30
+        } else if ($this->auth->getUserModel()){
30 31
             $token = $this->auth->fromUser($this->auth->getUserModel(), $custom);
31
-        }else {
32
+        } else {
32 33
             return $this->respond('tymon.jwt.absent', 'token_not_provided', 401);
33 34
         }
34 35
 
Please login to merge, or discard this patch.
app/Http/Middleware/BaseMiddleware.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,8 +64,9 @@
 block discarded – undo
64 64
         $str = explode(';', $str);
65 65
         foreach($str as $value) {
66 66
             $tmp = explode('-', $value);
67
-            if(count($tmp) != 2)
68
-                return [];
67
+            if(count($tmp) != 2) {
68
+                            return [];
69
+            }
69 70
             $ret[$tmp[0]] = $tmp[1];
70 71
         }
71 72
         return $ret;
Please login to merge, or discard this patch.