Completed
Push — develop ( 9f405c...e318a6 )
by Neomerx
03:44
created
src/Application/Application.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     }
149 149
 
150 150
     /**
151
-     * @return callable
151
+     * @return string[]
152 152
      */
153 153
     public static function getDefaultRequestFactory(): callable
154 154
     {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @param Throwable                  $throwable
196 196
      * @param null|PsrContainerInterface $container
197 197
      *
198
-     * @return ThrowableResponseInterface
198
+     * @return ResponseInterface
199 199
      */
200 200
     protected function handleThrowable(
201 201
         Throwable $throwable,
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
     /**
263 263
      * @param LimoncelloContainerInterface $container
264
-     * @param callable[]|null              $globalConfigurators
264
+     * @param callable[]              $globalConfigurators
265 265
      * @param callable[]|null              $routeConfigurators
266 266
      *
267 267
      * @return void
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
     protected function handleThrowable(
201 201
         Throwable $throwable,
202 202
         ?PsrContainerInterface $container
203
-    ): ThrowableResponseInterface {
203
+    ) : ThrowableResponseInterface {
204 204
         if ($container !== null && $container->has(ThrowableHandlerInterface::class) === true) {
205 205
             /** @var ThrowableHandlerInterface $handler */
206 206
             $handler  = $container->get(ThrowableHandlerInterface::class);
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
              */
244 244
             public function __construct(Throwable $throwable, int $status)
245 245
             {
246
-                parent::__construct((string)$throwable, $status);
246
+                parent::__construct((string) $throwable, $status);
247 247
                 $this->setThrowable($throwable);
248 248
             }
249 249
         };
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
                 ['array', PsrContainerInterface::class, ServerRequestInterface::class],
327 327
                 ResponseInterface::class
328 328
             ),
329
-            'Handler method should have signature ' .
329
+            'Handler method should have signature '.
330 330
             '`public static methodName(array, PsrContainerInterface, ServerRequestInterface): ResponseInterface`'
331 331
         );
332 332
 
@@ -374,7 +374,7 @@  discard block
 block discarded – undo
374 374
                 [SapiInterface::class, PsrContainerInterface::class],
375 375
                 ServerRequestInterface::class
376 376
             ),
377
-            'Factory method should have signature ' .
377
+            'Factory method should have signature '.
378 378
             '`public static methodName(SapiInterface, PsrContainerInterface): ServerRequestInterface`'
379 379
         );
380 380
 
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
         array $handlerParams,
396 396
         PsrContainerInterface $container
397 397
     ): Closure {
398
-        return function (ServerRequestInterface $request = null) use (
398
+        return function(ServerRequestInterface $request = null) use (
399 399
             $handler,
400 400
             $handlerParams,
401 401
             $container
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     private function createMethodNotAllowedTerminalHandler(array $allowedMethods): Closure
417 417
     {
418 418
         // 405 Method Not Allowed
419
-        return function () use ($allowedMethods): ResponseInterface {
419
+        return function() use ($allowedMethods): ResponseInterface {
420 420
             return $this->createEmptyResponse(405, ['Accept' => implode(',', $allowedMethods)]);
421 421
         };
422 422
     }
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
     private function createNotFoundTerminalHandler(): Closure
428 428
     {
429 429
         // 404 Not Found
430
-        return function (): ResponseInterface {
430
+        return function(): ResponseInterface {
431 431
             return $this->createEmptyResponse(404);
432 432
         };
433 433
     }
@@ -471,11 +471,11 @@  discard block
 block discarded – undo
471 471
                 [ServerRequestInterface::class, Closure::class, PsrContainerInterface::class],
472 472
                 ResponseInterface::class
473 473
             ),
474
-            'Middleware method should have signature ' .
474
+            'Middleware method should have signature '.
475 475
             '`public static methodName(ServerRequestInterface, Closure, PsrContainerInterface): ResponseInterface`'
476 476
         );
477 477
 
478
-        return function (ServerRequestInterface $request) use ($next, $middleware, $container): ResponseInterface {
478
+        return function(ServerRequestInterface $request) use ($next, $middleware, $container): ResponseInterface {
479 479
             return call_user_func($middleware, $request, $next, $container);
480 480
         };
481 481
     }
Please login to merge, or discard this patch.