| @@ -133,7 +133,7 @@ | ||
| 133 | 133 | /** | 
| 134 | 134 | * set content of page | 
| 135 | 135 | * | 
| 136 | - * @param $content | |
| 136 | + * @param string $content | |
| 137 | 137 | */ | 
| 138 | 138 | public function setContent($content) | 
| 139 | 139 |      { | 
| @@ -55,7 +55,7 @@ discard block | ||
| 55 | 55 | /** | 
| 56 | 56 | * resolve a file path by replace the mod: prefix | 
| 57 | 57 | * | 
| 58 | - * @param $path | |
| 58 | + * @param string $path | |
| 59 | 59 | * | 
| 60 | 60 | * @return string|null the full filepath or null if file does not exists | 
| 61 | 61 | */ | 
| @@ -76,7 +76,7 @@ discard block | ||
| 76 | 76 | /** | 
| 77 | 77 | * load files e.g. config files | 
| 78 | 78 | * | 
| 79 | - * @param $file | |
| 79 | + * @param null|string $file | |
| 80 | 80 | * | 
| 81 | 81 | * @return mixed|null | 
| 82 | 82 | */ | 
| @@ -202,6 +202,11 @@ discard block | ||
| 202 | 202 | * @return mixed | 
| 203 | 203 | */ | 
| 204 | 204 | // @codingStandardsIgnoreStart | 
| 205 | + | |
| 206 | + /** | |
| 207 | + * @param integer $min | |
| 208 | + * @param integer $max | |
| 209 | + */ | |
| 205 | 210 | public static function crypto_rand_secure($min, $max) | 
| 206 | 211 |      { | 
| 207 | 212 | // @codingStandardsIgnoreEnd | 
| @@ -53,7 +53,7 @@ | ||
| 53 | 53 | /** | 
| 54 | 54 | * method to get cache entry | 
| 55 | 55 | * | 
| 56 | - * @param $key | |
| 56 | + * @param string $key | |
| 57 | 57 | * | 
| 58 | 58 | * @return mixed|null | 
| 59 | 59 | */ | 
| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | use Phile\Core\Router; | 
| 16 | 16 | use Phile\Model\Page; | 
| 17 | 17 | use Phile\Repository\Page as Repository; | 
| 18 | - | |
| 19 | 18 | use Interop\Http\Server\MiddlewareInterface; | 
| 20 | 19 | use Interop\Http\Server\RequestHandlerInterface; | 
| 21 | 20 | use Psr\Http\Message\ResponseInterface; | 
| @@ -10,8 +10,6 @@ | ||
| 10 | 10 | * @license http://opensource.org/licenses/MIT | 
| 11 | 11 | */ | 
| 12 | 12 | |
| 13 | -use Psr\Http\Message\ServerRequestInterface; | |
| 14 | - | |
| 15 | 13 | $config = [ | 
| 16 | 14 | 'types' => [ | 
| 17 | 15 | 'Phile_App' => Phile\Phile::class, |