Passed
Push — master ( 1bfe98...09fe79 )
by George
04:47
created
database/migrations/2020_07_17_204234_create_wrong_emails_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
     public function up(): void
10 10
     {
11
-        Schema::create('wrong_emails', function (Blueprint $table) {
11
+        Schema::create('wrong_emails', function(Blueprint $table) {
12 12
             $table->bigIncrements('id');
13 13
             $table->string('email', 60);
14 14
             $table->string('problem_type', 30);
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
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 
3 3
 use Illuminate\Support\Facades\Route;
4 4
 
5
-if (! config('aws-ses-bounce-complaint-handler.via_sqs')) {
5
+if (!config('aws-ses-bounce-complaint-handler.via_sqs')) {
6 6
     Route::post('amazon-sns/notifications', '\ag84ark\AwsSesBounceComplaintHandler\AwsSesBounceComplaintHandler@handleBounceOrComplaint')->middleware('api');
7 7
 }
Please login to merge, or discard this patch.
src/AwsSesBounceComplaintHandlerServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 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
     }
Please login to merge, or discard this patch.
src/AwsSesBounceComplaintHandler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -14,11 +14,11 @@  discard block
 block discarded – undo
14 14
 {
15 15
     public function handleBounceOrComplaint(Request $request): JsonResponse
16 16
     {
17
-        if (! $request->json()) {
17
+        if (!$request->json()) {
18 18
             return Response::json(['status' => 422, 'message' => 'error'], 422);
19 19
         }
20 20
 
21
-        if (! $this->canPass($request)) {
21
+        if (!$this->canPass($request)) {
22 22
             return Response::json(['status' => 403, 'message' => 'error'], 403);
23 23
         }
24 24
 
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
 
31 31
         $message = $this->getMessageData($request, $data);
32 32
 
33
-        if (! count($message)) {
33
+        if (!count($message)) {
34 34
             return Response::json(['status' => 422, 'data' => $data], 422);
35 35
         }
36 36
 
37
-        if (! isset($message['notificationType'])) {
37
+        if (!isset($message['notificationType'])) {
38 38
             return Response::json(['status' => 200, 'message' => 'no data']);
39 39
         }
40 40
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             ->get();
53 53
 
54 54
         foreach ($emails as $wrongEmail) {
55
-            if (! $wrongEmail->canBouncedSend()) {
55
+            if (!$wrongEmail->canBouncedSend()) {
56 56
                 return false;
57 57
             }
58 58
         }
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         }
86 86
 
87 87
         $secret = config('aws-ses-bounce-complaint-handler.route_secret');
88
-        if (! $secret) {
88
+        if (!$secret) {
89 89
             return  true;
90 90
         }
91 91
 
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, function (Generator $faker) {
6
+$factory->define(WrongEmail::class, 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.