From 1d5a89d5b872636c4dfd9be10664d429475f7098 Mon Sep 17 00:00:00 2001 From: Naoray <10154100+Naoray@users.noreply.github.com> Date: Sun, 12 Jan 2025 21:07:18 +0000 Subject: [PATCH] Fix styling --- tests/Handlers/SignatureDeduplicationHandlerTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/Handlers/SignatureDeduplicationHandlerTest.php b/tests/Handlers/SignatureDeduplicationHandlerTest.php index 85e32d0..5fe187c 100644 --- a/tests/Handlers/SignatureDeduplicationHandlerTest.php +++ b/tests/Handlers/SignatureDeduplicationHandlerTest.php @@ -66,9 +66,9 @@ $this->handler->close(); $lines = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); if ($lines === false) { - throw new \RuntimeException("Failed to read deduplication store file"); + throw new \RuntimeException('Failed to read deduplication store file'); } - $signatures = array_map(fn($line) => explode(':', $line, 2)[1], $lines); + $signatures = array_map(fn ($line) => explode(':', $line, 2)[1], $lines); expect($signatures) ->toContain($this->signatureGenerator->generate($record1)) ->toContain($this->signatureGenerator->generate($record3)); @@ -109,9 +109,9 @@ // Verify deduplication store contains only the most recent entry $lines = file($this->deduplicationStore, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); if ($lines === false) { - throw new \RuntimeException("Failed to read deduplication store file"); + throw new \RuntimeException('Failed to read deduplication store file'); } - $signatures = array_map(fn($line) => explode(':', $line, 2)[1], $lines); + $signatures = array_map(fn ($line) => explode(':', $line, 2)[1], $lines); $signature = $this->signatureGenerator->generate($record); expect(array_count_values($signatures)[$signature])->toBe(1); });