@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @param string $sourceName template file name |
99 | 99 | * @param string $fileName configuration file name |
100 | 100 | * |
101 | - * @return true|string true on success, error message on failure |
|
101 | + * @return string|boolean true on success, error message on failure |
|
102 | 102 | */ |
103 | 103 | protected function writeConfigurationFile($vars, $path, $sourceName, $fileName) |
104 | 104 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Rewrite mainfile and secure file with current templates |
194 | 194 | * |
195 | - * @return bool |
|
195 | + * @return string|boolean |
|
196 | 196 | */ |
197 | 197 | public function apply_zaplegacy() |
198 | 198 | { |
@@ -363,6 +363,9 @@ discard block |
||
363 | 363 | } |
364 | 364 | } |
365 | 365 | |
366 | + /** |
|
367 | + * @param integer $value |
|
368 | + */ |
|
366 | 369 | public static function eq($value, $value2, $message = '') |
367 | 370 | { |
368 | 371 | if ($value2 != $value) { |
@@ -937,6 +940,9 @@ discard block |
||
937 | 940 | return mb_strwidth($value, $encoding); |
938 | 941 | } |
939 | 942 | |
943 | + /** |
|
944 | + * @param string $message |
|
945 | + */ |
|
940 | 946 | protected static function reportInvalidArgument($message) |
941 | 947 | { |
942 | 948 | throw new InvalidArgumentException($message); |
@@ -521,7 +521,7 @@ discard block |
||
521 | 521 | } |
522 | 522 | |
523 | 523 | /** |
524 | - * @param $dirname |
|
524 | + * @param string $dirname |
|
525 | 525 | * @param $template |
526 | 526 | * @param string $type |
527 | 527 | * |
@@ -1405,9 +1405,9 @@ discard block |
||
1405 | 1405 | |
1406 | 1406 | /** |
1407 | 1407 | * @param $module |
1408 | - * @param $title |
|
1408 | + * @param string $title |
|
1409 | 1409 | * |
1410 | - * @return array |
|
1410 | + * @return string[] |
|
1411 | 1411 | */ |
1412 | 1412 | function xoops_module_log_header($module, $title) |
1413 | 1413 | { |
@@ -1433,7 +1433,7 @@ discard block |
||
1433 | 1433 | * 2 = smarty compile |
1434 | 1434 | * 3 = xoops cache |
1435 | 1435 | * or null to clear all |
1436 | - * @return bool |
|
1436 | + * @return boolean|null |
|
1437 | 1437 | */ |
1438 | 1438 | function xoops_module_delayed_clean_cache($cacheList = null) |
1439 | 1439 | { |
@@ -160,6 +160,9 @@ discard block |
||
160 | 160 | } |
161 | 161 | |
162 | 162 | |
163 | + /** |
|
164 | + * @param string $type |
|
165 | + */ |
|
163 | 166 | private static function _colorize( $text, $type, $nlAfter = true ) |
164 | 167 | { |
165 | 168 | $nlAfter = $nlAfter ? PHP_EOL : ''; |
@@ -201,6 +204,10 @@ discard block |
||
201 | 204 | } |
202 | 205 | |
203 | 206 | |
207 | + /** |
|
208 | + * @param string $char |
|
209 | + * @param integer $repeat |
|
210 | + */ |
|
204 | 211 | private static function _char( $char, $repeat = null ) |
205 | 212 | { |
206 | 213 | switch ( Kint::enabled() ) { |
@@ -221,6 +228,9 @@ discard block |
||
221 | 228 | return $repeat ? str_repeat( $char, $repeat ) : $char; |
222 | 229 | } |
223 | 230 | |
231 | + /** |
|
232 | + * @param string $text |
|
233 | + */ |
|
224 | 234 | private static function _title( $text ) |
225 | 235 | { |
226 | 236 | $escaped = kintParser::escape( $text ); |
@@ -171,7 +171,6 @@ |
||
171 | 171 | /** |
172 | 172 | * called for each dump, opens the html tag |
173 | 173 | * |
174 | - * @param array $callee caller information taken from debug backtrace |
|
175 | 174 | * |
176 | 175 | * @return string |
177 | 176 | */ |
@@ -234,6 +234,9 @@ |
||
234 | 234 | } |
235 | 235 | |
236 | 236 | |
237 | + /** |
|
238 | + * @return string|null |
|
239 | + */ |
|
237 | 240 | public static function escape( $value, $encoding = null ) |
238 | 241 | { |
239 | 242 | if ( empty( $value ) ) return $value; |
@@ -90,6 +90,9 @@ |
||
90 | 90 | } |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param integer $start |
|
95 | + */ |
|
93 | 96 | protected static function _substr( $string, $start, $end, $encoding = null ) |
94 | 97 | { |
95 | 98 | if ( function_exists( 'mb_substr' ) ) { |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | * |
108 | 108 | * @param array $trace [OPTIONAL] you can pass your own trace, otherwise, `debug_backtrace` will be called |
109 | 109 | * |
110 | - * @return mixed |
|
110 | + * @return string|null |
|
111 | 111 | */ |
112 | 112 | public static function trace( $trace = null ) |
113 | 113 | { |
@@ -305,6 +305,9 @@ discard block |
||
305 | 305 | return $shortenedName; |
306 | 306 | } |
307 | 307 | |
308 | + /** |
|
309 | + * @return string |
|
310 | + */ |
|
308 | 311 | public static function getIdeLink( $file, $line ) |
309 | 312 | { |
310 | 313 | return str_replace( array( '%f', '%l' ), array( $file, $line ), self::$fileLinkFormat ); |
@@ -317,7 +320,7 @@ discard block |
||
317 | 320 | * @param int $lineNumber the line to display |
318 | 321 | * @param int $padding surrounding lines to show besides the main one |
319 | 322 | * |
320 | - * @return bool|string |
|
323 | + * @return false|string |
|
321 | 324 | */ |
322 | 325 | private static function _showSource( $file, $lineNumber, $padding = 7 ) |
323 | 326 | { |
@@ -590,7 +593,7 @@ discard block |
||
590 | 593 | * |
591 | 594 | * @param $step |
592 | 595 | * |
593 | - * @return array |
|
596 | + * @return boolean |
|
594 | 597 | */ |
595 | 598 | private static function _stepIsInternal( $step ) |
596 | 599 | { |
@@ -195,6 +195,7 @@ |
||
195 | 195 | |
196 | 196 | /** |
197 | 197 | * Helper function for _color_hsl2rgb(). |
198 | + * @param double $h |
|
198 | 199 | */ |
199 | 200 | private static function _hue2rgb( $m1, $m2, $h ) |
200 | 201 | { |