@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | * @param string $channelName |
| 26 | 26 | * @param Request $request |
| 27 | 27 | * |
| 28 | - * @return mixed |
|
| 28 | + * @return string |
|
| 29 | 29 | */ |
| 30 | 30 | public function handle(string $channelName, Request $request) |
| 31 | 31 | { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * Start conversation. |
| 82 | 82 | * |
| 83 | - * @param Conversable|mixed $conversable |
|
| 83 | + * @param Conversable $conversable |
|
| 84 | 84 | */ |
| 85 | 85 | public function converse(Conversable $conversable): void |
| 86 | 86 | { |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | /** |
| 115 | 115 | * Restart intent or interaction. |
| 116 | 116 | * |
| 117 | - * @param Conversable|mixed $conversable |
|
| 117 | + * @param Conversable $conversable |
|
| 118 | 118 | */ |
| 119 | 119 | public function restart(Conversable $conversable): void |
| 120 | 120 | { |
@@ -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\Conversation; |
| 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\Conversation; |
| 6 | 6 | |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function register() |
| 23 | 23 | { |
| 24 | - $this->container->share(ConversationManager::class, function () { |
|
| 24 | + $this->container->share(ConversationManager::class, function() { |
|
| 25 | 25 | return new ConversationManager; |
| 26 | 26 | }); |
| 27 | 27 | } |
@@ -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\Application; |
| 6 | 6 | |
@@ -38,13 +38,13 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function register(): void |
| 40 | 40 | { |
| 41 | - $this->container->share('request', function () { |
|
| 41 | + $this->container->share('request', function() { |
|
| 42 | 42 | return ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES); |
| 43 | 43 | }); |
| 44 | 44 | $this->container->share('response', Response::class); |
| 45 | 45 | $this->container->share('emitter', SapiEmitter::class); |
| 46 | 46 | |
| 47 | - $this->container->share('router', function () { |
|
| 47 | + $this->container->share('router', function() { |
|
| 48 | 48 | $router = new RouteCollection($this->container); |
| 49 | 49 | |
| 50 | 50 | $controller = new Controller; |
@@ -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\Contracts; |
| 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 | namespace FondBot\Channels\Exceptions; |
| 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 | namespace FondBot\Drivers; |
| 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\Drivers; |
| 6 | 6 | |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | // If template can compile itself we recursively compile subelements |
| 68 | 68 | if ($template instanceof Arrayable) { |
| 69 | 69 | $array = $template->toArray(); |
| 70 | - $transformer = function ($value) use (&$transformer, $args) { |
|
| 70 | + $transformer = function($value) use (&$transformer, $args) { |
|
| 71 | 71 | if (is_array($value)) { |
| 72 | 72 | return array_map($transformer, $value); |
| 73 | 73 | } elseif ($value instanceof Arrayable) { |
@@ -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\Commands; |
| 6 | 6 | |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $items = json_decode((string) $response->getBody(), true); |
| 26 | 26 | |
| 27 | 27 | $drivers = collect($items) |
| 28 | - ->map(function ($item) { |
|
| 28 | + ->map(function($item) { |
|
| 29 | 29 | return [$item['name'], $item['package'], $item['official'] ? '✅' : '❌']; |
| 30 | 30 | }) |
| 31 | 31 | ->toArray(); |
@@ -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\Conversation\Activators; |
| 6 | 6 | |