@@ -102,8 +102,8 @@ |
||
| 102 | 102 | { |
| 103 | 103 | Route::middleware(InitializeKernel::class) |
| 104 | 104 | ->namespace('FondBot\Foundation\Http\Controllers') |
| 105 | - ->group(function () { |
|
| 106 | - Route::group(['middleware' => 'fondbot.webhook'], function () { |
|
| 105 | + ->group(function() { |
|
| 106 | + Route::group(['middleware' => 'fondbot.webhook'], function() { |
|
| 107 | 107 | Route::get('/fondbot/{channel}/{secret?}', 'WebhookController@store')->name('fondbot.webhook'); |
| 108 | 108 | Route::post('/fondbot/{channel}/{secret?}', 'WebhookController@store')->name('fondbot.webhook'); |
| 109 | 109 | }); |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | protected function registerConversationManager(): void |
| 32 | 32 | { |
| 33 | - $this->app->singleton(ConversationManagerContract::class, function () { |
|
| 33 | + $this->app->singleton(ConversationManagerContract::class, function() { |
|
| 34 | 34 | return new ConversationManager($this->app, $this->app[Cache::class]); |
| 35 | 35 | }); |
| 36 | 36 | |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | protected function registerChannelManager(): void |
| 41 | 41 | { |
| 42 | - $this->app->singleton(ChannelManagerContract::class, function () { |
|
| 43 | - $channels = collect(config('fondbot.channels'))->mapWithKeys(function (array $parameters, string $name) { |
|
| 42 | + $this->app->singleton(ChannelManagerContract::class, function() { |
|
| 43 | + $channels = collect(config('fondbot.channels'))->mapWithKeys(function(array $parameters, string $name) { |
|
| 44 | 44 | return [$name => $parameters]; |
| 45 | 45 | }); |
| 46 | 46 | |