@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | $unionType = new UnionType([ |
33 | 33 | 'name' => 'Union', |
34 | 34 | 'types' => [$type1, $type2], |
35 | - 'resolveType' => function ($value) use ($type1, $type2) { |
|
35 | + 'resolveType' => function($value) use ($type1, $type2) { |
|
36 | 36 | if (isset($value['name'])) { |
37 | 37 | return $type1; |
38 | 38 | } |
@@ -41,13 +41,13 @@ discard block |
||
41 | 41 | }, |
42 | 42 | ]); |
43 | 43 | |
44 | - $schema = new Schema([ |
|
44 | + $schema = new Schema([ |
|
45 | 45 | 'query' => new ObjectType([ |
46 | 46 | 'name' => 'RootQuery', |
47 | 47 | 'fields' => [ |
48 | 48 | 'list' => [ |
49 | 49 | 'type' => new ListType($unionType), |
50 | - 'resolve' => function () { |
|
50 | + 'resolve' => function() { |
|
51 | 51 | return [ |
52 | 52 | [ |
53 | 53 | 'id' => 1, |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | { |
16 | 16 | public function testInternalVariableArgument() |
17 | 17 | { |
18 | - $schema = new Schema([ |
|
18 | + $schema = new Schema([ |
|
19 | 19 | 'query' => new ObjectType([ |
20 | 20 | 'name' => 'RootQuery', |
21 | 21 | 'fields' => [ |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | ])), |
37 | 37 | ], |
38 | 38 | ]), |
39 | - 'resolve' => function () { |
|
39 | + 'resolve' => function() { |
|
40 | 40 | return [ |
41 | 41 | 'id' => 1, |
42 | 42 | 'name' => 'John', |