diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index a94870c7..28e81cad 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -26,6 +26,9 @@ 'visibility_required' => [ 'elements' => ['property', 'method', 'const'], ], + 'method_argument_space' => [ + 'on_multiline' => 'ensure_fully_multiline', + ], 'yoda_style' => false, ]); diff --git a/src/Controller/Kobo/Api/ImageController.php b/src/Controller/Kobo/Api/ImageController.php index c1b73540..408ef093 100644 --- a/src/Controller/Kobo/Api/ImageController.php +++ b/src/Controller/Kobo/Api/ImageController.php @@ -32,8 +32,8 @@ public function __construct( protected ShelfRepository $shelfRepository, protected LoggerInterface $logger, protected DownloadHelper $downloadHelper, - protected SyncResponseFactory $syncResponseFactory) - { + protected SyncResponseFactory $syncResponseFactory, + ) { } /** diff --git a/src/Kobo/Proxy/KoboProxyLoggerFactory.php b/src/Kobo/Proxy/KoboProxyLoggerFactory.php index c2249226..55821739 100644 --- a/src/Kobo/Proxy/KoboProxyLoggerFactory.php +++ b/src/Kobo/Proxy/KoboProxyLoggerFactory.php @@ -10,8 +10,8 @@ class KoboProxyLoggerFactory { public function __construct( protected KoboProxyConfiguration $configuration, - protected LoggerInterface $koboProxyLogger) - { + protected LoggerInterface $koboProxyLogger, + ) { } public function create(string $accessToken): KoboProxyLogger diff --git a/src/Kobo/Proxy/KoboStoreProxy.php b/src/Kobo/Proxy/KoboStoreProxy.php index cd08f43b..6a2eb1c0 100644 --- a/src/Kobo/Proxy/KoboStoreProxy.php +++ b/src/Kobo/Proxy/KoboStoreProxy.php @@ -97,11 +97,13 @@ private function _proxy(Request $request, string $hostname, array $config = []): $client = $this->getClient($request); - $psrResponse = $client->send($psrRequest, [ - 'base_uri' => $hostname, - 'http_errors' => false, - 'connect_timeout' => 5, - ] + $config + $psrResponse = $client->send( + $psrRequest, + [ + 'base_uri' => $hostname, + 'http_errors' => false, + 'connect_timeout' => 5, + ] + $config ); return $this->convertResponse($psrResponse, $config['stream'] ?? true); diff --git a/tests/Controller/Kobo/Api/V1/DownloadControllerTest.php b/tests/Controller/Kobo/Api/V1/DownloadControllerTest.php index 6c0e83c2..4ca6ea10 100644 --- a/tests/Controller/Kobo/Api/V1/DownloadControllerTest.php +++ b/tests/Controller/Kobo/Api/V1/DownloadControllerTest.php @@ -43,8 +43,10 @@ public function testDownloadMissingBook(): void $client = self::getClient(); - $client?->request('GET', - sprintf('/kobo/%s/v1/download/%s.%s', KoboFixture::ACCESS_KEY, $book->getId(), MetadataResponseService::KEPUB_FORMAT)); + $client?->request( + 'GET', + sprintf('/kobo/%s/v1/download/%s.%s', KoboFixture::ACCESS_KEY, $book->getId(), MetadataResponseService::KEPUB_FORMAT) + ); self::assertResponseStatusCodeSame(403); }