Skip to content

Commit 5687986

Browse files
committed
style: latest cs-fixer
1 parent 01673aa commit 5687986

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/Doctrine/Odm/State/LinksHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface LinksHandlerInterface
2424
/**
2525
* Handle Doctrine ORM links.
2626
*
27-
* @see ApiPlatform\Doctrine\Odm\State\LinksHandlerTrait
27+
* @see LinksHandlerTrait
2828
*
2929
* @param array<string, mixed> $uriVariables
3030
* @param array{entityClass: string, operation: Operation}&array<string, mixed> $context

src/Doctrine/Odm/State/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Options implements OptionsInterface
2020
/**
2121
* @param mixed $handleLinks experimental callable, typed mixed as we may want a service name in the future
2222
*
23-
* @see \ApiPlatform\Doctrine\Odm\State\LinksHandlerInterface
23+
* @see LinksHandlerInterface
2424
*/
2525
public function __construct(
2626
protected ?string $documentClass = null,

src/Doctrine/Orm/State/LinksHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface LinksHandlerInterface
2525
/**
2626
* Handle Doctrine ORM links.
2727
*
28-
* @see ApiPlatform\Doctrine\Orm\State\LinksHandlerTrait
28+
* @see LinksHandlerTrait
2929
*
3030
* @param array<string, mixed> $uriVariables
3131
* @param array{entityClass: string, operation: Operation}&array<string, mixed> $context

src/Doctrine/Orm/State/Options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Options implements OptionsInterface
2020
/**
2121
* @param string|callable $handleLinks experimental callable, typed mixed as we may want a service name in the future
2222
*
23-
* @see \ApiPlatform\Doctrine\Orm\State\LinksHandlerInterface
23+
* @see LinksHandlerInterface
2424
*/
2525
public function __construct(
2626
protected ?string $entityClass = null,

src/Elasticsearch/Tests/State/ItemProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function testGetInexistantItem(): void
9191

9292
$documentMetadataFactoryProphecy = $this->prophesize(DocumentMetadataFactoryInterface::class);
9393

94-
$clientClass = class_exists(\Elasticsearch\Client::class) ? \Elasticsearch\Client::class : \Elastic\Elasticsearch\ClientInterface::class;
94+
$clientClass = class_exists(\Elasticsearch\Client::class) ? \Elasticsearch\Client::class : ClientInterface::class;
9595

9696
$clientProphecy = $this->prophesize($clientClass);
9797
$clientProphecy->get(['index' => 'foo', 'id' => '404'])->willReturn([

src/Metadata/Util/ContentNegotiationTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait ContentNegotiationTrait
2828
/**
2929
* Gets the format associated with the mime type.
3030
*
31-
* Adapted from {@see \Symfony\Component\HttpFoundation\Request::getFormat}.
31+
* Adapted from {@see Request::getFormat}.
3232
*
3333
* @param array<string, string|string[]> $formats
3434
*/

src/Symfony/EventListener/ExceptionListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ public function onKernelException(ExceptionEvent $event): void
3636

3737
// Normalize exceptions only for routes managed by API Platform
3838
if (
39-
false === $this->handleSymfonyErrors &&
40-
!((RequestAttributesExtractor::extractAttributes($request)['respond'] ?? $request->attributes->getBoolean('_api_respond', false)) || $request->attributes->getBoolean('_graphql', false))
39+
false === $this->handleSymfonyErrors
40+
&& !((RequestAttributesExtractor::extractAttributes($request)['respond'] ?? $request->attributes->getBoolean('_api_respond', false)) || $request->attributes->getBoolean('_graphql', false))
4141
) {
4242
return;
4343
}

0 commit comments

Comments
 (0)