From 2a1784eec09ee8e190fc27b93e725bc518338929 Mon Sep 17 00:00:00 2001 From: Frank de Jonge Date: Tue, 14 Nov 2023 12:54:45 +0100 Subject: [PATCH] CI fixes. --- AwsS3V3Adapter.php | 2 +- AwsS3V3AdapterTest.php | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/AwsS3V3Adapter.php b/AwsS3V3Adapter.php index 3d8e551..50ea8cc 100644 --- a/AwsS3V3Adapter.php +++ b/AwsS3V3Adapter.php @@ -503,7 +503,7 @@ public function temporaryUrl(string $path, DateTimeInterface $expiresAt, Config $presignedRequestOptions = $config->get('presigned_request_options', []); $request = $this->client->createPresignedRequest($command, $expiresAt, $presignedRequestOptions); - return (string)$request->getUri(); + return (string) $request->getUri(); } catch (Throwable $exception) { throw UnableToGenerateTemporaryUrl::dueToError($path, $exception); } diff --git a/AwsS3V3AdapterTest.php b/AwsS3V3AdapterTest.php index ae8db3c..6cbf6d9 100644 --- a/AwsS3V3AdapterTest.php +++ b/AwsS3V3AdapterTest.php @@ -19,13 +19,11 @@ use League\Flysystem\UnableToCheckFileExistence; use League\Flysystem\UnableToDeleteFile; use League\Flysystem\UnableToMoveFile; -use League\Flysystem\UnableToProvideChecksum; use League\Flysystem\UnableToRetrieveMetadata; use League\Flysystem\UnableToWriteFile; use League\Flysystem\Visibility; use RuntimeException; -use function file_get_contents; use function getenv; use function iterator_to_array; @@ -125,6 +123,7 @@ public function writing_a_file_with_explicit_mime_type(): void /** * @test + * * @see https://github.com/thephpleague/flysystem-aws-s3-v3/issues/291 */ public function issue_291(): void @@ -226,6 +225,7 @@ public function fetching_unknown_mime_type_of_a_file(): void /** * @test + * * @dataProvider dpFailingMetadataGetters */ public function failing_to_retrieve_metadata(Exception $exception, string $getterName): void @@ -264,6 +264,7 @@ public function failing_to_check_for_file_existence(): void /** * @test + * * @dataProvider casesWhereHttpStreamingInfluencesSeekability */ public function streaming_reads_are_not_seekable_and_non_streaming_are(bool $streaming, bool $seekable): void @@ -290,6 +291,7 @@ public static function casesWhereHttpStreamingInfluencesSeekability(): Generator /** * @test + * * @dataProvider casesWhereHttpStreamingInfluencesSeekability */ public function configuring_http_streaming_via_options(bool $streaming): void @@ -306,6 +308,7 @@ public function configuring_http_streaming_via_options(bool $streaming): void /** * @test + * * @dataProvider casesWhereHttpStreamingInfluencesSeekability */ public function use_globally_configured_options(bool $streaming): void