From 62748279d4779ed49faf6a92ec812e7119bf436b Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Tue, 24 Apr 2018 15:34:09 +0200 Subject: [PATCH] Cleanup imports --- src/Executor/ExecutionResult.php | 5 ++--- src/Executor/Values.php | 5 ----- src/Language/AST/Node.php | 1 - src/Type/Definition/CustomScalarType.php | 1 - src/Type/Definition/Type.php | 3 --- src/Type/EagerResolution.php | 3 --- src/Utils/AST.php | 1 - src/Validator/Rules/CustomValidationRule.php | 1 - src/Validator/Rules/FieldsOnCorrectType.php | 2 -- src/Validator/Rules/KnownFragmentNames.php | 2 -- src/Validator/Rules/KnownTypeNames.php | 1 - src/Validator/Rules/LoneAnonymousOperation.php | 1 - src/Validator/Rules/NoFragmentCycles.php | 3 --- src/Validator/Rules/PossibleFragmentSpreads.php | 1 - src/Validator/Rules/ProvidedNonNullArguments.php | 3 --- src/Validator/Rules/QueryComplexity.php | 1 - src/Validator/Rules/UniqueFragmentNames.php | 2 -- src/Validator/Rules/UniqueInputFieldNames.php | 1 - src/Validator/Rules/UniqueOperationNames.php | 1 - src/Validator/Rules/UniqueVariableNames.php | 1 - 20 files changed, 2 insertions(+), 37 deletions(-) diff --git a/src/Executor/ExecutionResult.php b/src/Executor/ExecutionResult.php index c9ec782..d998b96 100644 --- a/src/Executor/ExecutionResult.php +++ b/src/Executor/ExecutionResult.php @@ -1,7 +1,6 @@ data) { $result['data'] = $this->data; } - + if (!empty($this->extensions)) { $result['extensions'] = (array) $this->extensions; } diff --git a/src/Executor/Values.php b/src/Executor/Values.php index c8353c4..372d63f 100644 --- a/src/Executor/Values.php +++ b/src/Executor/Values.php @@ -13,21 +13,16 @@ use GraphQL\Language\AST\NodeList; use GraphQL\Language\AST\VariableNode; use GraphQL\Language\AST\VariableDefinitionNode; use GraphQL\Language\Printer; -use GraphQL\Type\Definition\EnumType; -use GraphQL\Type\Definition\ScalarType; use GraphQL\Type\Schema; use GraphQL\Type\Definition\Directive; use GraphQL\Type\Definition\FieldDefinition; -use GraphQL\Type\Definition\InputObjectType; use GraphQL\Type\Definition\InputType; -use GraphQL\Type\Definition\ListOfType; use GraphQL\Type\Definition\NonNull; use GraphQL\Type\Definition\Type; use GraphQL\Utils\AST; use GraphQL\Utils\TypeInfo; use GraphQL\Utils\Utils; use GraphQL\Utils\Value; -use GraphQL\Validator\DocumentValidator; class Values { diff --git a/src/Language/AST/Node.php b/src/Language/AST/Node.php index 6b42fe2..e12deec 100644 --- a/src/Language/AST/Node.php +++ b/src/Language/AST/Node.php @@ -1,7 +1,6 @@