@@ -15,7 +15,7 @@ |
||
15 | 15 | class AbstractModel implements \ArrayAccess |
16 | 16 | { |
17 | 17 | /** |
18 | - * @var array the storage |
|
18 | + * @var array the storage |
|
19 | 19 | */ |
20 | 20 | protected $data = array(); |
21 | 21 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | class Markdown implements ParserInterface |
19 | 19 | { |
20 | 20 | /** |
21 | - * @var mixed the configuration |
|
21 | + * @var mixed the configuration |
|
22 | 22 | */ |
23 | 23 | private $config; |
24 | 24 |
@@ -128,7 +128,7 @@ |
||
128 | 128 | $result = array(); |
129 | 129 | foreach ($files as $file) { |
130 | 130 | /** |
131 | - * @var \SplFileInfo $file |
|
131 | + * @var \SplFileInfo $file |
|
132 | 132 | */ |
133 | 133 | $result[] = $file->getPathname(); |
134 | 134 | } |
@@ -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 |
@@ -15,12 +15,12 @@ |
||
15 | 15 | class Session |
16 | 16 | { |
17 | 17 | /** |
18 | - * @var bool mark if session is started |
|
18 | + * @var bool mark if session is started |
|
19 | 19 | */ |
20 | 20 | static public $isStarted = false; |
21 | 21 | |
22 | 22 | /** |
23 | - * @var string the session id |
|
23 | + * @var string the session id |
|
24 | 24 | */ |
25 | 25 | static public $sessionId = ''; |
26 | 26 |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | |
22 | 22 | /** |
23 | - * @var array settings |
|
23 | + * @var array settings |
|
24 | 24 | */ |
25 | 25 | protected $settings; |
26 | 26 | |
@@ -289,7 +289,7 @@ discard block |
||
289 | 289 | |
290 | 290 | /** |
291 | 291 | * link the class or method to the API or return the method name |
292 | - * |
|
292 | + * |
|
293 | 293 | * @param $class |
294 | 294 | * @param $method |
295 | 295 | * |
@@ -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 | */ |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** @var string slug */ |
21 | 21 | const SLUG_PREFIX = '-phile.phpFastCache.slug-'; |
22 | 22 | |
23 | - const SLUG = ['{', '}' , '(', ')', '/' , '\\' , '@', ':']; |
|
23 | + const SLUG = ['{', '}', '(', ')', '/', '\\', '@', ':']; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @var \BasePhpFastCache the cache engine |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | protected function slug($key) |
119 | 119 | { |
120 | 120 | $replacementTokens = array_map( |
121 | - function ($key) { |
|
121 | + function($key) { |
|
122 | 122 | return self::SLUG_PREFIX . $key; |
123 | 123 | }, |
124 | 124 | array_keys(self::SLUG) |
@@ -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; |
@@ -121,7 +121,7 @@ |
||
121 | 121 | ->withHeader('Content-Type', 'text/html; charset=' . $charset); |
122 | 122 | |
123 | 123 | if ($page->getPageId() == '404') { |
124 | - $response = $response->withStatus(404) ; |
|
124 | + $response = $response->withStatus(404); |
|
125 | 125 | } |
126 | 126 | |
127 | 127 | return $response; |
@@ -25,7 +25,7 @@ |
||
25 | 25 | public static function loadConfiguration($file, Config $config) |
26 | 26 | { |
27 | 27 | // function isolates context of loaded files |
28 | - $load = function ($file) { |
|
28 | + $load = function($file) { |
|
29 | 29 | return include $file; |
30 | 30 | }; |
31 | 31 | $config->merge($load($file)); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | { |
22 | 22 | /** |
23 | 23 | * @var \SplFileInfo $this |
24 | - */ |
|
24 | + */ |
|
25 | 25 | $ext = Container::getInstance()->get('Phile_Config')->get('content_ext'); |
26 | 26 | return (preg_match('/^[^\.]{1}.*' . $ext . '/', $this->getFilename()) > 0); |
27 | 27 | } |