Completed
Pull Request — master (#2)
by
unknown
01:57
created
src/Factory/InputFieldsConfigurationFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 use GraphQL\Doctrine\Annotation\Input;
8 8
 use GraphQL\Doctrine\DocBlockReader;
9
-use GraphQL\Doctrine\Types;
10 9
 use GraphQL\Type\Definition\Type;
11 10
 use ReflectionMethod;
12 11
 
Please login to merge, or discard this patch.
src/Factory/AbstractFieldsConfigurationFactory.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,12 +128,14 @@
 block discarded – undo
128 128
         if (is_a($driver, MappingDriverChain::class)) {
129 129
             $drivers = $driver->getDrivers();
130 130
             foreach ($drivers as $driver) {
131
-                if (is_a($driver, AnnotationDriver::class))
132
-                    return $driver->getReader();
131
+                if (is_a($driver, AnnotationDriver::class)) {
132
+                                    return $driver->getReader();
133
+                }
133 134
             }
134 135
         }
135
-        if (method_exists($driver, 'getReader'))
136
-            return $driver->getReader();
136
+        if (method_exists($driver, 'getReader')) {
137
+                    return $driver->getReader();
138
+        }
137 139
         return new AnnotationReader();
138 140
     }
139 141
 
Please login to merge, or discard this patch.