@@ -68,7 +68,7 @@ |
||
| 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 | */ |
@@ -3,12 +3,10 @@ |
||
| 3 | 3 | namespace Mouf\Mvc\Splash\Routers; |
| 4 | 4 | |
| 5 | 5 | use TheCodingMachine\Splash\Utils\SplashException; |
| 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\Http\Server\MiddlewareInterface; |
| 10 | 9 | use Psr\Http\Server\RequestHandlerInterface; |
| 11 | -use Psr\Log\LoggerInterface; |
|
| 12 | 10 | |
| 13 | 11 | /** |
| 14 | 12 | * This router : |
@@ -441,6 +441,9 @@ |
||
| 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.' */ ?> |
@@ -180,6 +180,9 @@ |
||
| 180 | 180 | return 'Unknown type variable'; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | + /** |
|
| 184 | + * @return string |
|
| 185 | + */ |
|
| 183 | 186 | private static function displayFile($file) |
| 184 | 187 | { |
| 185 | 188 | $realpath = realpath($file); |