@@ -18,7 +18,7 @@ |
||
| 18 | 18 | class Meta implements MetaInterface |
| 19 | 19 | { |
| 20 | 20 | /** |
| 21 | - * @var array $config the configuration for this parser |
|
| 21 | + * @var array $config the configuration for this parser |
|
| 22 | 22 | */ |
| 23 | 23 | private $config; |
| 24 | 24 | |
@@ -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 | |
@@ -20,17 +20,17 @@ |
||
| 20 | 20 | { |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * @var global Phile config |
|
| 23 | + * @var global Phile config |
|
| 24 | 24 | */ |
| 25 | 25 | protected $config; |
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | - * @var bool Phile installation needs setup |
|
| 28 | + * @var bool Phile installation needs setup |
|
| 29 | 29 | */ |
| 30 | 30 | protected $needsSetup = true; |
| 31 | 31 | |
| 32 | 32 | /** |
| 33 | - * @var array event subscription |
|
| 33 | + * @var array event subscription |
|
| 34 | 34 | */ |
| 35 | 35 | protected $events = [ |
| 36 | 36 | 'config_loaded' => 'onConfigLoaded', |
@@ -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 string|null $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 | * |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | 23 | * @var \SplFileInfo $this |
| 24 | - */ |
|
| 24 | + */ |
|
| 25 | 25 | $ext = Registry::get('Phile_Settings')['content_ext']; |
| 26 | 26 | return (preg_match('/^[^\.]{1}.*' . $ext . '/', $this->getFilename()) > 0); |
| 27 | 27 | } |
@@ -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 |
@@ -117,13 +117,13 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | protected function slug($key) |
| 119 | 119 | { |
| 120 | - $replacer = function ($character) { |
|
| 120 | + $replacer = function($character) { |
|
| 121 | 121 | $key = array_search($character[0], self::SLUG); |
| 122 | 122 | $replacement = self::SLUG_PREFIX . $key; |
| 123 | 123 | return $replacement; |
| 124 | 124 | }; |
| 125 | 125 | $search = array_map( |
| 126 | - function ($value) { |
|
| 126 | + function($value) { |
|
| 127 | 127 | return preg_quote($value); |
| 128 | 128 | }, |
| 129 | 129 | self::SLUG |