Completed
Push — master ( 2014f3...a6a027 )
by Alexandr
9s
created
Tests/Library/Validator/ResolveValidatorTest.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -64,18 +64,18 @@
 block discarded – undo
64 64
 
65 65
     public function testValidFragmentTypeWithComposite()
66 66
     {
67
-      $validator = new ResolveValidator(new ExecutionContext());
68
-      $userType = new ObjectType([
67
+        $validator = new ResolveValidator(new ExecutionContext());
68
+        $userType = new ObjectType([
69 69
         'name'       => 'User',
70 70
         'fields'     => [
71
-          'name' => new StringType(),
71
+            'name' => new StringType(),
72 72
         ],
73 73
         'interfaces' => [new TestInterfaceType()]
74
-      ]);
74
+        ]);
75 75
 
76
-      $fragment          = new Fragment('name', 'User', []);
77
-      $fragmentReference = new FragmentReference('name');
78
-      $validator->assertValidFragmentForField($fragment, $fragmentReference, new NonNullType($userType));
76
+        $fragment          = new Fragment('name', 'User', []);
77
+        $fragmentReference = new FragmentReference('name');
78
+        $validator->assertValidFragmentForField($fragment, $fragmentReference, new NonNullType($userType));
79 79
     }
80 80
 
81 81
     /**
Please login to merge, or discard this patch.
src/Validator/ResolveValidator/ResolveValidator.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
     {
178 178
         $innerType = $queryType;
179 179
         while ($innerType->isCompositeType()) {
180
-          $innerType = $innerType->getTypeOf();
180
+            $innerType = $innerType->getTypeOf();
181 181
         }
182 182
 
183 183
         if ($fragment->getModel() !== $innerType->getName()) {
Please login to merge, or discard this patch.