@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | public function getExtendedTypes(): array |
113 | 113 | { |
114 | - $extendedTypes = \array_map(function ($type) { |
|
114 | + $extendedTypes = \array_map(function($type) { |
|
115 | 115 | return $this->getExtendedType($type); |
116 | 116 | }, $this->info->getSchema()->getTypeMap()); |
117 | 117 | |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | |
134 | 134 | return \array_merge( |
135 | 135 | $existingDirectives, |
136 | - \array_map(function (DirectiveDefinitionNode $node) { |
|
136 | + \array_map(function(DirectiveDefinitionNode $node) { |
|
137 | 137 | return $this->definitionBuilder->buildDirective($node); |
138 | 138 | }, $this->info->getDirectiveDefinitions()) |
139 | 139 | ); |
@@ -238,10 +238,10 @@ discard block |
||
238 | 238 | return newObjectType([ |
239 | 239 | 'name' => $typeName, |
240 | 240 | 'description' => $type->getDescription(), |
241 | - 'interfaces' => function () use ($type) { |
|
241 | + 'interfaces' => function() use ($type) { |
|
242 | 242 | return $this->extendImplementedInterfaces($type); |
243 | 243 | }, |
244 | - 'fields' => function () use ($type) { |
|
244 | + 'fields' => function() use ($type) { |
|
245 | 245 | return $this->extendFieldMap($type); |
246 | 246 | }, |
247 | 247 | 'astNode' => $type->getAstNode(), |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | return newInterfaceType([ |
267 | 267 | 'name' => $typeName, |
268 | 268 | 'description' => $type->getDescription(), |
269 | - 'fields' => function () use ($type) { |
|
269 | + 'fields' => function() use ($type) { |
|
270 | 270 | return $this->extendFieldMap($type); |
271 | 271 | }, |
272 | 272 | 'astNode' => $type->getAstNode(), |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | return newUnionType([ |
297 | 297 | 'name' => $type->getName(), |
298 | 298 | 'description' => $type->getDescription(), |
299 | - 'types' => \array_map(function ($unionType) { |
|
299 | + 'types' => \array_map(function($unionType) { |
|
300 | 300 | return $this->getExtendedType($unionType); |
301 | 301 | }, $type->getTypes()), |
302 | 302 | 'astNode' => $type->getAstNode(), |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | { |
314 | 314 | $typeName = $type->getName(); |
315 | 315 | |
316 | - $interfaces = \array_map(function (InterfaceType $interface) { |
|
316 | + $interfaces = \array_map(function(InterfaceType $interface) { |
|
317 | 317 | return $this->getExtendedType($interface); |
318 | 318 | }, $type->getInterfaces()); |
319 | 319 | |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | 'description' => $field->getDescription(), |
356 | 356 | 'deprecationReason' => $field->getDeprecationReason(), |
357 | 357 | 'type' => $this->extendFieldType($field->getType()), |
358 | - 'args' => keyMap($field->getArguments(), function (Argument $argument) { |
|
358 | + 'args' => keyMap($field->getArguments(), function(Argument $argument) { |
|
359 | 359 | return $argument->getName(); |
360 | 360 | }), |
361 | 361 | 'astNode' => $field->getAstNode(), |
@@ -53,7 +53,7 @@ |
||
53 | 53 | if ($code === 92) { |
54 | 54 | // \ |
55 | 55 | $value .= sliceString($body, $chunkStart, $pos - 1); |
56 | - $code = charCodeAt($body, $pos); |
|
56 | + $code = charCodeAt($body, $pos); |
|
57 | 57 | |
58 | 58 | switch ($code) { |
59 | 59 | case 34: |