Completed
Push — master ( d34e65...8470a4 )
by Eric
8s
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
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
         // services declarations
44 44
         // =====================
45 45
 
46
-        $app['app'] = function () use ($app): Jarvis {
46
+        $app['app'] = function() use ($app): Jarvis {
47 47
             return $app;
48 48
         };
49 49
 
50
-        $app['request'] = function (Jarvis $app): Request {
50
+        $app['request'] = function(Jarvis $app): Request {
51 51
             $request = Request::createFromGlobals();
52 52
 
53 53
             $session = $request->getSession();
@@ -63,15 +63,15 @@  discard block
 block discarded – undo
63 63
             return $request;
64 64
         };
65 65
 
66
-        $app['session'] = function (Jarvis $app): Session {
66
+        $app['session'] = function(Jarvis $app): Session {
67 67
             return $app['request']->getSession();
68 68
         };
69 69
 
70
-        $app['router'] = function (): Router {
70
+        $app['router'] = function(): Router {
71 71
             return new Router();
72 72
         };
73 73
 
74
-        $app['callbackResolver'] = function (Jarvis $app): CallbackResolver {
74
+        $app['callbackResolver'] = function(Jarvis $app): CallbackResolver {
75 75
             return new CallbackResolver($app);
76 76
         };
77 77
 
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
         // events receivers
81 81
         // ================
82 82
 
83
-        $app->on(BroadcasterInterface::EXCEPTION_EVENT, function (ExceptionEvent $event): void {
83
+        $app->on(BroadcasterInterface::EXCEPTION_EVENT, function(ExceptionEvent $event): void {
84 84
             $response = new Response($event->exception()->getMessage(), Response::HTTP_INTERNAL_SERVER_ERROR);
85 85
             $event->setResponse($response);
86 86
         }, BroadcasterInterface::RECEIVER_LOW_PRIORITY);
87 87
 
88
-        $app->on(BroadcasterInterface::CONTROLLER_EVENT, function (ControllerEvent $event) use ($app): void {
88
+        $app->on(BroadcasterInterface::CONTROLLER_EVENT, function(ControllerEvent $event) use ($app): void {
89 89
             $finalArgs = [];
90 90
             $rawArgs = $event->arguments();
91 91
             $refMethod = new \ReflectionMethod($event->callback(), '__invoke');
Please login to merge, or discard this patch.