Test Setup Failed
Branch master (711c0f)
by George
10:13
created
Category
src/AwsSesBounceComplaintHandler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@  discard block
 block discarded – undo
18 18
 
19 19
     public function handleBounceOrComplaint(Request $request): JsonResponse
20 20
     {
21
-        if (! $request->json()) {
21
+        if (!$request->json()) {
22 22
             return Response::json(['status' => 422, 'message' => 'error'], 422);
23 23
         }
24 24
 
25
-        if (! $this->canPass($request)) {
25
+        if (!$this->canPass($request)) {
26 26
             return Response::json(['status' => 403, 'message' => 'error'], 403);
27 27
         }
28 28
 
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
 
41 41
         $message = $this->getMessageData($request, $data);
42 42
 
43
-        if (! count($message)) {
43
+        if (!count($message)) {
44 44
             return Response::json(['status' => 422, 'data' => $data], 422);
45 45
         }
46 46
 
47
-        if (! isset($message['notificationType'])) {
47
+        if (!isset($message['notificationType'])) {
48 48
             return Response::json(['status' => 200, 'message' => 'no data']);
49 49
         }
50 50
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             ->get();
94 94
 
95 95
         foreach ($emails as $wrongEmail) {
96
-            if (! $wrongEmail->canBouncedSend()) {
96
+            if (!$wrongEmail->canBouncedSend()) {
97 97
                 return false;
98 98
             }
99 99
         }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         }
133 133
 
134 134
         $secret = config('aws-ses-bounce-complaint-handler.route_secret');
135
-        if (! $secret) {
135
+        if (!$secret) {
136 136
             return  true;
137 137
         }
138 138
 
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
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $this->mergeConfigFrom(__DIR__.'/../config/aws-ses-bounce-complaint-handler.php', 'aws-ses-bounce-complaint-handler');
35 35
 
36 36
         // Register the service the package provides.
37
-        $this->app->singleton('aws-ses-bounce-complaint-handler', function ($app) {
37
+        $this->app->singleton('aws-ses-bounce-complaint-handler', function($app) {
38 38
             return new AwsSesBounceComplaintHandler;
39 39
         });
40 40
     }
Please login to merge, or discard this patch.
src/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.
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.