From 81058748d25f52c3a35ce112f7e43abdc9f38ea9 Mon Sep 17 00:00:00 2001 From: edalzell Date: Tue, 18 Apr 2023 15:41:22 -0700 Subject: [PATCH] tidy --- src/Http/Controllers/WebhookController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Controllers/WebhookController.php b/src/Http/Controllers/WebhookController.php index 105f675..d5eb888 100644 --- a/src/Http/Controllers/WebhookController.php +++ b/src/Http/Controllers/WebhookController.php @@ -20,7 +20,7 @@ class WebhookController extends Controller public function __invoke(Request $request) { - $method = 'handle' . Str::studly(str_replace('.', '_', $request->input('event'))); + $method = 'handle'.Str::studly(str_replace('.', '_', $request->input('event'))); if (method_exists($this, $method)) { return $this->{$method}($request->input('data')); @@ -39,7 +39,7 @@ private function handleAlertRaised(array $payload) return $this->handleAlert(AlertRaised::class, $payload); } - private function handleAlert($notificationClass, $payload) + private function handleAlert(string $notificationClass, array $payload) { if (! $tag = Arr::get($payload, 'service.tags.0')) { return response()->noContent();