We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | |
66 | 66 | private function getFieldClosure(ValidationContext $context, array $rootTypes) |
67 | 67 | { |
68 | - return function (Field $node) use ($context, $rootTypes) { |
|
68 | + return function(Field $node) use ($context, $rootTypes) { |
|
69 | 69 | $parentType = $context->getParentType(); |
70 | 70 | $type = $this->retrieveCurrentTypeFromValidationContext($context); |
71 | 71 | $isIntrospectionType = $type && $type->name === '__Schema'; |
@@ -79,8 +79,7 @@ discard block |
||
79 | 79 | self::$maxQueryDepth + static::DEFAULT_MAX_COUNT_AFTER_DEPTH_LIMIT, |
80 | 80 | 0, |
81 | 81 | true |
82 | - ) : |
|
83 | - 0 |
|
82 | + ) : 0 |
|
84 | 83 | ; |
85 | 84 | |
86 | 85 | if ($depth > self::$maxQueryDepth) { |
@@ -95,12 +95,12 @@ |
||
95 | 95 | ->integerNode('query_max_depth') |
96 | 96 | ->info('Limit query depth. Disabled if equal to false or 0.') |
97 | 97 | ->beforeNormalization() |
98 | - ->ifTrue(function ($v) { return false === $v; }) |
|
99 | - ->then(function () { return 0; }) |
|
98 | + ->ifTrue(function($v) { return false === $v; }) |
|
99 | + ->then(function() { return 0; }) |
|
100 | 100 | ->end() |
101 | 101 | ->defaultFalse() |
102 | 102 | ->validate() |
103 | - ->ifTrue(function ($v) { return $v < 0; }) |
|
103 | + ->ifTrue(function($v) { return $v < 0; }) |
|
104 | 104 | ->thenInvalid('Node "overblog_graphql.security.query_max_depth" must be greater or equal to 0.') |
105 | 105 | ->end() |
106 | 106 | ->end() |