@@ -22,11 +22,11 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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']); |