@@ -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 | * Date: 07.12.15. |
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 | * Date: 07.12.15. |
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 | * Date: 07.12.15. |
15 | 15 | */ |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | 'args' => [ |
39 | 39 | 'episode' => ['type' => new EpisodeEnum()], |
40 | 40 | ], |
41 | - 'resolve' => static function ($root, $args) { |
|
41 | + 'resolve' => static function($root, $args) { |
|
42 | 42 | return StarWarsData::getHero($args['episode'] ?? null); |
43 | 43 | }, |
44 | 44 | ]) |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | 'args' => [ |
49 | 49 | 'id' => new IdType(), |
50 | 50 | ], |
51 | - 'resolve' => static function ($value = null, $args = []) { |
|
51 | + 'resolve' => static function($value = null, $args = []) { |
|
52 | 52 | $humans = StarWarsData::humans(); |
53 | 53 | |
54 | 54 | return $humans[$args['id']] ?? null; |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'args' => [ |
61 | 61 | 'id' => new IdType(), |
62 | 62 | ], |
63 | - 'resolve' => static function ($value = null, $args = []) { |
|
63 | + 'resolve' => static function($value = null, $args = []) { |
|
64 | 64 | $droids = StarWarsData::droids(); |
65 | 65 | |
66 | 66 | return $droids[$args['id']] ?? null; |
@@ -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 | namespace Youshido\Tests\Issues\Issue116Test; |
15 | 15 | |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | $unionType = new UnionType([ |
44 | 44 | 'name' => 'Union', |
45 | 45 | 'types' => [$type1, $type2], |
46 | - 'resolveType' => static function ($value) use ($type1, $type2) { |
|
46 | + 'resolveType' => static function($value) use ($type1, $type2) { |
|
47 | 47 | if (isset($value['name'])) { |
48 | 48 | return $type1; |
49 | 49 | } |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | 'fields' => [ |
59 | 59 | 'list' => [ |
60 | 60 | 'type' => new ListType($unionType), |
61 | - 'resolve' => static function () { |
|
61 | + 'resolve' => static function() { |
|
62 | 62 | return [ |
63 | 63 | [ |
64 | 64 | 'id' => 1, |
@@ -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 | namespace Youshido\Tests\Issues\Issue116Test; |
15 | 15 | |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | 'args' => [ |
43 | 43 | 'size' => new NonNullType(new IntType()), |
44 | 44 | ], |
45 | - 'resolve' => static function ($source, $args) { |
|
45 | + 'resolve' => static function($source, $args) { |
|
46 | 46 | $res = []; |
47 | 47 | |
48 | 48 | foreach (\range(1, $args['size']) as $i) { |
49 | - $res[] = 'Cursor #' . $i; |
|
49 | + $res[] = 'Cursor #'.$i; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | return $res; |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | 'args' => [ |
60 | 60 | 'first' => new IntType(), |
61 | 61 | ], |
62 | - 'resolve' => static function () { |
|
62 | + 'resolve' => static function() { |
|
63 | 63 | return [ |
64 | 64 | 'pageInfo' => [ |
65 | 65 | 'totalEdges' => 10, |
@@ -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 | namespace Youshido\Tests\Issues\Issue109; |
15 | 15 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | ], |
52 | 52 | ], |
53 | 53 | ]), |
54 | - 'resolve' => static function ($source, array $args, ResolveInfo $info) { |
|
54 | + 'resolve' => static function($source, array $args, ResolveInfo $info) { |
|
55 | 55 | $internalArgs = [ |
56 | 56 | 'comment_id' => 200, |
57 | 57 | ]; |
@@ -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 | namespace Youshido\Tests\Issues\Issue109; |
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 | namespace Youshido\Tests\Issues\Issue90; |
15 | 15 | |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | 'args' => [ |
32 | 32 | 'date' => new DateTimeType('Y-m-d H:ia'), |
33 | 33 | ], |
34 | - 'resolve' => static function ($value, $args, $info) { |
|
34 | + 'resolve' => static function($value, $args, $info) { |
|
35 | 35 | if (isset($args['date'])) { |
36 | 36 | return $args['date']; |
37 | 37 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | 'args' => [ |
51 | 51 | 'date' => new DateTimeType('Y-m-d H:ia'), |
52 | 52 | ], |
53 | - 'resolve' => static function ($value, $args, $info) { |
|
53 | + 'resolve' => static function($value, $args, $info) { |
|
54 | 54 | if (isset($args['date'])) { |
55 | 55 | return $args['date']; |
56 | 56 | } |
@@ -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 | namespace Youshido\Tests\Issues\Issue90; |
15 | 15 |