@@ -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 | |
@@ -4,12 +4,12 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace FondBot\Channels\Telegram; |
| 6 | 6 | |
| 7 | +use FondBot\Channels\Telegram\Buttons\RequestContactButton; |
|
| 8 | +use FondBot\Contracts\Channels\OutgoingMessage; |
|
| 7 | 9 | use FondBot\Contracts\Channels\User; |
| 8 | -use FondBot\Conversation\Buttons\UrlButton; |
|
| 9 | 10 | use FondBot\Contracts\Conversation\Keyboard; |
| 10 | -use FondBot\Contracts\Channels\OutgoingMessage; |
|
| 11 | 11 | use FondBot\Conversation\Buttons\PayloadButton; |
| 12 | -use FondBot\Channels\Telegram\Buttons\RequestContactButton; |
|
| 12 | +use FondBot\Conversation\Buttons\UrlButton; |
|
| 13 | 13 | |
| 14 | 14 | class TelegramOutgoingMessage implements OutgoingMessage |
| 15 | 15 | { |
@@ -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\Telegram; |
| 6 | 6 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | * |
| 53 | 53 | * @return Keyboard|null |
| 54 | 54 | */ |
| 55 | - public function getKeyboard(): ?Keyboard |
|
| 55 | + public function getKeyboard(): ? Keyboard |
|
| 56 | 56 | { |
| 57 | 57 | return $this->keyboard; |
| 58 | 58 | } |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | return $payload; |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | - private function getReplyMarkup(): ?array |
|
| 79 | + private function getReplyMarkup(): ? array |
|
| 80 | 80 | { |
| 81 | 81 | if ($this->keyboard !== null) { |
| 82 | 82 | $type = $this->detectKeyboardType(); |
@@ -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; |
| 6 | 6 | |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | * |
| 97 | 97 | * @return Context|null |
| 98 | 98 | */ |
| 99 | - public function getContext(): ?Context |
|
| 99 | + public function getContext(): ? Context |
|
| 100 | 100 | { |
| 101 | 101 | return $this->context; |
| 102 | 102 | } |
@@ -216,7 +216,7 @@ discard block |
||
| 216 | 216 | string $text, |
| 217 | 217 | Keyboard $keyboard = null, |
| 218 | 218 | string $driver = null |
| 219 | - ): ?OutgoingMessage { |
|
| 219 | + ): ? OutgoingMessage { |
|
| 220 | 220 | if ($driver !== null && !$this->driver instanceof $driver) { |
| 221 | 221 | return null; |
| 222 | 222 | } |
@@ -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\Buttons; |
| 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\Conversation\Buttons; |
| 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\Conversation\Buttons; |
| 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\Telegram\Buttons; |
| 6 | 6 | |