Skip to content

Commit

Permalink
Apply fixes from StyleCI (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze authored Jan 20, 2020
1 parent 54c3a66 commit 84fa312
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WebhookClientServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down

0 comments on commit 84fa312

Please sign in to comment.