@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | { |
| 27 | 27 | public function register(): void |
| 28 | 28 | { |
| 29 | - $this->app->singleton(FondBot::class, function () { |
|
| 29 | + $this->app->singleton(FondBot::class, function() { |
|
| 30 | 30 | return new FondBot(); |
| 31 | 31 | }); |
| 32 | 32 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | |
| 60 | 60 | Route::prefix('fondbot') |
| 61 | 61 | ->middleware('fondbot.webhook') |
| 62 | - ->group(function () { |
|
| 62 | + ->group(function() { |
|
| 63 | 63 | Route::get('/', 'FondBot\Foundation\Controller@index'); |
| 64 | 64 | Route::get('/webhook/{channel}/{secret?}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook'); |
| 65 | 65 | Route::post('/webhook/{channel}/{secret?}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook'); |
@@ -68,12 +68,12 @@ discard block |
||
| 68 | 68 | |
| 69 | 69 | private function registerChannelManager(): void |
| 70 | 70 | { |
| 71 | - $this->app->singleton(ChannelManager::class, function () { |
|
| 71 | + $this->app->singleton(ChannelManager::class, function() { |
|
| 72 | 72 | $manager = new ChannelManager($this->app); |
| 73 | 73 | |
| 74 | 74 | $manager->register( |
| 75 | 75 | collect(config('fondbot.channels')) |
| 76 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
| 76 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
| 77 | 77 | return [$name => $parameters]; |
| 78 | 78 | }) |
| 79 | 79 | ->toArray() |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | |
| 86 | 86 | private function registerConversationManager(): void |
| 87 | 87 | { |
| 88 | - $this->app->singleton(ConversationManager::class, function () { |
|
| 88 | + $this->app->singleton(ConversationManager::class, function() { |
|
| 89 | 89 | $manager = new ConversationManager($this->app, $this->app[Cache::class]); |
| 90 | 90 | |
| 91 | 91 | $namespace = $this->app->getNamespace(); |