Completed
Push — 1.0 ( 690a53...47c60b )
by Vladimir
05:44
created
src/Application/RouteServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Application;
6 6
 
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     public function register(): void
37 37
     {
38
-        $this->getContainer()->share('request', function () {
38
+        $this->getContainer()->share('request', function() {
39 39
             return ServerRequestFactory::fromGlobals(
40 40
                 $_SERVER,
41 41
                 $_GET,
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         $this->getContainer()->share('response', Response::class);
48 48
         $this->getContainer()->share('emitter', SapiEmitter::class);
49 49
 
50
-        $this->getContainer()->share('router', function () {
50
+        $this->getContainer()->share('router', function() {
51 51
             $router = new RouteCollection($this->getContainer());
52 52
 
53 53
             $controller = new Controller($this->getContainer()->get(Kernel::class));
Please login to merge, or discard this patch.
src/Application/LogServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace FondBot\Application;
6 6
 
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function boot(): void
29 29
     {
30
-        $this->getContainer()->share(LoggerInterface::class, function () {
30
+        $this->getContainer()->share(LoggerInterface::class, function() {
31 31
             $logger = new Logger('FondBot');
32 32
             $logger->pushHandler(new StreamHandler(
33 33
                 $this->getContainer()->get('resources_path').'/app.log'
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
         $whoops = new Run;
40 40
         $whoops->pushHandler(new PrettyPageHandler);
41
-        $whoops->pushHandler(function (Exception $exception, $inspector, $run) {
41
+        $whoops->pushHandler(function(Exception $exception, $inspector, $run) {
42 42
             /** @var LoggerInterface $logger */
43 43
             $logger = $this->getContainer()->get(LoggerInterface::class);
44 44
 
Please login to merge, or discard this patch.