@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Channels; |
| 6 | 6 | |
@@ -15,11 +15,11 @@ discard block |
||
| 15 | 15 | */ |
| 16 | 16 | public function register(): void |
| 17 | 17 | { |
| 18 | - $this->app->singleton(ChannelManager::class, function () { |
|
| 19 | - return tap(new ChannelManager($this->app), function (ChannelManager $manager) { |
|
| 18 | + $this->app->singleton(ChannelManager::class, function() { |
|
| 19 | + return tap(new ChannelManager($this->app), function(ChannelManager $manager) { |
|
| 20 | 20 | /** @var array $channels */ |
| 21 | 21 | $channels = collect(config('fondbot.channels')) |
| 22 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
| 22 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
| 23 | 23 | return [$name => $parameters]; |
| 24 | 24 | }) |
| 25 | 25 | ->toArray(); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Conversation; |
| 6 | 6 | |
@@ -22,15 +22,15 @@ discard block |
||
| 22 | 22 | |
| 23 | 23 | private function registerSessionManager(): void |
| 24 | 24 | { |
| 25 | - $this->app->singleton(SessionManager::class, function () { |
|
| 25 | + $this->app->singleton(SessionManager::class, function() { |
|
| 26 | 26 | return new SessionManager($this->app, resolve(Cache::class)); |
| 27 | 27 | }); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | private function registerIntentManager(): void |
| 31 | 31 | { |
| 32 | - $this->app->singleton(IntentManager::class, function () { |
|
| 33 | - return tap(new IntentManager, function (IntentManager $manager) { |
|
| 32 | + $this->app->singleton(IntentManager::class, function() { |
|
| 33 | + return tap(new IntentManager, function(IntentManager $manager) { |
|
| 34 | 34 | $intents = config('fondbot.conversation.intents'); |
| 35 | 35 | $fallbackIntent = config('fondbot.conversation.fallback_intent', FallbackIntent::class); |
| 36 | 36 | |