@@ -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 | |
@@ -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\Toolbelt\Commands; |
| 6 | 6 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | $items = json_decode((string) $response->getBody(), true); |
| 37 | 37 | |
| 38 | 38 | $drivers = collect($items) |
| 39 | - ->transform(function ($item) use ($installedDrivers) { |
|
| 39 | + ->transform(function($item) use ($installedDrivers) { |
|
| 40 | 40 | return [ |
| 41 | 41 | $item['name'], |
| 42 | 42 | $item['package'], |
@@ -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\Filesystem; |
| 6 | 6 | |
@@ -38,11 +38,11 @@ discard block |
||
| 38 | 38 | */ |
| 39 | 39 | public function register(): void |
| 40 | 40 | { |
| 41 | - $this->container->share(Filesystem::class, function () { |
|
| 41 | + $this->container->share(Filesystem::class, function() { |
|
| 42 | 42 | return new Filesystem(new Local($this->container->get('base_path'), LOCK_EX, Local::SKIP_LINKS)); |
| 43 | 43 | }); |
| 44 | 44 | |
| 45 | - $this->container->share(MountManager::class, function () { |
|
| 45 | + $this->container->share(MountManager::class, function() { |
|
| 46 | 46 | $filesystems = [ |
| 47 | 47 | 'local' => $this->container->get(Filesystem::class), |
| 48 | 48 | ]; |