@@ -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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function register(): void |
24 | 24 | { |
25 | - $this->getContainer()->share(IntentManager::class, function () { |
|
25 | + $this->getContainer()->share(IntentManager::class, function() { |
|
26 | 26 | /** @var Config $config */ |
27 | 27 | $config = $this->getContainer()->get(Config::class); |
28 | 28 |
@@ -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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function register(): void |
24 | 24 | { |
25 | - $this->getContainer()->share(ContextManager::class, function () { |
|
25 | + $this->getContainer()->share(ContextManager::class, function() { |
|
26 | 26 | return new ContextManager( |
27 | 27 | $this->getContainer(), |
28 | 28 | $this->getContainer()->get(Cache::class) |
@@ -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 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function register(): void |
32 | 32 | { |
33 | - $this->getContainer()->share(DriverManager::class, function () { |
|
33 | + $this->getContainer()->share(DriverManager::class, function() { |
|
34 | 34 | $manager = new DriverManager($this->getContainer()); |
35 | 35 | |
36 | 36 | // Here we will discover all drivers installed |
@@ -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 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $parameters = Arr::get($this->parameters, $channel->getDriver(), []); |
85 | 85 | |
86 | 86 | collect($parameters) |
87 | - ->each(function (string $parameter) use ($channel) { |
|
87 | + ->each(function(string $parameter) use ($channel) { |
|
88 | 88 | if ($channel->getParameter($parameter) === null) { |
89 | 89 | throw new InvalidConfiguration('Invalid `'.$channel->getName().'` channel configuration.'); |
90 | 90 | } |
@@ -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\Queue; |
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\Application; |
6 | 6 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $whoops->pushHandler(new PrettyPageHandler); |
42 | 42 | $whoops->register(); |
43 | 43 | |
44 | - $this->getContainer()->share('request', function () { |
|
44 | + $this->getContainer()->share('request', function() { |
|
45 | 45 | return ServerRequestFactory::fromGlobals( |
46 | 46 | $_SERVER, |
47 | 47 | $_GET, |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $this->getContainer()->share('response', Response::class); |
54 | 54 | $this->getContainer()->share('emitter', SapiEmitter::class); |
55 | 55 | |
56 | - $this->getContainer()->share('router', function () { |
|
56 | + $this->getContainer()->share('router', function() { |
|
57 | 57 | $router = new RouteCollection($this->getContainer()); |
58 | 58 | |
59 | 59 | $controller = new Controller($this->getContainer()->get(Kernel::class)); |
@@ -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 | |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function register(): void |
24 | 24 | { |
25 | - $this->getContainer()->share(ChannelManager::class, function () { |
|
25 | + $this->getContainer()->share(ChannelManager::class, function() { |
|
26 | 26 | /** @var Config $config */ |
27 | 27 | $config = $this->getContainer()->get(Config::class); |
28 | 28 | /** @var array $channels */ |
@@ -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 |