@@ -9,13 +9,7 @@ discard block |
||
| 9 | 9 | namespace Youshido\Tests\Library\Type; |
| 10 | 10 | |
| 11 | 11 | |
| 12 | -use Youshido\GraphQL\Execution\Context\ExecutionContext; |
|
| 13 | 12 | use Youshido\GraphQL\Execution\Processor; |
| 14 | -use Youshido\GraphQL\Execution\Request; |
|
| 15 | -use Youshido\GraphQL\Field\Field; |
|
| 16 | -use Youshido\GraphQL\Parser\Ast\Argument; |
|
| 17 | -use Youshido\GraphQL\Parser\Ast\ArgumentValue\Literal; |
|
| 18 | -use Youshido\GraphQL\Parser\Ast\Query; |
|
| 19 | 13 | use Youshido\GraphQL\Schema\Schema; |
| 20 | 14 | use Youshido\GraphQL\Type\InputObject\InputObjectType; |
| 21 | 15 | use Youshido\GraphQL\Type\ListType\ListType; |
@@ -24,7 +18,6 @@ discard block |
||
| 24 | 18 | use Youshido\GraphQL\Type\Scalar\BooleanType; |
| 25 | 19 | use Youshido\GraphQL\Type\Scalar\StringType; |
| 26 | 20 | use Youshido\GraphQL\Type\TypeMap; |
| 27 | -use Youshido\GraphQL\Validator\ResolveValidator\ResolveValidator; |
|
| 28 | 21 | use Youshido\Tests\DataProvider\TestInputObjectType; |
| 29 | 22 | |
| 30 | 23 | class InputObjectTypeTest extends \PHPUnit_Framework_TestCase |
@@ -37,7 +37,9 @@ |
||
| 37 | 37 | if ($isValid && $itemType->isInputType()) { |
| 38 | 38 | foreach($value as $item) { |
| 39 | 39 | $isValid = $itemType->isValidValue($item); |
| 40 | - if (!$isValid) return false; |
|
| 40 | + if (!$isValid) { |
|
| 41 | + return false; |
|
| 42 | + } |
|
| 41 | 43 | } |
| 42 | 44 | } |
| 43 | 45 | return $isValid; |