@@ -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\Exceptions; |
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\Drivers; |
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 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @return TemplateCompiler|null |
50 | 50 | */ |
51 | - abstract public function getTemplateCompiler(): ?TemplateCompiler; |
|
51 | + abstract public function getTemplateCompiler(): ? TemplateCompiler; |
|
52 | 52 | |
53 | 53 | /** |
54 | 54 | * Get command handler instance. |
@@ -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 | } elseif ($value instanceof Arrayable) { |
@@ -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\Templates\Keyboard; |
6 | 6 | |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | * |
16 | 16 | * @return string |
17 | 17 | */ |
18 | - public function getLabel(): ?string |
|
18 | + public function getLabel(): ? string |
|
19 | 19 | { |
20 | 20 | return $this->label; |
21 | 21 | } |
@@ -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\Commands; |
6 | 6 | |
@@ -49,12 +49,12 @@ discard block |
||
49 | 49 | return $this->recipient; |
50 | 50 | } |
51 | 51 | |
52 | - public function getText(): ?string |
|
52 | + public function getText(): ? string |
|
53 | 53 | { |
54 | 54 | return $this->text; |
55 | 55 | } |
56 | 56 | |
57 | - public function getTemplate(): ?Template |
|
57 | + public function getTemplate(): ? Template |
|
58 | 58 | { |
59 | 59 | return $this->template; |
60 | 60 | } |
@@ -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\Drivers; |
6 | 6 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function register(): void |
26 | 26 | { |
27 | - $this->container->share(DriverManager::class, function () { |
|
27 | + $this->container->share(DriverManager::class, function() { |
|
28 | 28 | // Here we will discover all drivers installed |
29 | 29 | // And add all found drivers to the manager |
30 | 30 |
@@ -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\Drivers; |
6 | 6 |