@@ -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\Providers; |
| 6 | 6 | |
@@ -78,7 +78,7 @@ discard block |
||
| 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 | |
@@ -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\Conversation; |
| 6 | 6 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * |
| 99 | 99 | * @return Context |
| 100 | 100 | */ |
| 101 | - public function setInteraction(?Interaction $interaction): Context |
|
| 101 | + public function setInteraction(?Interaction $interaction) : Context |
|
| 102 | 102 | { |
| 103 | 103 | $this->interaction = $interaction; |
| 104 | 104 | |
@@ -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 | |
@@ -37,9 +37,9 @@ discard block |
||
| 37 | 37 | * |
| 38 | 38 | * @return array|null |
| 39 | 39 | */ |
| 40 | - public function findDriver(string $name): ?array |
|
| 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 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Foundation\Providers; |
| 6 | 6 | |
@@ -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\Providers; |
| 6 | 6 | |
@@ -11,7 +11,7 @@ discard block |
||
| 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 | } |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | return [ |
| 6 | 6 | |
@@ -1,6 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | return [ |
| 6 | 6 | |
@@ -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\Channels; |
| 6 | 6 | |
@@ -54,7 +54,7 @@ discard block |
||
| 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 | } |
@@ -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\Toolbelt; |
| 6 | 6 | |
@@ -15,7 +15,7 @@ discard block |
||
| 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(); |