mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-04-02 20:26:09 +03:00
TASK: Code style #4
This commit is contained in:
parent
5a1caf0549
commit
5f5c7d89be
1 changed files with 1 additions and 2 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Reference in a new issue