@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function getByDriver(string $driver): Collection |
56 | 56 | { |
57 | - return $this->channels->filter(function (array $channel) use ($driver) { |
|
57 | + return $this->channels->filter(function(array $channel) use ($driver) { |
|
58 | 58 | return $channel['driver'] === $driver; |
59 | 59 | }); |
60 | 60 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | public function initialize(Collection $parameters): DriverContract |
36 | 36 | { |
37 | - $parameters->each(function ($value, $key) { |
|
37 | + $parameters->each(function($value, $key) { |
|
38 | 38 | $key = Str::camel($key); |
39 | 39 | $this->$key = $value; |
40 | 40 | }); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function findDriver(string $name): ?array |
41 | 41 | { |
42 | - return $this->getDrivers()->first(function ($item) use ($name) { |
|
42 | + return $this->getDrivers()->first(function($item) use ($name) { |
|
43 | 43 | return $item['name'] === $name; |
44 | 44 | }); |
45 | 45 | } |
@@ -37,7 +37,7 @@ |
||
37 | 37 | // Install driver |
38 | 38 | $this->info('Installing driver...'); |
39 | 39 | |
40 | - $result = $composer->install($driver['package'], function ($_, $line) use (&$output) { |
|
40 | + $result = $composer->install($driver['package'], function($_, $line) use (&$output) { |
|
41 | 41 | $output .= $line; |
42 | 42 | }); |
43 | 43 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function handle(Manager $manager): void |
16 | 16 | { |
17 | 17 | $rows = collect($manager->getIntents()) |
18 | - ->transform(function ($item) { |
|
18 | + ->transform(function($item) { |
|
19 | 19 | return [$item]; |
20 | 20 | }) |
21 | 21 | ->toArray(); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | public function handle(ChannelManager $manager): void |
16 | 16 | { |
17 | 17 | $rows = collect($manager->all()) |
18 | - ->transform(function ($item, $name) use ($manager) { |
|
18 | + ->transform(function($item, $name) use ($manager) { |
|
19 | 19 | return [$name, $manager->driver($item['driver'])->getName(), $manager->create($name)->getWebhookUrl()]; |
20 | 20 | }) |
21 | 21 | ->toArray(); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $availableDrivers = $api->getDrivers(); |
22 | 22 | |
23 | 23 | $rows = collect($availableDrivers) |
24 | - ->transform(function ($item) use ($installedDrivers) { |
|
24 | + ->transform(function($item) use ($installedDrivers) { |
|
25 | 25 | return [ |
26 | 26 | $item['name'], |
27 | 27 | $item['package'], |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | protected function registerConversationManager(): void |
38 | 38 | { |
39 | - $this->app->singleton(ConversationManagerContract::class, function () { |
|
39 | + $this->app->singleton(ConversationManagerContract::class, function() { |
|
40 | 40 | return new ConversationManager($this->app, $this->app[CacheRepository::class]); |
41 | 41 | }); |
42 | 42 | |
@@ -48,8 +48,8 @@ discard block |
||
48 | 48 | */ |
49 | 49 | protected function registerChannelManager(): void |
50 | 50 | { |
51 | - $this->app->singleton(ChannelManagerContract::class, function () { |
|
52 | - $channels = collect(config('fondbot.channels'))->mapWithKeys(function (array $parameters, string $name) { |
|
51 | + $this->app->singleton(ChannelManagerContract::class, function() { |
|
52 | + $channels = collect(config('fondbot.channels'))->mapWithKeys(function(array $parameters, string $name) { |
|
53 | 53 | return [$name => $parameters]; |
54 | 54 | }); |
55 | 55 | |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | ->namespace('FondBot\Foundation\Http\Controllers') |
80 | 80 | ->as('fondbot.') |
81 | 81 | ->prefix('fondbot') |
82 | - ->group(function () { |
|
82 | + ->group(function() { |
|
83 | 83 | $this->loadRoutesFrom(__DIR__.'/../routes/webhooks.php'); |
84 | 84 | }); |
85 | 85 | } |