@@ -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 | |
@@ -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\Foundation; |
| 6 | 6 | |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | * |
| 86 | 86 | * @return Channel|null |
| 87 | 87 | */ |
| 88 | - public function getChannel(): ?Channel |
|
| 88 | + public function getChannel(): ? Channel |
|
| 89 | 89 | { |
| 90 | 90 | return $this->channel; |
| 91 | 91 | } |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * |
| 106 | 106 | * @return Driver|null |
| 107 | 107 | */ |
| 108 | - public function getDriver(): ?Driver |
|
| 108 | + public function getDriver(): ? Driver |
|
| 109 | 109 | { |
| 110 | 110 | return $this->driver; |
| 111 | 111 | } |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * |
| 126 | 126 | * @return Session|null |
| 127 | 127 | */ |
| 128 | - public function getSession(): ?Session |
|
| 128 | + public function getSession(): ? Session |
|
| 129 | 129 | { |
| 130 | 130 | return $this->session; |
| 131 | 131 | } |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | * |
| 159 | 159 | * @return Context|null |
| 160 | 160 | */ |
| 161 | - public function getContext(): ?Context |
|
| 161 | + public function getContext(): ? Context |
|
| 162 | 162 | { |
| 163 | 163 | return $this->context; |
| 164 | 164 | } |
@@ -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 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | if (!function_exists('kernel')) { |
| 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 | } |
@@ -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\Events; |
| 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\Events; |
| 6 | 6 | |
@@ -33,12 +33,12 @@ discard block |
||
| 33 | 33 | return $this->location; |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function getAttachment(): ?Attachment |
|
| 36 | + public function getAttachment(): ? Attachment |
|
| 37 | 37 | { |
| 38 | 38 | return $this->attachment; |
| 39 | 39 | } |
| 40 | 40 | |
| 41 | - public function getData(): ?string |
|
| 41 | + public function getData(): ? string |
|
| 42 | 42 | { |
| 43 | 43 | return $this->data; |
| 44 | 44 | } |
@@ -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 | |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * |
| 32 | 32 | * @return Intent|null |
| 33 | 33 | */ |
| 34 | - public function find(MessageReceived $message): ?Intent |
|
| 34 | + public function find(MessageReceived $message): ? Intent |
|
| 35 | 35 | { |
| 36 | 36 | foreach ($this->intents as $intent) { |
| 37 | 37 | foreach ($intent->activators() as $activator) { |