Skip to content

Commit f72fc61

Browse files
committed
Improved workflow
1 parent 88a9919 commit f72fc61

6 files changed

+41
-1
lines changed

config/sqs-queue-reader.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
/**
46
* List of plain SQS queues and their corresponding handling classes
57
*/

pint.json

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"preset": "laravel",
3+
"rules": {
4+
"@PSR12": true,
5+
"simplified_null_return": true,
6+
"braces": false,
7+
"new_with_braces": {
8+
"anonymous_class": false,
9+
"named_class": false
10+
},
11+
"single_quote": {
12+
"strings_containing_single_quote_chars": true
13+
},
14+
"blank_line_before_statement": {
15+
"statements": [
16+
"break",
17+
"continue",
18+
"declare",
19+
"return",
20+
"throw",
21+
"try"
22+
]
23+
},
24+
"declare_strict_types": true,
25+
"not_operator_with_successor_space": true
26+
},
27+
"exclude": [
28+
"build"
29+
]
30+
}

src/Jobs/DispatcherJob.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace palPalani\SqsQueueReader\Jobs;
46

57
use Illuminate\Bus\Queueable;

src/SqsQueueReaderServiceProvider.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace palPalani\SqsQueueReader;
46

57
use Aws\Exception\AwsException;
@@ -48,7 +50,7 @@ public function register(): void
4850

4951
$this->app->booted(function () {
5052
$this->app['queue']->extend('sqs-json', static function () {
51-
return new Connector();
53+
return new Connector;
5254
});
5355
});
5456
}

tests/QueueTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace palPalani\SqsQueueReader\Tests;
46

57
use palPalani\SqsQueueReader\Jobs\DispatcherJob;

tests/TestCase.php

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<?php
22

3+
declare(strict_types=1);
4+
35
namespace palPalani\SqsQueueReader\Tests;
46

57
use Orchestra\Testbench\TestCase as Orchestra;

0 commit comments

Comments
 (0)