Completed
Push — master ( 5018a7...b6ce2f )
by Eric
10s
created
src/Skill/Routing/Route.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         $this->router = $router;
25 25
     }
26 26
 
27
-    public function name(): ?string
27
+    public function name(): ? string
28 28
     {
29 29
         return $this->name;
30 30
     }
Please login to merge, or discard this patch.
src/Skill/EventBroadcaster/ExceptionEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         return $this->exception;
25 25
     }
26 26
 
27
-    public function response(): ?Response
27
+    public function response(): ? Response
28 28
     {
29 29
         return $this->response;
30 30
     }
Please login to merge, or discard this patch.
src/Skill/Routing/Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
         $this->setScheme($request->getScheme());
157 157
         $this->setHost($request->getHost());
158 158
         if (self::HTTP_PORT !== $request->getPort()) {
159
-            $this->setHost($this->host() . ':' . $request->getPort());
159
+            $this->setHost($this->host().':'.$request->getPort());
160 160
         }
161 161
 
162 162
         return $this;
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
         if (Dispatcher::FOUND === $result[0]) {
214 214
             [1 => $callback, 2 => $arguments] = $result;
215 215
         } else {
216
-            $callback = function () use ($result): Response {
216
+            $callback = function() use ($result): Response {
217 217
                 return new Response(null, Dispatcher::METHOD_NOT_ALLOWED === $result[0]
218 218
                     ? Response::HTTP_METHOD_NOT_ALLOWED
219 219
                     : Response::HTTP_NOT_FOUND
Please login to merge, or discard this patch.
src/Skill/DependencyInjection/ContainerProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
 
50 50
     protected function mountServices(Jarvis $app)
51 51
     {
52
-        $app['app'] = function () use ($app): Jarvis {
52
+        $app['app'] = function() use ($app): Jarvis {
53 53
             return $app;
54 54
         };
55 55
 
56
-        $app['request'] = function (Jarvis $app): Request {
56
+        $app['request'] = function(Jarvis $app): Request {
57 57
             $request = Request::createFromGlobals();
58 58
 
59 59
             $session = $request->getSession();
@@ -69,15 +69,15 @@  discard block
 block discarded – undo
69 69
             return $request;
70 70
         };
71 71
 
72
-        $app['session'] = function (Jarvis $app): Session {
72
+        $app['session'] = function(Jarvis $app): Session {
73 73
             return $app['request']->getSession();
74 74
         };
75 75
 
76
-        $app['router'] = function (): Router {
76
+        $app['router'] = function(): Router {
77 77
             return new Router();
78 78
         };
79 79
 
80
-        $app['callbackResolver'] = function (Jarvis $app): CallbackResolver {
80
+        $app['callbackResolver'] = function(Jarvis $app): CallbackResolver {
81 81
             return new CallbackResolver($app);
82 82
         };
83 83
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
     protected function mountEventReceivers(Jarvis $app)
88 88
     {
89
-        $app->on(BroadcasterInterface::EXCEPTION_EVENT, function (ExceptionEvent $event) use ($app): void {
89
+        $app->on(BroadcasterInterface::EXCEPTION_EVENT, function(ExceptionEvent $event) use ($app): void {
90 90
             $throwable = $event->exception();
91 91
             $msg = sprintf(
92 92
                 '[%s] error in %s at line %s with message: %s',
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
             $event->setResponse(new Response($msg, Response::HTTP_INTERNAL_SERVER_ERROR));
105 105
         }, BroadcasterInterface::RECEIVER_LOW_PRIORITY);
106 106
 
107
-        $app->on(BroadcasterInterface::CONTROLLER_EVENT, function (ControllerEvent $event) use ($app): void {
107
+        $app->on(BroadcasterInterface::CONTROLLER_EVENT, function(ControllerEvent $event) use ($app): void {
108 108
             $finalArgs = [];
109 109
             $rawArgs = $event->arguments();
110 110
             $refMethod = new \ReflectionMethod($event->callback(), '__invoke');
Please login to merge, or discard this patch.