@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | public function register(): void |
29 | 29 | { |
30 | - $this->app->singleton(FondBot::class, function () { |
|
30 | + $this->app->singleton(FondBot::class, function() { |
|
31 | 31 | return new FondBot(); |
32 | 32 | }); |
33 | 33 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | Route::prefix('fondbot') |
53 | 53 | ->middleware('fondbot.webhook') |
54 | - ->group(function () { |
|
54 | + ->group(function() { |
|
55 | 55 | Route::get('/', 'FondBot\Foundation\Controller@index'); |
56 | 56 | Route::get('/webhook/{channel}/{secret?}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook'); |
57 | 57 | Route::post('/webhook/{channel}/{secret?}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook'); |
@@ -60,12 +60,12 @@ discard block |
||
60 | 60 | |
61 | 61 | private function registerChannelManager(): void |
62 | 62 | { |
63 | - $this->app->singleton(ChannelManagerContract::class, function () { |
|
63 | + $this->app->singleton(ChannelManagerContract::class, function() { |
|
64 | 64 | $manager = new ChannelManager($this->app); |
65 | 65 | |
66 | 66 | $manager->register( |
67 | 67 | collect(config('fondbot.channels')) |
68 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
68 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
69 | 69 | return [$name => $parameters]; |
70 | 70 | }) |
71 | 71 | ->toArray() |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | private function registerConversationManager(): void |
79 | 79 | { |
80 | - $this->app->singleton('conversation', function () { |
|
80 | + $this->app->singleton('conversation', function() { |
|
81 | 81 | $manager = new ConversationManager($this->app, $this->app[Cache::class]); |
82 | 82 | |
83 | 83 | $namespace = $this->app->getNamespace(); |
@@ -48,7 +48,7 @@ |
||
48 | 48 | // Install driver |
49 | 49 | $this->info('Installing driver...'); |
50 | 50 | |
51 | - $result = $this->composer->install($driver['package'], function ($_, $line) use (&$output) { |
|
51 | + $result = $this->composer->install($driver['package'], function($_, $line) use (&$output) { |
|
52 | 52 | $output .= $line; |
53 | 53 | }); |
54 | 54 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | $availableDrivers = $this->api->getDrivers(); |
33 | 33 | |
34 | 34 | $rows = collect($availableDrivers) |
35 | - ->transform(function ($item) use ($installedDrivers) { |
|
35 | + ->transform(function($item) use ($installedDrivers) { |
|
36 | 36 | return [ |
37 | 37 | $item['name'], |
38 | 38 | $item['package'], |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function handle(): void |
25 | 25 | { |
26 | 26 | $rows = collect($this->conversationManager->getIntents()) |
27 | - ->transform(function ($item) { |
|
27 | + ->transform(function($item) { |
|
28 | 28 | return [$item]; |
29 | 29 | }) |
30 | 30 | ->toArray(); |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function handle(): void |
25 | 25 | { |
26 | 26 | $rows = collect($this->channelManager->all()) |
27 | - ->transform(function ($item, $name) { |
|
27 | + ->transform(function($item, $name) { |
|
28 | 28 | return [ |
29 | 29 | $name, |
30 | 30 | $this->channelManager->driver($item['driver'])->getName(), |