Passed
Branch master (3156bb)
by Mohamed
10:20
created
Category
app/Http/Middleware/Authenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     protected function redirectTo($request)
16 16
     {
17
-        if (! $request->expectsJson()) {
17
+        if (!$request->expectsJson()) {
18 18
             return route('login');
19 19
         }
20 20
     }
Please login to merge, or discard this patch.
app/Http/Controllers/Auth/LoginController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
     /**
50 50
      * @return string
51 51
      */
52
-    public function findUsername(){
52
+    public function findUsername() {
53 53
         $login = request()->input('username');
54 54
 
55
-        $fieldType  = filter_var($login,FILTER_VALIDATE_EMAIL) ? 'email' : 'username';
55
+        $fieldType = filter_var($login, FILTER_VALIDATE_EMAIL) ? 'email' : 'username';
56 56
 
57 57
         request()->merge([$fieldType => $login]);
58 58
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     /**
63 63
      * @return string
64 64
      */
65
-    public function username(){
65
+    public function username() {
66 66
         return $this->username;
67 67
     }
68 68
 }
Please login to merge, or discard this patch.