@@ -149,7 +149,7 @@ |
||
149 | 149 | /** |
150 | 150 | * This function returns the current page number. |
151 | 151 | * |
152 | - * @return int |
|
152 | + * @return string |
|
153 | 153 | */ |
154 | 154 | public function getCurrentPage() |
155 | 155 | { |
@@ -357,7 +357,7 @@ |
||
357 | 357 | if(!function_exists('getFileContent')) { |
358 | 358 | /** |
359 | 359 | * @param string $filepath |
360 | - * @return bool|string |
|
360 | + * @return null|string |
|
361 | 361 | */ |
362 | 362 | function getFileContent($filepath) |
363 | 363 | { |
@@ -188,7 +188,7 @@ discard block |
||
188 | 188 | if(!function_exists('removeLastPath')) { |
189 | 189 | /** |
190 | 190 | * @param string $string |
191 | - * @return bool|string |
|
191 | + * @return string|false |
|
192 | 192 | */ |
193 | 193 | function removeLastPath($string) |
194 | 194 | { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | if(!function_exists('getExtension')) { |
207 | 207 | /** |
208 | 208 | * @param string $string |
209 | - * @return bool|string |
|
209 | + * @return string|false |
|
210 | 210 | * |
211 | 211 | * @TODO: not work if $string contains folder name with dot |
212 | 212 | */ |
@@ -3,9 +3,9 @@ discard block |
||
3 | 3 | interface CoreInterface |
4 | 4 | { |
5 | 5 | /** |
6 | - * @param $type |
|
7 | - * @param $scanPath |
|
8 | - * @param array $ext |
|
6 | + * @param string $type |
|
7 | + * @param string $scanPath |
|
8 | + * @param string[] $ext |
|
9 | 9 | * |
10 | 10 | * @return array |
11 | 11 | * |
@@ -18,6 +18,7 @@ discard block |
||
18 | 18 | * @param string $phpCode |
19 | 19 | * @param string $namespace |
20 | 20 | * @param array defaultParams |
21 | + * @return void |
|
21 | 22 | */ |
22 | 23 | public function addSnippet($name, $phpCode, $namespace = '#', array $defaultParams = array()); |
23 | 24 | |
@@ -25,6 +26,7 @@ discard block |
||
25 | 26 | * @param string $name |
26 | 27 | * @param string $text |
27 | 28 | * @param string $namespace |
29 | + * @return void |
|
28 | 30 | */ |
29 | 31 | public function addChunk($name, $text, $namespace = '#'); |
30 | 32 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | * @param int $flags |
11 | 11 | * @param string $encode |
12 | 12 | * @param int $safecount |
13 | - * @return string|array |
|
13 | + * @return null|string |
|
14 | 14 | */ |
15 | 15 | public function htmlspecialchars($str = '', $flags = ENT_COMPAT, $encode = '', $safecount = 0) |
16 | 16 | { |
@@ -33,6 +33,9 @@ discard block |
||
33 | 33 | public $renderPagerFncArgs; |
34 | 34 | public static $dataSetPagerCnt; |
35 | 35 | |
36 | + /** |
|
37 | + * @param boolean|string $id |
|
38 | + */ |
|
36 | 39 | public function __construct($id, $ds, $pageSize = 10, $pageNumber = -1) { |
37 | 40 | global $_PAGE; // use view state object |
38 | 41 | |
@@ -77,6 +80,9 @@ discard block |
||
77 | 80 | $this->pageSize = $ps; |
78 | 81 | } |
79 | 82 | |
83 | + /** |
|
84 | + * @param DataGrid $fncName |
|
85 | + */ |
|
80 | 86 | public function setRenderRowFnc($fncName, $args = "") { |
81 | 87 | $this->renderRowFnc = &$fncName; |
82 | 88 | $this->renderRowFncArgs = $args; // extra agruments |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * @param string $mode |
103 | 103 | * @param string $modifiers |
104 | - * @return bool|string |
|
104 | + * @return false|string |
|
105 | 105 | */ |
106 | 106 | public function _getDelim($mode, $modifiers) |
107 | 107 | { |
@@ -151,6 +151,13 @@ discard block |
||
151 | 151 | } |
152 | 152 | } |
153 | 153 | |
154 | + /** |
|
155 | + * @param string $mode |
|
156 | + * @param false|string $delim |
|
157 | + * @param string $modifiers |
|
158 | + * |
|
159 | + * @return string |
|
160 | + */ |
|
154 | 161 | public function _getRemainModifiers($mode, $delim, $modifiers) |
155 | 162 | { |
156 | 163 | if ($delim) { |
@@ -187,6 +194,9 @@ discard block |
||
187 | 194 | return substr($string, strpos($string, $delim) + $len); |
188 | 195 | } |
189 | 196 | |
197 | + /** |
|
198 | + * @param string $modifiers |
|
199 | + */ |
|
190 | 200 | public function splitEachModifiers($modifiers) |
191 | 201 | { |
192 | 202 | $modx = evolutionCMS(); |
@@ -259,6 +269,10 @@ discard block |
||
259 | 269 | return $result; |
260 | 270 | } |
261 | 271 | |
272 | + /** |
|
273 | + * @param string $key |
|
274 | + * @param string $value |
|
275 | + */ |
|
262 | 276 | public function parsePhx($key, $value, $modifiers) |
263 | 277 | { |
264 | 278 | $modx = evolutionCMS(); |
@@ -340,6 +354,10 @@ discard block |
||
340 | 354 | } |
341 | 355 | } |
342 | 356 | |
357 | + /** |
|
358 | + * @param string $cmd |
|
359 | + * @param string $opt |
|
360 | + */ |
|
343 | 361 | public function getValueFromPreset($key, $value, $cmd, $opt) |
344 | 362 | { |
345 | 363 | $modx = evolutionCMS(); |
@@ -1285,6 +1303,9 @@ discard block |
||
1285 | 1303 | return $value; |
1286 | 1304 | } |
1287 | 1305 | |
1306 | + /** |
|
1307 | + * @param string $cmd |
|
1308 | + */ |
|
1288 | 1309 | public function includeMdfFile($cmd) |
1289 | 1310 | { |
1290 | 1311 | $modx = evolutionCMS(); |
@@ -1477,6 +1498,10 @@ discard block |
||
1477 | 1498 | } |
1478 | 1499 | |
1479 | 1500 | // Sets a placeholder variable which can only be access by Modifiers |
1501 | + |
|
1502 | + /** |
|
1503 | + * @param string $value |
|
1504 | + */ |
|
1480 | 1505 | public function setModifiersVariable($key, $value) |
1481 | 1506 | { |
1482 | 1507 | if ($key != 'phx' && $key != 'dummy') { |
@@ -75,6 +75,10 @@ discard block |
||
75 | 75 | |
76 | 76 | public static $dataGridCnt; |
77 | 77 | |
78 | + /** |
|
79 | + * @param null|string $id |
|
80 | + * @param string $ds |
|
81 | + */ |
|
78 | 82 | public function __construct($id, $ds, $pageSize = 20, $pageNumber = -1) { |
79 | 83 | // set id |
80 | 84 | self::$dataGridCnt++; |
@@ -207,6 +211,9 @@ discard block |
||
207 | 211 | |
208 | 212 | // format column values |
209 | 213 | |
214 | + /** |
|
215 | + * @param integer $n |
|
216 | + */ |
|
210 | 217 | public function RenderRowFnc($n, $row) { |
211 | 218 | if($this->_alt == 0) { |
212 | 219 | $Style = $this->_itemStyle; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * @param string $string |
39 | 39 | * @param string $charset |
40 | - * @return mixed |
|
40 | + * @return string |
|
41 | 41 | */ |
42 | 42 | function entities($string, $charset = 'UTF-8') |
43 | 43 | { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | if (! function_exists('get_by_key')) { |
49 | 49 | /** |
50 | 50 | * @param mixed $data |
51 | - * @param string|int $key |
|
51 | + * @param string $key |
|
52 | 52 | * @param mixed $default |
53 | 53 | * @param Closure $validate |
54 | 54 | * @return mixed |