@@ -6,7 +6,7 @@ |
||
| 6 | 6 | |
| 7 | 7 | $router->group( |
| 8 | 8 | ['namespace' => 'FondBot\Controllers', 'prefix' => 'fondbot'], |
| 9 | - function () use (&$router) { |
|
| 9 | + function() use (&$router) { |
|
| 10 | 10 | |
| 11 | 11 | $router->get('/', 'IndexController@show'); |
| 12 | 12 | |
@@ -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\Foundation; |
| 6 | 6 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | private function registerDriverManager(): void |
| 76 | 76 | { |
| 77 | - $this->app->singleton(DriverManager::class, function () { |
|
| 77 | + $this->app->singleton(DriverManager::class, function() { |
|
| 78 | 78 | $manager = new DriverManager; |
| 79 | 79 | $manager->register(array_get($this->config(), 'drivers', [])); |
| 80 | 80 | |
@@ -84,10 +84,10 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | private function registerChannelManager(): void |
| 86 | 86 | { |
| 87 | - $this->app->singleton(ChannelManager::class, function () { |
|
| 87 | + $this->app->singleton(ChannelManager::class, function() { |
|
| 88 | 88 | /** @var array $channels */ |
| 89 | 89 | $channels = collect(array_get($this->config(), 'channels', [])) |
| 90 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
| 90 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
| 91 | 91 | return [$name => $parameters]; |
| 92 | 92 | }) |
| 93 | 93 | ->toArray(); |
@@ -101,14 +101,14 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | private function registerConversationManager(): void |
| 103 | 103 | { |
| 104 | - $this->app->singleton(ConversationManager::class, function () { |
|
| 104 | + $this->app->singleton(ConversationManager::class, function() { |
|
| 105 | 105 | return new ConversationManager($this->app->make(Kernel::class)); |
| 106 | 106 | }); |
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | private function registerSessionManager(): void |
| 110 | 110 | { |
| 111 | - $this->app->singleton(SessionManager::class, function () { |
|
| 111 | + $this->app->singleton(SessionManager::class, function() { |
|
| 112 | 112 | return new SessionManager( |
| 113 | 113 | $this->app, |
| 114 | 114 | $this->app->make(Store::class) |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | private function registerIntentManager(): void |
| 120 | 120 | { |
| 121 | - $this->app->singleton(IntentManager::class, function () { |
|
| 121 | + $this->app->singleton(IntentManager::class, function() { |
|
| 122 | 122 | $intents = array_get($this->config(), 'intents', []); |
| 123 | 123 | $fallbackIntent = array_get($this->config(), 'fallback_intent', FallbackIntent::class); |
| 124 | 124 | |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | |
| 132 | 132 | private function registerKernel(): void |
| 133 | 133 | { |
| 134 | - $this->app->singleton(Kernel::class, function () { |
|
| 134 | + $this->app->singleton(Kernel::class, function() { |
|
| 135 | 135 | return Kernel::createInstance($this->app); |
| 136 | 136 | }); |
| 137 | 137 | } |