@@ -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\Cache\Adapters; |
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\Cache; |
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 | |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $path = $this->kernel->resolve('application_log'); |
30 | 30 | $command = 'tail -f -n 1000 '.escapeshellarg($path); |
31 | 31 | |
32 | - (new Process($command))->setTimeout(null)->run(function ($type, $line) { |
|
32 | + (new Process($command))->setTimeout(null)->run(function($type, $line) { |
|
33 | 33 | $this->line($line); |
34 | 34 | }); |
35 | 35 | } |
@@ -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\Application; |
6 | 6 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | $this->container->share('application_log', $path); |
39 | 39 | |
40 | - $this->getContainer()->share(LoggerInterface::class, function () use ($path) { |
|
40 | + $this->getContainer()->share(LoggerInterface::class, function() use ($path) { |
|
41 | 41 | $logger = new Logger('FondBot'); |
42 | 42 | $logger->pushHandler(new StreamHandler($path)); |
43 | 43 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | |
47 | 47 | $whoops = new Run; |
48 | 48 | $whoops->pushHandler(new PrettyPageHandler); |
49 | - $whoops->pushHandler(function (Throwable $exception) { |
|
49 | + $whoops->pushHandler(function(Throwable $exception) { |
|
50 | 50 | /** @var LoggerInterface $logger */ |
51 | 51 | $logger = $this->getContainer()->get(LoggerInterface::class); |
52 | 52 |
@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function register(): void |
32 | 32 | { |
33 | - $this->getContainer()->share(Filesystem::class, function () { |
|
33 | + $this->getContainer()->share(Filesystem::class, function() { |
|
34 | 34 | return new Filesystem($this->adapter()); |
35 | 35 | }); |
36 | 36 | } |
@@ -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\Cache; |
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 | |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function register(): void |
37 | 37 | { |
38 | - $this->getContainer()->share(IntentManager::class, function () { |
|
38 | + $this->getContainer()->share(IntentManager::class, function() { |
|
39 | 39 | $manager = new IntentManager(); |
40 | 40 | |
41 | 41 | foreach ($this->intents() as $intent) { |
@@ -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\Channels; |
6 | 6 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function register(): void |
32 | 32 | { |
33 | - $this->getContainer()->share(ChannelManager::class, function () { |
|
33 | + $this->getContainer()->share(ChannelManager::class, function() { |
|
34 | 34 | $manager = new ChannelManager; |
35 | 35 | |
36 | 36 | foreach ($this->channels() as $name => $parameters) { |
@@ -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\Application; |
6 | 6 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $dotenv = new Dotenv($this->basePath()); |
50 | 50 | $dotenv->load(); |
51 | 51 | |
52 | - $this->getContainer()->share(Config::class, function () { |
|
52 | + $this->getContainer()->share(Config::class, function() { |
|
53 | 53 | return new Config($_ENV); |
54 | 54 | }); |
55 | 55 | } |