Completed
Push — master ( 1762c3...645cf7 )
by George
11:05 queued 15s
created
src/AwsSesBounceComplaintHandlerServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
         $this->mergeConfigFrom(__DIR__.'/../config/aws-ses-bounce-complaint-handler.php', 'aws-ses-bounce-complaint-handler');
33 33
 
34 34
         // Register the service the package provides.
35
-        $this->app->singleton('aws-ses-bounce-complaint-handler', function ($app) {
35
+        $this->app->singleton('aws-ses-bounce-complaint-handler', function($app) {
36 36
             return new AwsSesBounceComplaintHandler();
37 37
         });
38 38
     }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
             __DIR__.'/../config/aws-ses-bounce-complaint-handler.php' => config_path('aws-ses-bounce-complaint-handler.php'),
56 56
         ], 'aws-ses-bounce-complaint-handler.config');
57 57
 
58
-        if (! class_exists('CreateWrongEmailsTable')) {
58
+        if (!class_exists('CreateWrongEmailsTable')) {
59 59
             $this->publishes([
60 60
                 __DIR__.'/../database/migrations/create_wrong_emails_table.php.stub' => database_path('migrations/'.date('Y_m_d_His', time()).'_create_wrong_emails_table.php'),
61 61
             ], 'migrations');
Please login to merge, or discard this patch.
database/factories/WrongEmailFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 use ag84ark\AwsSesBounceComplaintHandler\Models\WrongEmail;
4 4
 use Faker\Generator;
5 5
 
6
-$factory->define(WrongEmail::class, static function (Generator $faker) {
6
+$factory->define(WrongEmail::class, static function(Generator $faker) {
7 7
     return [
8 8
         'email' => $faker->email,
9 9
         'repeated_attempts' => $faker->randomNumber(1),
Please login to merge, or discard this patch.
src/AwsSesBounceComplaintHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
             ->get();
17 17
 
18 18
         foreach ($emails as $wrongEmail) {
19
-            if (! $wrongEmail->canBouncedSend()) {
19
+            if (!$wrongEmail->canBouncedSend()) {
20 20
                 return false;
21 21
             }
22 22
         }
Please login to merge, or discard this patch.
routes/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 use ag84ark\AwsSesBounceComplaintHandler\Http\Controllers\PackageController;
4 4
 use Illuminate\Support\Facades\Route;
5 5
 
6
-if (! config('aws-ses-bounce-complaint-handler.via_sqs')) {
6
+if (!config('aws-ses-bounce-complaint-handler.via_sqs')) {
7 7
     Route::post('amazon-sns/notifications', [PackageController::class, 'handleBounceOrComplaint'])->middleware('api');
8 8
 }
Please login to merge, or discard this patch.
src/Http/Controllers/PackageController.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@  discard block
 block discarded – undo
22 22
 
23 23
     public function handleBounceOrComplaint(Request $request): JsonResponse
24 24
     {
25
-        if (! $request->json()) {
25
+        if (!$request->json()) {
26 26
             return Response::json(['status' => 422, 'message' => 'error'], 422);
27 27
         }
28 28
 
29
-        if (! $this->canPass($request)) {
29
+        if (!$this->canPass($request)) {
30 30
             return Response::json(['status' => 403, 'message' => 'error'], 403);
31 31
         }
32 32
 
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
 
41 41
         $this->getMessageData();
42 42
 
43
-        if (! count($this->message)) {
43
+        if (!count($this->message)) {
44 44
             return Response::json(['status' => 422, 'data' => $this->data], 422);
45 45
         }
46 46
 
47
-        if (! isset($this->message['notificationType'])) {
47
+        if (!isset($this->message['notificationType'])) {
48 48
             return Response::json(['status' => 200, 'message' => 'no data']);
49 49
         }
50 50
 
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         }
61 61
 
62 62
         $secret = config('aws-ses-bounce-complaint-handler.route_secret');
63
-        if (! $secret) {
63
+        if (!$secret) {
64 64
             return true;
65 65
         }
66 66
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     private function handleSubscriptionConfirmation(): ?string
84 84
     {
85 85
         try {
86
-            if (! isset($this->data['Type']) || 'SubscriptionConfirmation' !== $this->data['Type'] || ! config('aws-ses-bounce-complaint-handler.auto_subscribe')) {
86
+            if (!isset($this->data['Type']) || 'SubscriptionConfirmation' !== $this->data['Type'] || !config('aws-ses-bounce-complaint-handler.auto_subscribe')) {
87 87
                 return null;
88 88
             }
89 89
             Log::info('SubscriptionConfirmation came at: '.$this->data['Timestamp']);
Please login to merge, or discard this patch.