@@ -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 | } |