Skip to content

Commit a74eb80

Browse files
authoredOct 13, 2021
Formatting
1 parent 64cea92 commit a74eb80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/Http/Controllers/SesWebhook.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ protected function onNotification(array $snsMessage, Request $request): void
1919
{
2020
$decodedMessage = json_decode($snsMessage['Message'], true);
2121

22-
$typeKey = (array_key_exists("eventType", $decodedMessage) ? "eventType" : "notificationType");
23-
22+
$typeKey = array_key_exists('eventType', $decodedMessage) ? 'eventType' : 'notificationType';
2423
$eventType = $decodedMessage[$typeKey] ?? null;
2524

2625
$methodToCall = 'on'.Str::studly($eventType);

0 commit comments

Comments
 (0)
Please sign in to comment.