@@ -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\GraphQL\Queries; |
| 10 | 10 | |
@@ -110,12 +110,12 @@ discard block |
||
| 110 | 110 | |
| 111 | 111 | $user = $this->tokenAuth->attemptFromEmailAndPassword($email, $password); |
| 112 | 112 | |
| 113 | - if (! $user) { |
|
| 113 | + if (!$user) { |
|
| 114 | 114 | throw new AccessDeniedHttpException('User password are not correct'); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | if (isset($args['remember']) && $this->guard instanceof StatefulGuard) { |
| 118 | - $this->guard->login($user, (bool)$args['remember']); |
|
| 118 | + $this->guard->login($user, (bool) $args['remember']); |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | return AuthUserSerializer::serialize($user); |