From 5f5c7d89be829cbc619cd87f067f66bf2f08d720 Mon Sep 17 00:00:00 2001 From: Torsten Blindert Date: Tue, 2 Oct 2018 09:58:44 +0200 Subject: [PATCH] TASK: Code style #4 --- src/Validator/Rules/KnownDirectives.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Validator/Rules/KnownDirectives.php b/src/Validator/Rules/KnownDirectives.php index b179829..c0c220b 100644 --- a/src/Validator/Rules/KnownDirectives.php +++ b/src/Validator/Rules/KnownDirectives.php @@ -22,7 +22,7 @@ class KnownDirectives extends ValidationRule { public function getVisitor(ValidationContext $context) { - $locationsMap = []; + $locationsMap = []; $schema = $context->getSchema(); $definedDirectives = $schema->getDirectives(); @@ -59,7 +59,6 @@ class KnownDirectives extends ValidationRule if (! $candidateLocation || in_array($candidateLocation, $locations)) { return; } - $context->reportError( new Error( self::misplacedDirectiveMessage($name, $candidateLocation),