@@ -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 |
@@ -20,17 +20,17 @@ |
||
20 | 20 | { |
21 | 21 | |
22 | 22 | /** |
23 | - * @var string plugin attributes |
|
23 | + * @var string plugin attributes |
|
24 | 24 | */ |
25 | 25 | private $plugin = []; |
26 | 26 | |
27 | 27 | /** |
28 | - * @var array subscribed Phile events ['eventName' => 'classMethodToCall'] |
|
28 | + * @var array subscribed Phile events ['eventName' => 'classMethodToCall'] |
|
29 | 29 | */ |
30 | 30 | protected $events = []; |
31 | 31 | |
32 | 32 | /** |
33 | - * @var array the plugin settings |
|
33 | + * @var array the plugin settings |
|
34 | 34 | */ |
35 | 35 | protected $settings = []; |
36 | 36 |
@@ -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 | } |
@@ -22,7 +22,7 @@ |
||
22 | 22 | protected $needsSetup; |
23 | 23 | |
24 | 24 | /** |
25 | - * @var array event subscription |
|
25 | + * @var array event subscription |
|
26 | 26 | */ |
27 | 27 | protected $events = [ |
28 | 28 | 'config_loaded' => 'onConfigLoaded', |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function outputPluginSettings($data = null) |
51 | 51 | { |
52 | - // you can access this plugins' config in $this->settings |
|
52 | + // you can access this plugins' config in $this->settings |
|
53 | 53 | $settings = $this->settings; |
54 | 54 | |
55 | 55 | $content = $data['content']; |