Completed
Push — develop ( 39805a...bde4a3 )
by Tony
11:48
created
app/Http/Middleware/Authenticate.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
         if (Auth::guard($guard)->guest()) {
21 21
             if ($request->ajax() || $request->wantsJson()) {
22 22
                 return response('Unauthorized.', 401);
23
-            } else {
23
+            }
24
+            else {
24 25
                 return redirect()->guest('login');
25 26
             }
26 27
         }
Please login to merge, or discard this patch.
app/Console/Commands/DeleteUser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function handle()
63 63
     {
64 64
         $user = $this->argument('user');
65
-        $user_list = User::select('username')->where('username', 'like', '%' . $user . '%')->orWhere('realname', 'like', '%' . $user . '%')->get();
65
+        $user_list = User::select('username')->where('username', 'like', '%'.$user.'%')->orWhere('realname', 'like', '%'.$user.'%')->get();
66 66
         $names = [];
67 67
 
68 68
         if (count($user_list) < 1) {
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         else {
79 79
             $name = $names[0];
80 80
         }
81
-        if ($this->confirm('Do you wish to remove ' . $name . '?')) {
81
+        if ($this->confirm('Do you wish to remove '.$name.'?')) {
82 82
             User::where('username', $name)->delete();
83 83
             $this->info('User deleted.');
84 84
         }
Please login to merge, or discard this patch.
app/Http/Middleware/SetViewVariable.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 namespace App\Http\Middleware;
3 3
 
4 4
 use Closure;
5
-use Illuminate\Contracts\Auth\Guard;
6 5
 use Dingo\Api\Http;
7 6
 use Dingo\Api\Routing\Helpers;
7
+use Illuminate\Contracts\Auth\Guard;
8 8
 use Illuminate\Http\Request;
9 9
 
10 10
 class SetViewVariable
Please login to merge, or discard this patch.