Completed
Push — 2.0 ( 3d053b...00ad30 )
by Kirill
03:09
created
server/app/GraphQL/Kernel/HasValidation.php 1 patch
Spacing   +2 added lines, -2 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\GraphQL\Kernel;
10 10
 
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param array $args
59 59
      * @return \Generator|null
60 60
      */
61
-    public function validate(Validator $validator, array $args = []): ?\Generator
61
+    public function validate(Validator $validator, array $args = []): ? \Generator
62 62
     {
63 63
         return null;
64 64
     }
Please login to merge, or discard this patch.
server/app/GraphQL/Serializers/UserSerializer.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\GraphQL\Serializers;
12 12
 
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     public function toArray($user): array
26 26
     {
27 27
         return [
28
-            'id'           => (int)$user->id,
28
+            'id'           => (int) $user->id,
29 29
             'name'         => $user->name,
30 30
             'email'        => $user->email,
31 31
             'avatar'       => $user->avatar,
Please login to merge, or discard this patch.
server/app/GraphQL/Mutations/AbstractMutation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 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\GraphQL\Mutations;
10 10
 
Please login to merge, or discard this patch.
server/app/GraphQL/Mutations/AuthMutation.php 2 patches
Spacing   +2 added lines, -2 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\GraphQL\Mutations;
10 10
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $user = $this->tokenAuth->attemptFromEmailAndPassword($email, $password);
105 105
 
106
-        if (! $user) {
106
+        if (!$user) {
107 107
             throw new AccessDeniedHttpException('User password are not correct');
108 108
         }
109 109
 
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use GraphQL\Type\Definition\Type;
15 15
 use App\GraphQL\Types\AuthUserType;
16 16
 use GraphQL\Type\Definition\ObjectType;
17
-use App\GraphQL\Serializers\UserSerializer;
18 17
 use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
19 18
 
20 19
 /**
Please login to merge, or discard this patch.
server/app/GraphQL/Types/AuthUserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\GraphQL\Types;
12 12
 
Please login to merge, or discard this patch.
server/app/GraphQL/Serializers/AuthUserSerializer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
  * For the full copyright and license information, please view the LICENSE
7 7
  * file that was distributed with this source code.
8 8
  */
9
-declare(strict_types=1);
9
+declare(strict_types = 1);
10 10
 
11 11
 namespace App\GraphQL\Serializers;
12 12
 
Please login to merge, or discard this patch.