Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
edalzell committed Apr 18, 2023
1 parent ed59351 commit 8105874
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Controllers/WebhookController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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();
Expand Down

0 comments on commit 8105874

Please sign in to comment.