Passed
Pull Request — master (#351)
by Kirill
02:28
created
src/Schema/Schema.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      */
169 169
     public function getDirective(string $name): ?DirectiveInterface
170 170
     {
171
-        return find($this->directives, static function (Directive $directive) use ($name) {
171
+        return find($this->directives, static function(Directive $directive) use ($name) {
172 172
             return $directive->getName() === $name;
173 173
         });
174 174
     }
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
 
225 225
             $this->possibleTypesMap[$abstractTypeName] = \array_reduce(
226 226
                 $possibleTypes,
227
-                function (array $map, NamedTypeInterface $type) {
227
+                function(array $map, NamedTypeInterface $type) {
228 228
                     $map[$type->getName()] = true;
229 229
                     return $map;
230 230
                 },
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
             if ($type instanceof ObjectType || $type instanceof InterfaceType) {
362 362
                 foreach ($type->getFields() as $field) {
363 363
                     if ($field->hasArguments()) {
364
-                        $fieldArgTypes = \array_map(function (Argument $argument) {
364
+                        $fieldArgTypes = \array_map(function(Argument $argument) {
365 365
                             return $argument->getNullableType();
366 366
                         }, $field->getArguments());
367 367
 
@@ -396,7 +396,7 @@  discard block
 block discarded – undo
396 396
             return $map;
397 397
         }
398 398
 
399
-        return \array_reduce($directive->getArguments(), function ($map, Argument $argument) {
399
+        return \array_reduce($directive->getArguments(), function($map, Argument $argument) {
400 400
             return $this->typeMapReducer($map, $argument->getNullableType());
401 401
         }, $map);
402 402
     }
Please login to merge, or discard this patch.