@@ -9,7 +9,7 @@ |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | ], [ |
34 | 34 | 'id' => new IdType(), |
35 | 35 | 'name' => new StringType(), |
36 | - ], static function ($source, $args, $info): void { |
|
36 | + ], static function($source, $args, $info): void { |
|
37 | 37 | }); |
38 | 38 | $this->assertEquals('ship', $mutation->getName()); |
39 | 39 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | RelayMutation::buildMutation('ship', [ |
47 | 47 | 'name' => new StringType(), |
48 | - ], new IntType(), static function ($source, $args, $info): void { |
|
48 | + ], new IntType(), static function($source, $args, $info): void { |
|
49 | 49 | }); |
50 | 50 | } |
51 | 51 | } |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | { |
27 | 27 | public function testMethods(): void |
28 | 28 | { |
29 | - $fetcher = new CallableFetcher(static function (): void { |
|
30 | - }, static function (): void { |
|
29 | + $fetcher = new CallableFetcher(static function(): void { |
|
30 | + }, static function(): void { |
|
31 | 31 | }); |
32 | 32 | $field = new NodeField($fetcher); |
33 | 33 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -71,6 +71,6 @@ discard block |
||
71 | 71 | $arrayData = (new TestObjectType())->getData(); |
72 | 72 | |
73 | 73 | $this->assertEquals('John', TypeService::getPropertyValue($arrayData, 'name')); |
74 | - $this->assertEquals('John', TypeService::getPropertyValue((object) $arrayData, 'name')); |
|
74 | + $this->assertEquals('John', TypeService::getPropertyValue((object)$arrayData, 'name')); |
|
75 | 75 | } |
76 | 76 | } |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * http://opensource.org/licenses/MIT |
10 | 10 | */ |
11 | 11 | |
12 | -declare(strict_types=1); |
|
12 | +declare(strict_types = 1); |
|
13 | 13 | /* |
14 | 14 | * This file is a part of GraphQL project. |
15 | 15 | * |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | $fieldWithResolve = new Field([ |
47 | 47 | 'name' => 'title', |
48 | 48 | 'type' => new StringType(), |
49 | - 'resolve' => static function ($value, array $args, ResolveInfo $info) { |
|
49 | + 'resolve' => static function($value, array $args, ResolveInfo $info) { |
|
50 | 50 | return $info->getReturnType()->serialize($value); |
51 | 51 | }, |
52 | 52 | ]); |