Skip to content

Commit

Permalink
style: latest cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Dec 29, 2023
1 parent 01673aa commit 5687986
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Doctrine/Odm/State/LinksHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface LinksHandlerInterface
/**
* Handle Doctrine ORM links.
*
* @see ApiPlatform\Doctrine\Odm\State\LinksHandlerTrait
* @see LinksHandlerTrait
*
* @param array<string, mixed> $uriVariables
* @param array{entityClass: string, operation: Operation}&array<string, mixed> $context
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Odm/State/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Orm/State/LinksHandlerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface LinksHandlerInterface
/**
* Handle Doctrine ORM links.
*
* @see ApiPlatform\Doctrine\Orm\State\LinksHandlerTrait
* @see LinksHandlerTrait
*
* @param array<string, mixed> $uriVariables
* @param array{entityClass: string, operation: Operation}&array<string, mixed> $context
Expand Down
2 changes: 1 addition & 1 deletion src/Doctrine/Orm/State/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/Elasticsearch/Tests/State/ItemProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand Down
2 changes: 1 addition & 1 deletion src/Metadata/Util/ContentNegotiationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, string|string[]> $formats
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Symfony/EventListener/ExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5687986

Please sign in to comment.