From 568798688721275f0b705d638924fb7b070d018b Mon Sep 17 00:00:00 2001 From: soyuka Date: Fri, 29 Dec 2023 17:31:44 +0100 Subject: [PATCH] style: latest cs-fixer --- src/Doctrine/Odm/State/LinksHandlerInterface.php | 2 +- src/Doctrine/Odm/State/Options.php | 2 +- src/Doctrine/Orm/State/LinksHandlerInterface.php | 2 +- src/Doctrine/Orm/State/Options.php | 2 +- src/Elasticsearch/Tests/State/ItemProviderTest.php | 2 +- src/Metadata/Util/ContentNegotiationTrait.php | 2 +- src/Symfony/EventListener/ExceptionListener.php | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Doctrine/Odm/State/LinksHandlerInterface.php b/src/Doctrine/Odm/State/LinksHandlerInterface.php index 9d2835b0e2e..a60421fe1f9 100644 --- a/src/Doctrine/Odm/State/LinksHandlerInterface.php +++ b/src/Doctrine/Odm/State/LinksHandlerInterface.php @@ -24,7 +24,7 @@ interface LinksHandlerInterface /** * Handle Doctrine ORM links. * - * @see ApiPlatform\Doctrine\Odm\State\LinksHandlerTrait + * @see LinksHandlerTrait * * @param array $uriVariables * @param array{entityClass: string, operation: Operation}&array $context diff --git a/src/Doctrine/Odm/State/Options.php b/src/Doctrine/Odm/State/Options.php index edc56dceb4b..919c10f8045 100644 --- a/src/Doctrine/Odm/State/Options.php +++ b/src/Doctrine/Odm/State/Options.php @@ -20,7 +20,7 @@ class Options implements OptionsInterface /** * @param mixed $handleLinks experimental callable, typed mixed as we may want a service name in the future * - * @see \ApiPlatform\Doctrine\Odm\State\LinksHandlerInterface + * @see LinksHandlerInterface */ public function __construct( protected ?string $documentClass = null, diff --git a/src/Doctrine/Orm/State/LinksHandlerInterface.php b/src/Doctrine/Orm/State/LinksHandlerInterface.php index be78bc06bd7..98b75c078ef 100644 --- a/src/Doctrine/Orm/State/LinksHandlerInterface.php +++ b/src/Doctrine/Orm/State/LinksHandlerInterface.php @@ -25,7 +25,7 @@ interface LinksHandlerInterface /** * Handle Doctrine ORM links. * - * @see ApiPlatform\Doctrine\Orm\State\LinksHandlerTrait + * @see LinksHandlerTrait * * @param array $uriVariables * @param array{entityClass: string, operation: Operation}&array $context diff --git a/src/Doctrine/Orm/State/Options.php b/src/Doctrine/Orm/State/Options.php index e5704a253c0..50d13f1b7a4 100644 --- a/src/Doctrine/Orm/State/Options.php +++ b/src/Doctrine/Orm/State/Options.php @@ -20,7 +20,7 @@ class Options implements OptionsInterface /** * @param string|callable $handleLinks experimental callable, typed mixed as we may want a service name in the future * - * @see \ApiPlatform\Doctrine\Orm\State\LinksHandlerInterface + * @see LinksHandlerInterface */ public function __construct( protected ?string $entityClass = null, diff --git a/src/Elasticsearch/Tests/State/ItemProviderTest.php b/src/Elasticsearch/Tests/State/ItemProviderTest.php index 64fe245d8bd..0a260acef4b 100644 --- a/src/Elasticsearch/Tests/State/ItemProviderTest.php +++ b/src/Elasticsearch/Tests/State/ItemProviderTest.php @@ -91,7 +91,7 @@ public function testGetInexistantItem(): void $documentMetadataFactoryProphecy = $this->prophesize(DocumentMetadataFactoryInterface::class); - $clientClass = class_exists(\Elasticsearch\Client::class) ? \Elasticsearch\Client::class : \Elastic\Elasticsearch\ClientInterface::class; + $clientClass = class_exists(\Elasticsearch\Client::class) ? \Elasticsearch\Client::class : ClientInterface::class; $clientProphecy = $this->prophesize($clientClass); $clientProphecy->get(['index' => 'foo', 'id' => '404'])->willReturn([ diff --git a/src/Metadata/Util/ContentNegotiationTrait.php b/src/Metadata/Util/ContentNegotiationTrait.php index 4a257d81fcb..c86b2cc3c28 100644 --- a/src/Metadata/Util/ContentNegotiationTrait.php +++ b/src/Metadata/Util/ContentNegotiationTrait.php @@ -28,7 +28,7 @@ trait ContentNegotiationTrait /** * Gets the format associated with the mime type. * - * Adapted from {@see \Symfony\Component\HttpFoundation\Request::getFormat}. + * Adapted from {@see Request::getFormat}. * * @param array $formats */ diff --git a/src/Symfony/EventListener/ExceptionListener.php b/src/Symfony/EventListener/ExceptionListener.php index e3b5b0730b3..7aa50a5a995 100644 --- a/src/Symfony/EventListener/ExceptionListener.php +++ b/src/Symfony/EventListener/ExceptionListener.php @@ -36,8 +36,8 @@ public function onKernelException(ExceptionEvent $event): void // Normalize exceptions only for routes managed by API Platform if ( - false === $this->handleSymfonyErrors && - !((RequestAttributesExtractor::extractAttributes($request)['respond'] ?? $request->attributes->getBoolean('_api_respond', false)) || $request->attributes->getBoolean('_graphql', false)) + false === $this->handleSymfonyErrors + && !((RequestAttributesExtractor::extractAttributes($request)['respond'] ?? $request->attributes->getBoolean('_api_respond', false)) || $request->attributes->getBoolean('_graphql', false)) ) { return; }