@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | public function testGetValue($actual, $expected) |
| 16 | 16 | { |
| 17 | - $var = new Variable('foo', 'bar', false, false, new Location(1,1)); |
|
| 17 | + $var = new Variable('foo', 'bar', false, false, new Location(1, 1)); |
|
| 18 | 18 | $var->setValue($actual); |
| 19 | 19 | $this->assertEquals($var->getValue(), $expected); |
| 20 | 20 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function testGetNullValueException() |
| 27 | 27 | { |
| 28 | - $var = new Variable('foo', 'bar', false, false, new Location(1,1)); |
|
| 28 | + $var = new Variable('foo', 'bar', false, false, new Location(1, 1)); |
|
| 29 | 29 | $var->getValue(); |
| 30 | 30 | } |
| 31 | 31 | |
@@ -111,7 +111,7 @@ |
||
| 111 | 111 | new Argument('test2', new VariableReference('test2', $variable2, new Location(1, 1)), new Location(1, 1)), |
| 112 | 112 | ], [ |
| 113 | 113 | new Field('test', null, [], new Location(1, 1)) |
| 114 | - ], new Location(1,1)) |
|
| 114 | + ], new Location(1, 1)) |
|
| 115 | 115 | ], |
| 116 | 116 | 'variables' => [ |
| 117 | 117 | $variable1, |
@@ -2,14 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Youshido\Tests\Schema; |
| 4 | 4 | |
| 5 | -use Youshido\GraphQL\Config\Object\InterfaceTypeConfig; |
|
| 6 | -use Youshido\GraphQL\Config\Object\ObjectTypeConfig; |
|
| 7 | 5 | use Youshido\GraphQL\Execution\Processor; |
| 8 | 6 | use Youshido\GraphQL\Schema\Schema; |
| 9 | 7 | use Youshido\GraphQL\Type\InterfaceType\AbstractInterfaceType; |
| 10 | -use Youshido\GraphQL\Type\InterfaceType\InterfaceType; |
|
| 11 | 8 | use Youshido\GraphQL\Type\ListType\ListType; |
| 12 | -use Youshido\GraphQL\Type\NonNullType; |
|
| 13 | 9 | use Youshido\GraphQL\Type\Object\AbstractObjectType; |
| 14 | 10 | use Youshido\GraphQL\Type\Object\ObjectType; |
| 15 | 11 | use Youshido\GraphQL\Type\Scalar\IdType; |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | 'fields' => [ |
| 104 | 104 | 'user' => [ |
| 105 | 105 | 'type' => new UserType(), |
| 106 | - 'resolve' => function ($args) { |
|
| 106 | + 'resolve' => function($args) { |
|
| 107 | 107 | return [ |
| 108 | 108 | 'id' => 'user-id-1', |
| 109 | 109 | 'fullName' => 'Alex', |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | 'fields' => [ |
| 218 | 218 | 'user' => [ |
| 219 | 219 | 'type' => new UserType(), |
| 220 | - 'resolve' => function ($args) { |
|
| 220 | + 'resolve' => function($args) { |
|
| 221 | 221 | return [ |
| 222 | 222 | 'id' => 'user-id-1', |
| 223 | 223 | 'fullName' => 'Alex', |