@@ -187,7 +187,7 @@ |
||
| 187 | 187 | /** |
| 188 | 188 | * Start conversation. |
| 189 | 189 | * |
| 190 | - * @param Conversable|Intent|Interaction $conversable |
|
| 190 | + * @param Conversable $conversable |
|
| 191 | 191 | */ |
| 192 | 192 | public function converse(Conversable $conversable): void |
| 193 | 193 | { |
@@ -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 | |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * |
| 71 | 71 | * @return Intent|null |
| 72 | 72 | */ |
| 73 | - public function getIntent(): ?Intent |
|
| 73 | + public function getIntent(): ? Intent |
|
| 74 | 74 | { |
| 75 | 75 | return $this->intent; |
| 76 | 76 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | * |
| 91 | 91 | * @return Interaction|null |
| 92 | 92 | */ |
| 93 | - public function getInteraction(): ?Interaction |
|
| 93 | + public function getInteraction(): ? Interaction |
|
| 94 | 94 | { |
| 95 | 95 | return $this->interaction; |
| 96 | 96 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | * |
| 101 | 101 | * @param Interaction|null $interaction |
| 102 | 102 | */ |
| 103 | - public function setInteraction(?Interaction $interaction): void |
|
| 103 | + public function setInteraction(? Interaction $interaction) : void |
|
| 104 | 104 | { |
| 105 | 105 | $this->interaction = $interaction; |
| 106 | 106 | } |
@@ -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 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | * |
| 24 | 24 | * @return Intent|null |
| 25 | 25 | */ |
| 26 | - public function find(Context $context, ReceivedMessage $message): ?Intent |
|
| 26 | + public function find(Context $context, ReceivedMessage $message): ? Intent |
|
| 27 | 27 | { |
| 28 | 28 | $intent = $context->getIntent(); |
| 29 | 29 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | * |
| 51 | 51 | * @return Intent|null |
| 52 | 52 | */ |
| 53 | - private function findActivator(ReceivedMessage $message): ?Intent |
|
| 53 | + private function findActivator(ReceivedMessage $message): ? Intent |
|
| 54 | 54 | { |
| 55 | 55 | foreach ($this->intents as $intent) { |
| 56 | 56 | foreach ($intent->activators() as $activator) { |