@@ -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 | { |
@@ -274,6 +274,12 @@ discard block |
||
| 274 | 274 | return empty($data) ? null : $data; |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | + /** |
|
| 278 | + * @param integer $offset |
|
| 279 | + * @param boolean $exceptionOnInvalidType |
|
| 280 | + * @param boolean $objectSupport |
|
| 281 | + * @param boolean $objectForMap |
|
| 282 | + */ |
|
| 277 | 283 | private function parseBlock($offset, $yaml, $exceptionOnInvalidType, $objectSupport, $objectForMap) |
| 278 | 284 | { |
| 279 | 285 | $skippedLineNumbers = $this->skippedLineNumbers; |
@@ -792,6 +798,7 @@ discard block |
||
| 792 | 798 | * @see preg_last_error() |
| 793 | 799 | * |
| 794 | 800 | * @internal |
| 801 | + * @param string $pattern |
|
| 795 | 802 | */ |
| 796 | 803 | public static function preg_match($pattern, $subject, &$matches = null, $flags = 0, $offset = 0) |
| 797 | 804 | { |
@@ -275,6 +275,7 @@ |
||
| 275 | 275 | * |
| 276 | 276 | * @param string $scalar |
| 277 | 277 | * @param int &$i |
| 278 | + * @param integer $i |
|
| 278 | 279 | * |
| 279 | 280 | * @return string |
| 280 | 281 | * |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * @param $textarea_id |
| 31 | 31 | * |
| 32 | - * @return array |
|
| 32 | + * @return string[] |
|
| 33 | 33 | */ |
| 34 | 34 | public function encode($textarea_id) |
| 35 | 35 | { |
@@ -90,6 +90,8 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | 92 | * @param $text |
| 93 | + * @param integer $width |
|
| 94 | + * @param integer $height |
|
| 93 | 95 | * |
| 94 | 96 | * @return string |
| 95 | 97 | */ |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | * @param string $css |
| 19 | 19 | * @param HTMLPurifier_Config $config |
| 20 | 20 | * @param HTMLPurifier_Context $context |
| 21 | - * @return bool|string |
|
| 21 | + * @return string|false |
|
| 22 | 22 | */ |
| 23 | 23 | public function validate($css, $config, $context) |
| 24 | 24 | { |
@@ -173,6 +173,10 @@ discard block |
||
| 173 | 173 | return $this->parseData($string, false, $config); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | + /** |
|
| 177 | + * @param string $string |
|
| 178 | + * @param HTMLPurifier_Config $config |
|
| 179 | + */ |
|
| 176 | 180 | public function parseAttr($string, $config) { |
| 177 | 181 | return $this->parseData($string, true, $config); |
| 178 | 182 | } |
@@ -184,6 +188,7 @@ discard block |
||
| 184 | 188 | * into the correct ones. |
| 185 | 189 | * |
| 186 | 190 | * @param string $string String character data to be parsed. |
| 191 | + * @param boolean $is_attr |
|
| 187 | 192 | * @return string Parsed character data. |
| 188 | 193 | */ |
| 189 | 194 | public function parseData($string, $is_attr, $config) |
@@ -361,6 +366,7 @@ discard block |
||
| 361 | 366 | /** |
| 362 | 367 | * Takes a string of HTML (fragment or document) and returns the content |
| 363 | 368 | * @todo Consider making protected |
| 369 | + * @param string $html |
|
| 364 | 370 | */ |
| 365 | 371 | public function extractBody($html) |
| 366 | 372 | { |
@@ -94,6 +94,7 @@ |
||
| 94 | 94 | * To iterate is human, to recurse divine - L. Peter Deutsch |
| 95 | 95 | * @param DOMNode $node DOMNode to be tokenized. |
| 96 | 96 | * @param HTMLPurifier_Token[] $tokens Array-list of already tokenized tokens. |
| 97 | + * @param HTMLPurifier_Config $config |
|
| 97 | 98 | * @return HTMLPurifier_Token of node appended to previously passed tokens. |
| 98 | 99 | */ |
| 99 | 100 | protected function tokenizeDOM($node, &$tokens, $config) |