Skip to content

Commit

Permalink
Merge branch 'main' of github.com:spatie/laravel-webhook-client
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Jul 23, 2021
2 parents 0565a78 + fbd8ae1 commit 9629d7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Models/WebhookCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public static function headersToStore(WebhookConfig $config, Request $request):
}

$headerNamesToStore = array_map(
fn(string $headerName) => strtolower($headerName),
fn (string $headerName) => strtolower($headerName),
$headerNamesToStore,
);

return collect($request->headers->all())
->filter(fn(array $headerValue, string $headerName) => in_array($headerName, $headerNamesToStore))
->filter(fn (array $headerValue, string $headerName) => in_array($headerName, $headerNamesToStore))
->toArray();
}

Expand Down
2 changes: 1 addition & 1 deletion src/WebhookConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class WebhookConfig

public string $webhookModel;

public array|string $storeHeaders;
public array | string $storeHeaders;

public string $processWebhookJobClass;

Expand Down

0 comments on commit 9629d7f

Please sign in to comment.