@@ -4,7 +4,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |