We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -121,6 +121,9 @@ |
||
121 | 121 | return $node; |
122 | 122 | } |
123 | 123 | |
124 | + /** |
|
125 | + * @param string $name |
|
126 | + */ |
|
124 | 127 | private function addFieldsSelection($name, $enabledBuilder = true) |
125 | 128 | { |
126 | 129 | $builder = new TreeBuilder(); |
@@ -13,6 +13,9 @@ |
||
13 | 13 | |
14 | 14 | trait DIContainerMockTrait |
15 | 15 | { |
16 | + /** |
|
17 | + * @return null|\Symfony\Component\DependencyInjection\ContainerInterface |
|
18 | + */ |
|
16 | 19 | private function getDIContainerMock(array $services = [], array $parameters = []) |
17 | 20 | { |
18 | 21 | $container = $this->getMock('Symfony\\Component\\DependencyInjection\\Container', ['get', 'getParameter', 'has']); |
@@ -149,6 +149,9 @@ |
||
149 | 149 | return $treatedOptions; |
150 | 150 | } |
151 | 151 | |
152 | + /** |
|
153 | + * @param callable $expression |
|
154 | + */ |
|
152 | 155 | private function resolveAccessAndWrapResolveCallback($expression, callable $resolveCallback = null) |
153 | 156 | { |
154 | 157 | return function () use ($expression, $resolveCallback) { |
@@ -41,6 +41,7 @@ |
||
41 | 41 | * check if equal to 0 no check is done. Must be greater or equal to 0. |
42 | 42 | * |
43 | 43 | * @param $value |
44 | + * @param string $name |
|
44 | 45 | */ |
45 | 46 | protected static function checkIfGreaterOrEqualToZero($name, $value) |
46 | 47 | { |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use GraphQL\Error; |
15 | 15 | use GraphQL\Executor\Values; |
16 | 16 | use GraphQL\Language\AST\Field; |
17 | -use GraphQL\Language\AST\FragmentSpread; |
|
18 | 17 | use GraphQL\Language\AST\Node; |
19 | 18 | use GraphQL\Language\AST\OperationDefinition; |
20 | 19 | use GraphQL\Language\AST\SelectionSet; |
@@ -12,10 +12,8 @@ |
||
12 | 12 | namespace Overblog\GraphQLBundle\Request\Validator\Rule; |
13 | 13 | |
14 | 14 | use GraphQL\Error; |
15 | -use GraphQL\Language\AST\Field; |
|
16 | 15 | use GraphQL\Language\AST\Node; |
17 | 16 | use GraphQL\Language\AST\OperationDefinition; |
18 | -use GraphQL\Language\AST\SelectionSet; |
|
19 | 17 | use GraphQL\Validator\ValidationContext; |
20 | 18 | |
21 | 19 | class QueryDepth extends AbstractQuerySecurity |