@@ -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 | } |
@@ -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 | } |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | public function register(): void |
| 13 | 13 | { |
| 14 | - $this->app->singleton(Kernel::class, function () { |
|
| 14 | + $this->app->singleton(Kernel::class, function() { |
|
| 15 | 15 | return new Kernel; |
| 16 | 16 | }); |
| 17 | 17 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | |
| 79 | 79 | private function registerManager(): void |
| 80 | 80 | { |
| 81 | - $this->app->singleton('conversation', function () { |
|
| 81 | + $this->app->singleton('conversation', function() { |
|
| 82 | 82 | return new ConversationManager($this->app, $this->app[Cache::class]); |
| 83 | 83 | }); |
| 84 | 84 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | $manager->register( |
| 34 | 34 | collect($this->channels()) |
| 35 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
| 35 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
| 36 | 36 | return [$name => $parameters]; |
| 37 | 37 | }) |
| 38 | 38 | ->toArray() |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | private function registerManager(): void |
| 53 | 53 | { |
| 54 | - $this->app->singleton(Manager::class, function () { |
|
| 54 | + $this->app->singleton(Manager::class, function() { |
|
| 55 | 55 | return new ChannelManager($this->app); |
| 56 | 56 | }); |
| 57 | 57 | |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | { |
| 16 | 16 | Route::get('/', 'FondBot\Foundation\Controller@index'); |
| 17 | 17 | |
| 18 | - Route::group(['middleware' => 'fondbot.webhook'], function () { |
|
| 18 | + Route::group(['middleware' => 'fondbot.webhook'], function() { |
|
| 19 | 19 | Route::get('webhook/{channel}/{secret?}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook'); |
| 20 | 20 | Route::post('webhook/{channel}/{secret?}', 'FondBot\Foundation\Controller@webhook')->name('fondbot.webhook'); |
| 21 | 21 | }); |
@@ -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'], |
@@ -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(); |
@@ -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 | |