@@ -18,11 +18,11 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -3,7 +3,7 @@ |
||
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), |
@@ -32,7 +32,7 @@ |
||
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 | } |