@@ -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 | |
@@ -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'], |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | 'fondbot' |
| 36 | 36 | ); |
| 37 | 37 | |
| 38 | - $this->app->singleton(FondBot::class, function () { |
|
| 38 | + $this->app->singleton(FondBot::class, function() { |
|
| 39 | 39 | return new FondBot(config('fondbot')); |
| 40 | 40 | }); |
| 41 | 41 | |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | Route::namespace('FondBot\Foundation\Http\Controllers') |
| 76 | 76 | ->as('fondbot.') |
| 77 | 77 | ->prefix('fondbot') |
| 78 | - ->group(function () { |
|
| 78 | + ->group(function() { |
|
| 79 | 79 | $this->loadRoutesFrom(__DIR__.'/../routes/webhooks.php'); |
| 80 | 80 | }); |
| 81 | 81 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function handle(): void |
| 25 | 25 | { |
| 26 | 26 | $rows = collect($this->app->intents()) |
| 27 | - ->transform(function ($item) { |
|
| 27 | + ->transform(function($item) { |
|
| 28 | 28 | return [$item]; |
| 29 | 29 | }) |
| 30 | 30 | ->toArray(); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | public function handle(): void |
| 26 | 26 | { |
| 27 | 27 | $rows = collect($this->app->channels()) |
| 28 | - ->map(function (Channel $channel) { |
|
| 28 | + ->map(function(Channel $channel) { |
|
| 29 | 29 | return [ |
| 30 | 30 | $channel->getName(), |
| 31 | 31 | $channel->getDriver()->getName(), |
@@ -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 | }); |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | private function registerChannels(array $channels): void |
| 168 | 168 | { |
| 169 | 169 | $this->channels = collect($channels) |
| 170 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
| 170 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
| 171 | 171 | $driverCallback = $this->drivers[$parameters['driver']]; |
| 172 | 172 | |
| 173 | 173 | /** @var Driver $driver */ |