diff --git a/src/WebhookClientServiceProvider.php b/src/WebhookClientServiceProvider.php index d3abc14..bd128c2 100644 --- a/src/WebhookClientServiceProvider.php +++ b/src/WebhookClientServiceProvider.php @@ -25,13 +25,13 @@ public function boot() ], 'migrations'); } - Route::macro('webhooks', fn(string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->name("webhook-client-{$name}")); + Route::macro('webhooks', fn (string $url, string $name = 'default') => Route::post($url, '\Spatie\WebhookClient\WebhookController')->name("webhook-client-{$name}")); $this->app->singleton(WebhookConfigRepository::class, function () { $configRepository = new WebhookConfigRepository(); collect(config('webhook-client.configs')) - ->map(fn(array $config) => new WebhookConfig($config)) + ->map(fn (array $config) => new WebhookConfig($config)) ->each(function (WebhookConfig $webhookConfig) use ($configRepository) { $configRepository->addConfig($webhookConfig); });