Completed
Push — fetcher_factories ( 951c99 )
by David
15:45
created
src/Mouf/Mvc/Splash/Routers/CacheRouter.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Psr\Http\Message\ResponseInterface;
6 6
 use Psr\Http\Message\ServerRequestInterface;
7
-use Symfony\Component\HttpKernel\HttpKernelInterface;
8
-use Symfony\Component\HttpFoundation\Request;
9 7
 use Symfony\Component\HttpFoundation\Response;
10 8
 use Mouf\Utils\Cache\CacheInterface;
11 9
 use Psr\Log\LoggerInterface;
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Routers/ExceptionRouter.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,6 @@  discard block
 block discarded – undo
35 35
     /**
36 36
      * @Important
37 37
      *
38
-     * @param HttpKernelInterface $router The default router (the router we will catch exceptions from).
39 38
      * @param LoggerInterface     $log    Logger to log errors.
40 39
      */
41 40
     public function __construct(Http500HandlerInterface $errorController, LoggerInterface $log = null)
@@ -85,7 +84,7 @@  discard block
 block discarded – undo
85 84
      * @param Response      $response
86 85
      * @param null|callable $out
87 86
      *
88
-     * @return null|Response
87
+     * @return Response
89 88
      */
90 89
     public function __invoke($error, Request $request, Response $response, callable $out = null)
91 90
     {
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Mouf\Mvc\Splash\Routers;
4 4
 
5 5
 use Mouf\Mvc\Splash\Controllers\Http500HandlerInterface;
6
-use Psr\Http\Message\ResponseInterface as Response;
7 6
 use Psr\Http\Message\ResponseInterface;
8 7
 use Psr\Http\Message\ServerRequestInterface as Request;
9 8
 use Psr\Log\LoggerInterface;
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Routers/PhpVarsCheckRouter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
     /**
69 69
      * Returns the number of bytes from php.ini parameter.
70 70
      *
71
-     * @param $val
71
+     * @param string $val
72 72
      *
73 73
      * @return int|string
74 74
      */
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Services/ControllerRegistry.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 
6 6
 use Interop\Container\ContainerInterface;
7 7
 use Mouf\Annotations\URLAnnotation;
8
-use Mouf\MoufManager;
9 8
 use Mouf\Mvc\Splash\Utils\SplashException;
10 9
 use Mouf\Reflection\MoufReflectionClass;
11 10
 use Mouf\Reflection\MoufReflectionMethod;
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Services/FilterUtils.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
  */
8 8
 use Mouf\Mvc\Splash\Filters\AbstractFilter;
9 9
 use Mouf\MoufManager;
10
-use Mouf\Mvc\Splash\Controllers\Controller;
11 10
 use Mouf\Reflection\MoufReflectionMethod;
12 11
 
13 12
 class FilterUtils
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Services/SplashCreateControllerService.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -441,6 +441,9 @@
 block discarded – undo
441 441
         return '<p>Hello {{message}}</p>';
442 442
     }
443 443
 
444
+    /**
445
+     * @param string $controllerFQCN
446
+     */
444 447
     private function generatePhpView($controllerFQCN)
445 448
     {
446 449
         return '<?php /* @var $this '.$controllerFQCN.' */ ?>
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Services/SplashRequestContext.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -61,6 +61,9 @@
 block discarded – undo
61 61
         return $this->request;
62 62
     }
63 63
 
64
+    /**
65
+     * @param string $key
66
+     */
64 67
     public function hasParameter($key) : bool
65 68
     {
66 69
         if (isset($this->urlParameters[$key])) {
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Services/SplashRequestParameterFetcher.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Mouf\Mvc\Splash\Services;
4 4
 
5 5
 use Mouf\Reflection\MoufReflectionParameter;
6
-use Mouf\Utils\Common\Validators\ValidatorInterface;
7 6
 
8 7
 /**
9 8
  * This class fetches the parameter from the request.
Please login to merge, or discard this patch.
src/Mouf/Mvc/Splash/Services/SplashUtils.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -135,6 +135,9 @@
 block discarded – undo
135 135
         return $urlParamsList;
136 136
     }
137 137
 
138
+    /**
139
+     * @param \Closure $callback
140
+     */
138 141
     public static function buildControllerResponse($callback, $mode = self::MODE_STRICT, $debug = false)
139 142
     {
140 143
         ob_start();
Please login to merge, or discard this patch.