@@ -138,7 +138,7 @@ |
||
| 138 | 138 | * @param string $alias |
| 139 | 139 | * @param array $args |
| 140 | 140 | * |
| 141 | - * @return mixed |
|
| 141 | + * @return \Psr\Http\Message\MessageInterface |
|
| 142 | 142 | * |
| 143 | 143 | * @throws \Psr\Container\ContainerExceptionInterface |
| 144 | 144 | */ |
@@ -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 | |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | * |
| 44 | 44 | * @return Channel|null |
| 45 | 45 | */ |
| 46 | - public function getChannel(): ?Channel |
|
| 46 | + public function getChannel(): ? Channel |
|
| 47 | 47 | { |
| 48 | 48 | return $this->channel; |
| 49 | 49 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @return Driver|null |
| 65 | 65 | */ |
| 66 | - public function getDriver(): ?Driver |
|
| 66 | + public function getDriver(): ? Driver |
|
| 67 | 67 | { |
| 68 | 68 | return $this->driver; |
| 69 | 69 | } |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | * |
| 84 | 84 | * @return Session|null |
| 85 | 85 | */ |
| 86 | - public function getSession(): ?Session |
|
| 86 | + public function getSession(): ? Session |
|
| 87 | 87 | { |
| 88 | 88 | return $this->session; |
| 89 | 89 | } |
@@ -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 @@ 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 | } |