Skip to content

Commit 9cb3f59

Browse files
committed
inline config check
1 parent 6e87adb commit 9cb3f59

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Utils/SchemaPrinter.php

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -598,16 +598,6 @@ protected static function printInputObject(InputObjectType $type, array $options
598598
. static::printBlock($fields);
599599
}
600600

601-
/**
602-
* @param array<string, bool> $options
603-
*
604-
* @phpstan-param Options $options
605-
*/
606-
private static function shouldIncludeAppliedDirectives(array $options): bool
607-
{
608-
return isset($options['includeAppliedDirectives']) && $options['includeAppliedDirectives'];
609-
}
610-
611601
/**
612602
* @param array<string, bool> $options
613603
* @param array<string> $excludedDirectiveNames
@@ -622,7 +612,7 @@ private static function printAppliedDirectivesIfEnabled(
622612
object $definition,
623613
array $excludedDirectiveNames = []
624614
): string {
625-
if (! self::shouldIncludeAppliedDirectives($options)) {
615+
if (! ($options['includeAppliedDirectives'] ?? false)) {
626616
return '';
627617
}
628618

0 commit comments

Comments
 (0)