| @@ -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->container->share(ChannelManager::class, function () { | |
| 33 | +        $this->container->share(ChannelManager::class, function() { | |
| 34 | 34 | $manager = new ChannelManager; | 
| 35 | 35 | |
| 36 | 36 |              foreach ($this->channels() as $name => $parameters) { | 
| @@ -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 | |
| @@ -40,7 +40,7 @@ discard block | ||
| 40 | 40 | */ | 
| 41 | 41 | public function boot(): void | 
| 42 | 42 |      { | 
| 43 | -        $this->container->share(LoggerInterface::class, function () { | |
| 43 | +        $this->container->share(LoggerInterface::class, function() { | |
| 44 | 44 |              $logger = new Logger('FondBot'); | 
| 45 | 45 | |
| 46 | 46 |              foreach ($this->handlers() as $handler) { | 
| @@ -53,7 +53,7 @@ discard block | ||
| 53 | 53 |          if (PHP_SAPI !== 'cli') { | 
| 54 | 54 | $whoops = new Run; | 
| 55 | 55 | $whoops->pushHandler(new PrettyPageHandler); | 
| 56 | -            $whoops->pushHandler(function (Throwable $exception) { | |
| 56 | +            $whoops->pushHandler(function(Throwable $exception) { | |
| 57 | 57 | /** @var LoggerInterface $logger */ | 
| 58 | 58 | $logger = $this->container->get(LoggerInterface::class); | 
| 59 | 59 | |
| @@ -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->container->share(Config::class, function () { | |
| 52 | +        $this->container->share(Config::class, function() { | |
| 53 | 53 | return new Config($_ENV); | 
| 54 | 54 | }); | 
| 55 | 55 | } | 
| @@ -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 | |
| @@ -38,7 +38,7 @@ discard block | ||
| 38 | 38 | */ | 
| 39 | 39 | public function register(): void | 
| 40 | 40 |      { | 
| 41 | -        $this->container->share('request', function () { | |
| 41 | +        $this->container->share('request', function() { | |
| 42 | 42 | return ServerRequestFactory::fromGlobals( | 
| 43 | 43 | $_SERVER, | 
| 44 | 44 | $_GET, | 
| @@ -50,7 +50,7 @@ discard block | ||
| 50 | 50 |          $this->container->share('response', Response::class); | 
| 51 | 51 |          $this->container->share('emitter', SapiEmitter::class); | 
| 52 | 52 | |
| 53 | -        $this->container->share('router', function () { | |
| 53 | +        $this->container->share('router', function() { | |
| 54 | 54 | $router = new RouteCollection($this->container); | 
| 55 | 55 | |
| 56 | 56 | $controller = new Controller($this->container->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\Drivers; | 
| 6 | 6 | |
| @@ -32,7 +32,7 @@ discard block | ||
| 32 | 32 | */ | 
| 33 | 33 | public function register(): void | 
| 34 | 34 |      { | 
| 35 | -        $this->container->share(DriverManager::class, function () { | |
| 35 | +        $this->container->share(DriverManager::class, function() { | |
| 36 | 36 | $manager = new DriverManager($this->container); | 
| 37 | 37 | |
| 38 | 38 | // 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\Filesystem; | 
| 6 | 6 | |
| @@ -30,7 +30,7 @@ discard block | ||
| 30 | 30 | */ | 
| 31 | 31 | public function register(): void | 
| 32 | 32 |      { | 
| 33 | -        $this->container->share(Filesystem::class, function () { | |
| 33 | +        $this->container->share(Filesystem::class, function() { | |
| 34 | 34 | return new Filesystem($this->adapter()); | 
| 35 | 35 | }); | 
| 36 | 36 | } | 
| @@ -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 | |
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | */ | 
| 38 | 38 | public function register(): void | 
| 39 | 39 |      { | 
| 40 | -        $this->container->share(IntentManager::class, function () { | |
| 40 | +        $this->container->share(IntentManager::class, function() { | |
| 41 | 41 | $manager = new IntentManager(); | 
| 42 | 42 | |
| 43 | 43 |              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\Conversation; | 
| 6 | 6 | |
| @@ -23,7 +23,7 @@ discard block | ||
| 23 | 23 | */ | 
| 24 | 24 | public function register(): void | 
| 25 | 25 |      { | 
| 26 | -        $this->container->share(ContextManager::class, function () { | |
| 26 | +        $this->container->share(ContextManager::class, function() { | |
| 27 | 27 | return new ContextManager( | 
| 28 | 28 | $this->container, | 
| 29 | 29 | $this->container->get(Cache::class) |