We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | $this->setMaxQueryDepth($maxQueryDepth); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param integer $maxQueryDepth |
|
| 40 | + */ |
|
| 38 | 41 | public static function setMaxQueryDepth($maxQueryDepth) |
| 39 | 42 | { |
| 40 | 43 | static::$maxQueryDepth = (int) $maxQueryDepth; |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | $rootTypes = [$schema->getQueryType(), $schema->getMutationType(), $schema->getSubscriptionType()]; |
| 60 | 60 | |
| 61 | 61 | return [ |
| 62 | - Node::FIELD => function (Field $node) use ($context, $rootTypes) { |
|
| 62 | + Node::FIELD => function(Field $node) use ($context, $rootTypes) { |
|
| 63 | 63 | $parentType = $context->getParentType(); |
| 64 | 64 | $type = $this->retrieveCurrentTypeFromValidationContext($context); |
| 65 | 65 | $isIntrospectionType = $type && $type->name === '__Schema'; |
@@ -73,8 +73,7 @@ discard block |
||
| 73 | 73 | static::$maxQueryDepth + static::DEFAULT_MAX_COUNT_AFTER_DEPTH_LIMIT, |
| 74 | 74 | 0, |
| 75 | 75 | true |
| 76 | - ) : |
|
| 77 | - 0 |
|
| 76 | + ) : 0 |
|
| 78 | 77 | ; |
| 79 | 78 | |
| 80 | 79 | if ($depth > static::$maxQueryDepth) { |
@@ -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()) |