We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -165,7 +165,7 @@ |
||
165 | 165 | $client->request('POST', '/?batch', [], [], ['CONTENT_TYPE' => 'application/json'], json_encode($data)); |
166 | 166 | $result = $client->getResponse()->getContent(); |
167 | 167 | |
168 | - $expected = [ |
|
168 | + $expected = [ |
|
169 | 169 | 'friends' => ['data' => $this->expectedData], |
170 | 170 | 'friendsTotalCount' => ['data' => ['user' => ['friends' => ['totalCount' => 4]]]], |
171 | 171 | ]; |
@@ -72,7 +72,7 @@ |
||
72 | 72 | 'fields' => [ |
73 | 73 | 'firstName' => ['type' => Type::nonNull(Type::string())], |
74 | 74 | 'Dog' => [ |
75 | - 'type' => function () { |
|
75 | + 'type' => function() { |
|
76 | 76 | return Type::nonNull( |
77 | 77 | Type::listOf( |
78 | 78 | Type::nonNull(self::buildDogType()) |
@@ -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() |