Completed
Push — master ( 46306f...e069d8 )
by Alexandr
03:27
created
Tests/Library/Type/InputObjectTypeTest.php 1 patch
Unused Use Statements   -7 removed lines patch added patch discarded remove patch
@@ -9,13 +9,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Type/ListType/AbstractListType.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,9 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.