@@ -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\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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * |
23 | 23 | * @return Intent|null |
24 | 24 | */ |
25 | - public function find(ReceivedMessage $message): ?Intent |
|
25 | + public function find(ReceivedMessage $message): ? Intent |
|
26 | 26 | { |
27 | 27 | foreach ($this->intents as $intent) { |
28 | 28 | foreach ($intent->activators() as $activator) { |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | namespace FondBot\Conversation; |
6 | 6 | |
7 | -use FondBot\Contracts\Conversation\Intent; |
|
8 | 7 | use FondBot\Contracts\Channels\ReceivedMessage; |
8 | +use FondBot\Contracts\Conversation\Intent; |
|
9 | 9 | |
10 | 10 | class IntentManager |
11 | 11 | { |
@@ -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\Traits; |
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\Contracts\Conversation; |
6 | 6 |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * Get current intent instance. |
71 | 71 | * |
72 | - * @return Intent|Conversable|null |
|
72 | + * @return null|Intent |
|
73 | 73 | */ |
74 | 74 | public function getIntent(): ?Intent |
75 | 75 | { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * Get current interaction instance. |
91 | 91 | * |
92 | - * @return Interaction|Conversable|null |
|
92 | + * @return null|Interaction |
|
93 | 93 | */ |
94 | 94 | public function getInteraction(): ?Interaction |
95 | 95 | { |
@@ -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 | |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @return Intent|Conversable|null |
73 | 73 | */ |
74 | - public function getIntent(): ?Intent |
|
74 | + public function getIntent(): ? Intent |
|
75 | 75 | { |
76 | 76 | return $this->intent; |
77 | 77 | } |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * |
92 | 92 | * @return Interaction|Conversable|null |
93 | 93 | */ |
94 | - public function getInteraction(): ?Interaction |
|
94 | + public function getInteraction(): ? Interaction |
|
95 | 95 | { |
96 | 96 | return $this->interaction; |
97 | 97 | } |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | * |
102 | 102 | * @param Interaction|null $interaction |
103 | 103 | */ |
104 | - public function setInteraction(?Interaction $interaction): void |
|
104 | + public function setInteraction(? Interaction $interaction) : void |
|
105 | 105 | { |
106 | 106 | $this->interaction = $interaction; |
107 | 107 | } |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | namespace FondBot\Conversation; |
6 | 6 | |
7 | -use FondBot\Contracts\Channels\User; |
|
8 | -use FondBot\Contracts\Core\Arrayable; |
|
9 | -use FondBot\Contracts\Conversation\Intent; |
|
10 | 7 | use FondBot\Contracts\Channels\ReceivedMessage; |
8 | +use FondBot\Contracts\Channels\User; |
|
11 | 9 | use FondBot\Contracts\Conversation\Conversable; |
10 | +use FondBot\Contracts\Conversation\Intent; |
|
12 | 11 | use FondBot\Contracts\Conversation\Interaction; |
12 | +use FondBot\Contracts\Core\Arrayable; |
|
13 | 13 | |
14 | 14 | class Context implements Arrayable |
15 | 15 | { |
@@ -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 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace FondBot\Contracts\Channels; |
6 | 6 | |
@@ -14,14 +14,14 @@ discard block |
||
14 | 14 | * |
15 | 15 | * @return string|null |
16 | 16 | */ |
17 | - public function getText(): ?string; |
|
17 | + public function getText(): ? string; |
|
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Get location. |
21 | 21 | * |
22 | 22 | * @return Location|null |
23 | 23 | */ |
24 | - public function getLocation(): ?Location; |
|
24 | + public function getLocation(): ? Location; |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Determine if message has attachment. |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return Attachment|null |
37 | 37 | */ |
38 | - public function getAttachment(): ?Attachment; |
|
38 | + public function getAttachment(): ? Attachment; |
|
39 | 39 | |
40 | 40 | /** |
41 | 41 | * Determine if message has payload. |
@@ -49,5 +49,5 @@ discard block |
||
49 | 49 | * |
50 | 50 | * @return string|null |
51 | 51 | */ |
52 | - public function getData(): ?string; |
|
52 | + public function getData(): ? string; |
|
53 | 53 | } |