@@ -73,7 +73,7 @@ |
||
| 73 | 73 | $location = new DirectiveLocation($directive, $name); |
| 74 | 74 | $location->withOffset($ast->getOffset()); |
| 75 | 75 | |
| 76 | - if (! \in_array($name, $locations, true)) { |
|
| 76 | + if (!\in_array($name, $locations, true)) { |
|
| 77 | 77 | $error = \sprintf('Invalid directive location %s, only one of {%s} allowed', |
| 78 | 78 | $location, \implode(', ', $locations)); |
| 79 | 79 | throw (new TypeConflictException($error))->throwsIn($directive->getFile(), $ast->getOffset()); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $directive = new Invocation($parent->getDocument(), $rule->getDirectiveName()); |
| 34 | 34 | $directive->withOffset($rule->getOffset()); |
| 35 | 35 | |
| 36 | - $this->when->resolving(function () use ($rule, $directive): void { |
|
| 36 | + $this->when->resolving(function() use ($rule, $directive): void { |
|
| 37 | 37 | $definition = $this->loadDefinition($directive, $rule); |
| 38 | 38 | |
| 39 | 39 | $this->buildArguments($directive, $definition, $rule); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | /** @var DirectiveDefinition $definition */ |
| 56 | 56 | $definition = $directive->getDefinition(); |
| 57 | 57 | |
| 58 | - if (! ($definition instanceof Definition\DirectiveDefinition)) { |
|
| 58 | + if (!($definition instanceof Definition\DirectiveDefinition)) { |
|
| 59 | 59 | $error = '%s should be a Directive, but %s given'; |
| 60 | 60 | throw (new TypeConflictException(\sprintf($error, $directive, |
| 61 | 61 | $definition)))->throwsIn($directive->getFile(), $rule->getOffset()); |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | continue; |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - if (! $argument->hasDefaultValue()) { |
|
| 104 | + if (!$argument->hasDefaultValue()) { |
|
| 105 | 105 | $error = 'Missing value for required argument %s of %s'; |
| 106 | 106 | throw (new TypeConflictException(\sprintf($error, $argument, |
| 107 | 107 | $directive)))->throwsIn($directive->getFile(), $directive->getLine(), $directive->getColumn()); |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | { |
| 57 | 57 | $result = (new ValueBuilder($from))->valueOf($value); |
| 58 | 58 | |
| 59 | - $this->when->runtime(function () use ($result): void { |
|
| 59 | + $this->when->runtime(function() use ($result): void { |
|
| 60 | 60 | (new ValueInvocation())->invoke($result); |
| 61 | 61 | }); |
| 62 | 62 | |
@@ -37,13 +37,13 @@ |
||
| 37 | 37 | $value->withOffset($rule->getOffset()); |
| 38 | 38 | $value->withDescription($rule->getDescription()); |
| 39 | 39 | |
| 40 | - $this->when->runtime(function () use ($rule, $value): void { |
|
| 40 | + $this->when->runtime(function() use ($rule, $value): void { |
|
| 41 | 41 | if ($hint = $rule->getTypeHint()) { |
| 42 | 42 | $virtualTypeHint = $this->virtualTypeHint($value, $hint); |
| 43 | 43 | |
| 44 | 44 | $value->withValue($this->valueOf($virtualTypeHint, $rule->getValue())); |
| 45 | 45 | |
| 46 | - $this->when->resolving(function () use ($value, $virtualTypeHint): void { |
|
| 46 | + $this->when->resolving(function() use ($value, $virtualTypeHint): void { |
|
| 47 | 47 | $this->shouldBeTypeOf($value, $virtualTypeHint->getDefinition(), [ |
| 48 | 48 | Type::SCALAR, |
| 49 | 49 | Type::ENUM, |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $field->withArgument($this->dependent($ast, $field)); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - $this->when->resolving(function () use ($field): void { |
|
| 43 | + $this->when->resolving(function() use ($field): void { |
|
| 44 | 44 | $this->shouldBeTypeOf($field, $field->getDefinition(), [ |
| 45 | 45 | Type::SCALAR, |
| 46 | 46 | Type::OBJECT, |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | ]); |
| 52 | 52 | }); |
| 53 | 53 | |
| 54 | - $this->when->runtime(function () use ($rule, $field): void { |
|
| 54 | + $this->when->runtime(function() use ($rule, $field): void { |
|
| 55 | 55 | foreach ($rule->getDirectives() as $ast) { |
| 56 | 56 | $field->withDirective($this->dependent($ast, $field)); |
| 57 | 57 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $argument->withDescription($rule->getDescription()); |
| 36 | 36 | $argument->withModifiers($hint->getModifiers()); |
| 37 | 37 | |
| 38 | - $this->when->resolving(function () use ($argument): void { |
|
| 38 | + $this->when->resolving(function() use ($argument): void { |
|
| 39 | 39 | $this->shouldBeTypeOf($argument, $argument->getDefinition(), [ |
| 40 | 40 | Type::SCALAR, |
| 41 | 41 | Type::ENUM, |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | ]); |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | - $this->when->runtime(function () use ($rule, $argument): void { |
|
| 47 | + $this->when->runtime(function() use ($rule, $argument): void { |
|
| 48 | 48 | if ($default = $rule->getDefaultValue()) { |
| 49 | 49 | $argument->withDefaultValue($this->valueOf($argument, $default)); |
| 50 | - } elseif (! $argument->isNonNull()) { |
|
| 50 | + } elseif (!$argument->isNonNull()) { |
|
| 51 | 51 | $argument->withDefaultValue(null); |
| 52 | 52 | } |
| 53 | 53 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $field->withDescription($rule->getDescription()); |
| 36 | 36 | $field->withModifiers($hint->getModifiers()); |
| 37 | 37 | |
| 38 | - $this->when->resolving(function () use ($field): void { |
|
| 38 | + $this->when->resolving(function() use ($field): void { |
|
| 39 | 39 | $this->shouldBeTypeOf($field, $field->getDefinition(), [ |
| 40 | 40 | Type::SCALAR, |
| 41 | 41 | Type::ENUM, |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | ]); |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | - $this->when->runtime(function () use ($rule, $field): void { |
|
| 47 | + $this->when->runtime(function() use ($rule, $field): void { |
|
| 48 | 48 | if ($default = $rule->getDefaultValue()) { |
| 49 | 49 | $field->withDefaultValue($this->valueOf($field, $default)); |
| 50 | 50 | } |