@@ -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 | |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | $logger = $this->kernel->resolve(Logger::class); |
| 34 | 34 | |
| 35 | 35 | /** @var StreamHandler|null $handler */ |
| 36 | - $handler = collect($logger->getHandlers())->first(function (HandlerInterface $item) { |
|
| 36 | + $handler = collect($logger->getHandlers())->first(function(HandlerInterface $item) { |
|
| 37 | 37 | return $item instanceof StreamHandler; |
| 38 | 38 | }); |
| 39 | 39 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | $command = 'tail -f -n 1000 '.escapeshellarg($handler->getUrl()); |
| 46 | 46 | |
| 47 | - (new Process($command))->setTimeout(null)->run(function ($type, $line) { |
|
| 47 | + (new Process($command))->setTimeout(null)->run(function($type, $line) { |
|
| 48 | 48 | $this->line($line); |
| 49 | 49 | }); |
| 50 | 50 | } |
@@ -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 | |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | } catch (InvalidPathException $exception) { |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - $this->container->share(Config::class, function () { |
|
| 55 | + $this->container->share(Config::class, function() { |
|
| 56 | 56 | return new Config($_ENV); |
| 57 | 57 | }); |
| 58 | 58 | } |
@@ -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 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * |
| 65 | 65 | * @return Session|null |
| 66 | 66 | */ |
| 67 | - public function getSession(): ?Session |
|
| 67 | + public function getSession(): ? Session |
|
| 68 | 68 | { |
| 69 | 69 | return $this->session; |
| 70 | 70 | } |
@@ -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 | |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | * |
| 72 | 72 | * @return Intent|Conversable|null |
| 73 | 73 | */ |
| 74 | - public function getIntent(): ?Intent |
|
| 74 | + public function getIntent(): ? Intent |
|
| 75 | 75 | { |
| 76 | 76 | return $this->intent; |
| 77 | 77 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * |
| 92 | 92 | * @return Interaction|Conversable|null |
| 93 | 93 | */ |
| 94 | - public function getInteraction(): ?Interaction |
|
| 94 | + public function getInteraction(): ? Interaction |
|
| 95 | 95 | { |
| 96 | 96 | return $this->interaction; |
| 97 | 97 | } |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | * |
| 102 | 102 | * @param Interaction|null $interaction |
| 103 | 103 | */ |
| 104 | - public function setInteraction(?Interaction $interaction): void |
|
| 104 | + public function setInteraction(? Interaction $interaction) : void |
|
| 105 | 105 | { |
| 106 | 106 | $this->interaction = $interaction; |
| 107 | 107 | } |
@@ -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(SessionManager::class, function () { |
|
| 26 | + $this->container->share(SessionManager::class, function() { |
|
| 27 | 27 | return new SessionManager( |
| 28 | 28 | $this->container, |
| 29 | 29 | $this->container->get(Cache::class) |
@@ -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\Conversation\Traits; |
| 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\Conversation; |
| 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\Http; |
| 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 | |
@@ -38,13 +38,13 @@ 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($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES); |
| 43 | 43 | }); |
| 44 | 44 | $this->container->share('response', Response::class); |
| 45 | 45 | $this->container->share('emitter', SapiEmitter::class); |
| 46 | 46 | |
| 47 | - $this->container->share('router', function () { |
|
| 47 | + $this->container->share('router', function() { |
|
| 48 | 48 | $router = new RouteCollection($this->container); |
| 49 | 49 | |
| 50 | 50 | $controller = new Controller($this->container->get(Kernel::class)); |