@@ -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 $file |
|
80 | 80 | * |
81 | 81 | * @return mixed|null |
82 | 82 | */ |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | /** |
111 | 111 | * static method to get files by directory and file filter |
112 | 112 | * |
113 | - * @param $directory |
|
113 | + * @param string $directory |
|
114 | 114 | * @param string $filter |
115 | 115 | * |
116 | 116 | * @return array |
@@ -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 |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The Phile Utility class |
|
4 | - */ |
|
3 | + * The Phile Utility class |
|
4 | + */ |
|
5 | 5 | namespace Phile\Core; |
6 | 6 | |
7 | 7 | /** |
@@ -128,7 +128,7 @@ discard block |
||
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 | } |
@@ -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 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The page model |
|
4 | - */ |
|
3 | + * The page model |
|
4 | + */ |
|
5 | 5 | namespace Phile\Model; |
6 | 6 | |
7 | 7 | use Phile\Core\Router; |
@@ -128,7 +128,7 @@ |
||
128 | 128 | * get file path to plugin root (trailing slash) or to a sub-item |
129 | 129 | * |
130 | 130 | * @param string $subPath |
131 | - * @return null|string null if item does not exist |
|
131 | + * @return string null if item does not exist |
|
132 | 132 | */ |
133 | 133 | protected function getPluginPath($subPath = '') |
134 | 134 | { |
@@ -117,7 +117,7 @@ |
||
117 | 117 | if (!is_callable([$this, $method])) { |
118 | 118 | $class = get_class($this); |
119 | 119 | throw new \RuntimeException( |
120 | - "Event $eventKey can't invoke $class::$method(). Not callable.", |
|
120 | + "event $eventKey can't invoke $class::$method(). Not callable.", |
|
121 | 121 | 1428564865 |
122 | 122 | ); |
123 | 123 | } |
@@ -21,17 +21,17 @@ |
||
21 | 21 | { |
22 | 22 | |
23 | 23 | /** |
24 | - * @var string plugin attributes |
|
24 | + * @var string plugin attributes |
|
25 | 25 | */ |
26 | 26 | protected $plugin = []; |
27 | 27 | |
28 | 28 | /** |
29 | - * @var array subscribed Phile events ['eventName' => 'classMethodToCall'] |
|
29 | + * @var array subscribed Phile events ['eventName' => 'classMethodToCall'] |
|
30 | 30 | */ |
31 | 31 | protected $events = []; |
32 | 32 | |
33 | 33 | /** |
34 | - * @var array the plugin settings |
|
34 | + * @var array the plugin settings |
|
35 | 35 | */ |
36 | 36 | protected $settings = []; |
37 | 37 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | /** |
80 | 80 | * wrapper to call the render engine |
81 | 81 | * |
82 | - * @param $engine |
|
82 | + * @param \Twig_Environment $engine |
|
83 | 83 | * @param $vars |
84 | 84 | * @return mixed |
85 | 85 | */ |
@@ -175,7 +175,7 @@ |
||
175 | 175 | ]; |
176 | 176 | |
177 | 177 | /** |
178 | - * @var array $templateVars |
|
178 | + * @var array $templateVars |
|
179 | 179 | */ |
180 | 180 | $templateVars = Registry::get('templateVars'); |
181 | 181 | $templateVars += $defaults; |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * The Phile Utility class |
|
4 | - */ |
|
3 | + * The Phile Utility class |
|
4 | + */ |
|
5 | 5 | namespace Phile; |
6 | 6 | |
7 | 7 | /** |
@@ -20,6 +20,6 @@ |
||
20 | 20 | /** |
21 | 21 | * @var \SplFileInfo $this |
22 | 22 | */ |
23 | - return (preg_match('/^[^\.]{1}.*'.CONTENT_EXT.'/', $this->getFilename()) > 0); |
|
23 | + return (preg_match('/^[^\.]{1}.*' . CONTENT_EXT . '/', $this->getFilename()) > 0); |
|
24 | 24 | } |
25 | 25 | } |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * the filter class for content files |
|
4 | - */ |
|
3 | + * the filter class for content files |
|
4 | + */ |
|
5 | 5 | namespace Phile\FilterIterator; |
6 | 6 | |
7 | 7 | /** |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | public function accept() |
19 | 19 | { |
20 | 20 | /** |
21 | - * @var \SplFileInfo $this |
|
21 | + * @var \SplFileInfo $this |
|
22 | 22 | */ |
23 | 23 | return (preg_match('/^[^\.]{1}.*'.CONTENT_EXT.'/', $this->getFilename()) > 0); |
24 | 24 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * the filter class for all files |
|
4 | - */ |
|
3 | + * the filter class for all files |
|
4 | + */ |
|
5 | 5 | namespace Phile\FilterIterator; |
6 | 6 | |
7 | 7 | /** |
@@ -102,7 +102,7 @@ |
||
102 | 102 | spl_autoload_extensions(".php"); |
103 | 103 | // load phile core |
104 | 104 | spl_autoload_register( |
105 | - function ($className) { |
|
105 | + function($className) { |
|
106 | 106 | $fileName = LIB_DIR . str_replace("\\", DS, $className) . '.php'; |
107 | 107 | if (file_exists($fileName)) { |
108 | 108 | include_once $fileName; |
@@ -1,7 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * the abstract base model |
|
4 | - */ |
|
3 | + * the abstract base model |
|
4 | + */ |
|
5 | 5 | namespace Phile\Model; |
6 | 6 | |
7 | 7 | /** |
@@ -15,7 +15,7 @@ discard block |
||
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 |