Skip to content

Commit

Permalink
Fix php sniffer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vmiguellima committed Nov 11, 2023
1 parent 15b4b8e commit 36aa475
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions src/Event/Sqs/SqsRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
5 changes: 3 additions & 2 deletions tests/Event/Sqs/SqsRecordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 36aa475

Please sign in to comment.