Skip to content

Commit 61cecb0

Browse files
committed
Inline QueryComplexity::getMaxQueryComplexity()
1 parent 2d06997 commit 61cecb0

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Validator/Rules/QueryComplexity.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,11 +250,6 @@ protected function buildFieldArguments(FieldNode $node): array
250250
return $args;
251251
}
252252

253-
public function getMaxQueryComplexity(): int
254-
{
255-
return $this->maxQueryComplexity;
256-
}
257-
258253
/**
259254
* Set max query complexity. If equal to 0 no check is done. Must be greater or equal to 0.
260255
*/
@@ -272,6 +267,6 @@ public static function maxQueryComplexityErrorMessage(int $max, int $count): str
272267

273268
protected function isEnabled(): bool
274269
{
275-
return $this->getMaxQueryComplexity() !== self::DISABLED;
270+
return $this->maxQueryComplexity !== self::DISABLED;
276271
}
277272
}

0 commit comments

Comments
 (0)