@@ -14,11 +14,11 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |