Completed
Push — 2.0 ( 24c80e...b5928b )
by Kirill
03:35
created
server/app/Services/TokenAuth.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * For the full copyright and license information, please view the LICENSE
5 5
  * file that was distributed with this source code.
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace App\Services;
10 10
 
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
      * @param string $password
51 51
      * @return Authenticatable
52 52
      */
53
-    public function attemptFromEmailAndPassword(string $email, string $password): ?Authenticatable
53
+    public function attemptFromEmailAndPassword(string $email, string $password): ? Authenticatable
54 54
     {
55
-        if (! $this->guard->validate(['email' => $email, 'password' => $password])) {
55
+        if (!$this->guard->validate(['email' => $email, 'password' => $password])) {
56 56
             return null;
57 57
         }
58 58
 
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
      * @param string $password
65 65
      * @return Authenticatable
66 66
      */
67
-    public function resolveFromIdAndPassword(int $id, string $password): ?Authenticatable
67
+    public function resolveFromIdAndPassword(int $id, string $password): ? Authenticatable
68 68
     {
69
-        if (! $this->guard->validate(['id' => $id, 'password' => $password])) {
69
+        if (!$this->guard->validate(['id' => $id, 'password' => $password])) {
70 70
             return null;
71 71
         }
72 72
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             throw new UnprocessableEntityHttpException('Invalid remember token');
182 182
         }
183 183
 
184
-        if (! $user) {
184
+        if (!$user) {
185 185
             throw new UnprocessableEntityHttpException('Invalid user credentials.');
186 186
         }
187 187
 
Please login to merge, or discard this patch.