Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod authored and github-actions[bot] committed Jan 5, 2024
1 parent 0d649a2 commit f006f99
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Error/FormattedError.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private static function leftPad(int $length, string $str): string
* This method only exposes the exception message when the given exception
* implements the ClientAware interface, or when debug flags are passed.
*
* For a list of available debug flags @see \GraphQL\Error\DebugFlag constants.
* For a list of available debug flags @see DebugFlag constants.
*
* @return SerializableError
*
Expand Down Expand Up @@ -170,7 +170,7 @@ public static function createFromException(\Throwable $exception, int $debugFlag
* Decorates spec-compliant $formattedError with debug entries according to $debug flags.
*
* @param SerializableError $formattedError
* @param int $debugFlag For available flags @see \GraphQL\Error\DebugFlag
* @param int $debugFlag For available flags @see DebugFlag
*
* @throws \Throwable
*
Expand Down
2 changes: 1 addition & 1 deletion src/Executor/ExecutionResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public function jsonSerialize(): array
* If debug argument is passed, output of error formatter is enriched which debugging information
* ("debugMessage", "trace" keys depending on flags).
*
* $debug argument must sum of flags from @see \GraphQL\Error\DebugFlag
* $debug argument must sum of flags from @see DebugFlag
*
* @phpstan-return SerializableResult
*
Expand Down
2 changes: 1 addition & 1 deletion src/GraphQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*
* @phpstan-import-type FieldResolver from Executor
*
* @see \GraphQL\Tests\GraphQLTest
* @see Tests\GraphQLTest
*/
class GraphQL
{
Expand Down
2 changes: 1 addition & 1 deletion src/Server/ServerConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function setPersistedQueryLoader(?callable $persistedQueryLoader): self
/**
* Set response debug flags.
*
* @see \GraphQL\Error\DebugFlag class for a list of all available flags
* @see DebugFlag class for a list of all available flags
*
* @api
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Utils/BuildSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use GraphQL\Validator\DocumentValidator;

/**
* Build instance of @see \GraphQL\Type\Schema out of schema language definition (string or parsed AST).
* Build instance of @see Schema out of schema language definition (string or parsed AST).
*
* See [schema definition language docs](schema-definition-language.md) for details.
*
Expand Down Expand Up @@ -112,11 +112,11 @@ public static function build(
}

/**
* This takes the AST of a schema from @see \GraphQL\Language\Parser::parse().
* This takes the AST of a schema from @see Parser::parse().
*
* If no schema definition is provided, then it will look for types named Query and Mutation.
*
* Given that AST it constructs a @see \GraphQL\Type\Schema. The resulting schema
* Given that AST it constructs a @see Schema. The resulting schema
* has no resolve methods, so execution will use default resolvers.
*
* @phpstan-param TypeConfigDecorator|null $typeConfigDecorator
Expand Down
2 changes: 1 addition & 1 deletion src/Validator/Rules/QuerySecurityRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected function gatherFragmentDefinition(QueryValidationContext $context): vo
* time we do not know what object type will be used, so we unconditionally
* spread in all fragments.
*
* @see \GraphQL\Validator\Rules\OverlappingFieldsCanBeMerged
* @see OverlappingFieldsCanBeMerged
*
* @param \ArrayObject<string, true>|null $visitedFragmentNames
*
Expand Down
4 changes: 2 additions & 2 deletions src/Validator/Rules/ValidationRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function getName(): string
}

/**
* Returns structure suitable for @see \GraphQL\Language\Visitor.
* Returns structure suitable for @see Visitor.
*
* @phpstan-return VisitorArray
*/
Expand All @@ -29,7 +29,7 @@ public function getVisitor(QueryValidationContext $context): array
}

/**
* Returns structure suitable for @see \GraphQL\Language\Visitor.
* Returns structure suitable for @see Visitor.
*
* @phpstan-return VisitorArray
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/Utils/SchemaExtenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ private function printASTSchema(Schema $schema): string
}

/**
* @throws \GraphQL\Error\SerializationError
* @throws \JsonException
* @throws Error
* @throws InvariantViolation
* @throws SerializationError
*/
private static function assertSchemaEquals(Schema $expectedSchema, Schema $actualSchema): void
{
Expand Down

0 comments on commit f006f99

Please sign in to comment.