From 36aa4757bc7c42cf3dcbd03e781c8c16719ebd58 Mon Sep 17 00:00:00 2001 From: Miguel Lima <33354683+vmiguellima@users.noreply.github.com> Date: Sat, 11 Nov 2023 23:37:49 +0000 Subject: [PATCH] Fix php sniffer errors --- src/Event/Sqs/SqsRecord.php | 5 +---- tests/Event/Sqs/SqsRecordTest.php | 5 +++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Event/Sqs/SqsRecord.php b/src/Event/Sqs/SqsRecord.php index 13f9e2f03..300b27ebc 100644 --- a/src/Event/Sqs/SqsRecord.php +++ b/src/Event/Sqs/SqsRecord.php @@ -59,10 +59,7 @@ public function getReceiptHandle(): string /** * Returns the name of the SQS queue that contains the message. - * - * Queue naming constraints: - * - * https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html + * Queue naming constraints: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/quotas-queues.html */ public function getQueueName(): string { diff --git a/tests/Event/Sqs/SqsRecordTest.php b/tests/Event/Sqs/SqsRecordTest.php index d1277be0d..b83f190ff 100644 --- a/tests/Event/Sqs/SqsRecordTest.php +++ b/tests/Event/Sqs/SqsRecordTest.php @@ -7,9 +7,10 @@ class SqsRecordTest extends TestCase { - public function test_it_can_get_queue_name_from_sqs_event() { + public function test_it_can_get_queue_name_from_sqs_event() + { $event = json_decode(file_get_contents(__DIR__ . '/sqs.json'), true); - + $sqsRecord = new SqsRecord($event['Records'][0]); $this->assertSame($sqsRecord->getQueueName(), 'my-queue');