Completed
Pull Request — master (#38)
by Christoffer
02:27
created
src/Type/Schema.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function getDirective(string $name): ?Directive
126 126
     {
127
-        return find($this->directives, function (Directive $directive) use ($name) {
127
+        return find($this->directives, function(Directive $directive) use ($name) {
128 128
             return $directive->getName() === $name;
129 129
         });
130 130
     }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 )
178 178
             );
179 179
 
180
-            $this->_possibleTypeMap = array_reduce($possibleTypes, function (array $map, TypeInterface $type) {
180
+            $this->_possibleTypeMap = array_reduce($possibleTypes, function(array $map, TypeInterface $type) {
181 181
                 $map[$type->getName()] = true;
182 182
                 return $map;
183 183
             });
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
     if ($type instanceof ObjectType || $type instanceof InterfaceType) {
390 390
         foreach ($type->getFields() as $field) {
391 391
             if ($field->hasArguments()) {
392
-                $fieldArgTypes = array_map(function (Argument $argument) {
392
+                $fieldArgTypes = array_map(function(Argument $argument) {
393 393
                     return $argument->getType();
394 394
                 }, $field->getArguments());
395 395
 
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
         return $map;
421 421
     }
422 422
 
423
-    return array_reduce($directive->getArguments(), function ($map, Argument $argument) {
423
+    return array_reduce($directive->getArguments(), function($map, Argument $argument) {
424 424
         return typeMapReducer($map, $argument->getType());
425 425
     }, $map);
426 426
 }
Please login to merge, or discard this patch.
src/Util/TypeInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $this->schema                     = $schema;
79 79
         $this->getFieldDefinitionFunction = null !== $getFieldDefinitionFunction
80 80
             ? $getFieldDefinitionFunction
81
-            : function (SchemaInterface $schema, TypeInterface $parentType, FieldNode $fieldNode) {
81
+            : function(SchemaInterface $schema, TypeInterface $parentType, FieldNode $fieldNode) {
82 82
                 return getFieldDefinition($schema, $parentType, $fieldNode);
83 83
             };
84 84
 
Please login to merge, or discard this patch.
src/Language/AST/Visitor/TypeInfoVisitor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             if (null !== $fieldOrDirective) {
107 107
                 $argumentDefinition = find(
108 108
                     $fieldOrDirective->getArguments(),
109
-                    function (Argument $argument) use ($node) {
109
+                    function(Argument $argument) use ($node) {
110 110
                         return $argument->getName() === $node->getNameValue();
111 111
                     }
112 112
                 );
Please login to merge, or discard this patch.