TASK: Code style #4

This commit is contained in:
Torsten Blindert 2018-10-02 09:58:44 +02:00
parent 5a1caf0549
commit 5f5c7d89be

View File

@ -22,7 +22,7 @@ class KnownDirectives extends ValidationRule
{ {
public function getVisitor(ValidationContext $context) public function getVisitor(ValidationContext $context)
{ {
$locationsMap = []; $locationsMap = [];
$schema = $context->getSchema(); $schema = $context->getSchema();
$definedDirectives = $schema->getDirectives(); $definedDirectives = $schema->getDirectives();
@ -59,7 +59,6 @@ class KnownDirectives extends ValidationRule
if (! $candidateLocation || in_array($candidateLocation, $locations)) { if (! $candidateLocation || in_array($candidateLocation, $locations)) {
return; return;
} }
$context->reportError( $context->reportError(
new Error( new Error(
self::misplacedDirectiveMessage($name, $candidateLocation), self::misplacedDirectiveMessage($name, $candidateLocation),