@@ -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) { |
@@ -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 @@ 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 | |
@@ -52,10 +52,10 @@ discard block |
||
52 | 52 | |
53 | 53 | private function registerChannelManager(): void |
54 | 54 | { |
55 | - $this->app->singleton(ChannelManager::class, function () { |
|
55 | + $this->app->singleton(ChannelManager::class, function() { |
|
56 | 56 | /** @var array $channels */ |
57 | 57 | $channels = collect(array_get($this->config(), 'channels', [])) |
58 | - ->mapWithKeys(function (array $parameters, string $name) { |
|
58 | + ->mapWithKeys(function(array $parameters, string $name) { |
|
59 | 59 | return [$name => $parameters]; |
60 | 60 | }) |
61 | 61 | ->toArray(); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | |
70 | 70 | private function registerSessionManager(): void |
71 | 71 | { |
72 | - $this->app->singleton(SessionManager::class, function () { |
|
72 | + $this->app->singleton(SessionManager::class, function() { |
|
73 | 73 | return new SessionManager( |
74 | 74 | $this->app, |
75 | 75 | $this->app->make(Store::class) |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | |
80 | 80 | private function registerIntentManager(): void |
81 | 81 | { |
82 | - $this->app->singleton(IntentManager::class, function () { |
|
82 | + $this->app->singleton(IntentManager::class, function() { |
|
83 | 83 | $intents = array_get($this->config(), 'intents', []); |
84 | 84 | $fallbackIntent = array_get($this->config(), 'fallback_intent', FallbackIntent::class); |
85 | 85 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | |
93 | 93 | private function registerKernel(): void |
94 | 94 | { |
95 | - $this->app->singleton(Kernel::class, function () { |
|
95 | + $this->app->singleton(Kernel::class, function() { |
|
96 | 96 | return new Kernel($this->app); |
97 | 97 | }); |
98 | 98 | } |
@@ -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\Foundation\Middleware; |
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\Foundation\Commands; |
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\Foundation\Commands; |
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\Foundation\Commands; |
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\Foundation\Commands; |
6 | 6 |