Passed
Pull Request — master (#318)
by Sam
03:16
created
src/Validation/ValidationContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     public function getFragment(string $name): ?FragmentDefinitionNode
169 169
     {
170 170
         if (empty($this->fragments)) {
171
-            $this->fragments = array_reduce($this->document->getDefinitions(), function ($fragments, $definition) {
171
+            $this->fragments = array_reduce($this->document->getDefinitions(), function($fragments, $definition) {
172 172
                 if ($definition instanceof FragmentDefinitionNode) {
173 173
                     $fragments[$definition->getNameValue()] = $definition;
174 174
                 }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
             $usages   = [];
245 245
             $typeInfo = new TypeInfo($this->schema);
246 246
 
247
-            $enterCallback = function (NodeInterface $node) use (&$usages, $typeInfo): VisitorResult {
247
+            $enterCallback = function(NodeInterface $node) use (&$usages, $typeInfo): VisitorResult {
248 248
                 if ($node instanceof VariableDefinitionNode) {
249 249
                     return new VisitorResult(null);
250 250
                 }
Please login to merge, or discard this patch.
src/Execution/ValuesHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             return $coercedValues;
57 57
         }
58 58
 
59
-        $argumentNodeMap = keyMap($argumentNodes, function (ArgumentNode $value) {
59
+        $argumentNodeMap = keyMap($argumentNodes, function(ArgumentNode $value) {
60 60
             return $value->getNameValue();
61 61
         });
62 62
 
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         array $variableValues = []
134 134
     ): ?array {
135 135
         $directiveNode = $node->hasDirectives()
136
-            ? find($node->getDirectives(), function (NameAwareInterface $value) use ($directive) {
136
+            ? find($node->getDirectives(), function(NameAwareInterface $value) use ($directive) {
137 137
                 return $value->getNameValue() === $directive->getName();
138 138
             }) : null;
139 139
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                 ]);
334 334
             }
335 335
             return new CoercedValue($parseResult);
336
-        } catch (InvalidTypeException|CoercingException $ex) {
336
+        } catch (InvalidTypeException | CoercingException $ex) {
337 337
             return new CoercedValue(null, [
338 338
                 $this->buildCoerceException(
339 339
                     sprintf('Expected type %s', (string)$type),
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
             return new CoercedValue($enumValue);
365 365
         }
366 366
 
367
-        $suggestions = suggestionList((string)$value, \array_map(function (EnumValue $enumValue) {
367
+        $suggestions = suggestionList((string)$value, \array_map(function(EnumValue $enumValue) {
368 368
             return $enumValue->getName();
369 369
         }, $type->getValues()));
370 370
 
Please login to merge, or discard this patch.
src/Error/Handler/ErrorHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
      */
29 29
     public function handle(ExecutionException $exception, ExecutionContext $context): void
30 30
     {
31
-        $next = function () {
31
+        $next = function() {
32 32
             // NO-OP
33 33
         };
34 34
 
35 35
         foreach (\array_reverse($this->middleware) as $mw) {
36
-            $next = function (ExecutionException $exception, ExecutionContext $context) use ($mw, $next) {
36
+            $next = function(ExecutionException $exception, ExecutionContext $context) use ($mw, $next) {
37 37
                 /** @var ErrorMiddlewareInterface $mw */
38 38
                 return $mw->handle($exception, $context, $next);
39 39
             };
Please login to merge, or discard this patch.