Completed
Push — master ( 4582fb...f9b5c2 )
by Pásztor
03:33
created
http/controllers/AuthController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     public function authenticate(Request $request)
22 22
     {
23 23
         try {
24
-            if (! $token = $this->auth->attempt($request->only('email', 'password'))) {
24
+            if (!$token = $this->auth->attempt($request->only('email', 'password'))) {
25 25
                 return response()->json([
26 26
                     'error' => 'invalid_credentials',
27 27
                 ], 401);
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         $data = $request->all();
41 41
 
42
-        if (! array_key_exists('password_confirmation', $request->all())) {
42
+        if (!array_key_exists('password_confirmation', $request->all())) {
43 43
             $data['password_confirmation'] = $request->get('password');
44 44
         }
45 45
 
Please login to merge, or discard this patch.
classes/RainAuthAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
      */
47 47
     public function byId($id)
48 48
     {
49
-        if (! is_null($user = $this->auth->findUserById($id))) {
49
+        if (!is_null($user = $this->auth->findUserById($id))) {
50 50
             $this->auth->setUser($user);
51 51
 
52 52
             return true;
Please login to merge, or discard this patch.