@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | //static $configs; |
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | - * @param $name |
|
| 30 | + * @param string $name |
|
| 31 | 31 | * @param string $type |
| 32 | 32 | * |
| 33 | 33 | * @return bool |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | * Load core class |
| 92 | 92 | * |
| 93 | 93 | * @access private |
| 94 | - * @param $name |
|
| 94 | + * @param string $name |
|
| 95 | 95 | * @return bool|string |
| 96 | 96 | */ |
| 97 | 97 | public static function loadCore($name) |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | * Load Framework class |
| 126 | 126 | * |
| 127 | 127 | * @access private |
| 128 | - * @param $name |
|
| 128 | + * @param string $name |
|
| 129 | 129 | * @return bool|string |
| 130 | 130 | */ |
| 131 | 131 | public static function loadFramework($name) |
@@ -723,7 +723,7 @@ |
||
| 723 | 723 | * xos_opal_Theme::renderMetas() |
| 724 | 724 | * |
| 725 | 725 | * @param mixed $type |
| 726 | - * @param mixed $return |
|
| 726 | + * @param boolean $return |
|
| 727 | 727 | * @return bool|string |
| 728 | 728 | */ |
| 729 | 729 | public function renderMetas($type = null, $return = false) |
@@ -1350,7 +1350,7 @@ |
||
| 1350 | 1350 | * Load a {@link XoopsObject} object from the database |
| 1351 | 1351 | * |
| 1352 | 1352 | * @access protected |
| 1353 | - * @param mixed $id ID |
|
| 1353 | + * @param integer|null $id ID |
|
| 1354 | 1354 | * @param array $fields fields to fetch |
| 1355 | 1355 | * @return XoopsObject {@link XoopsObject} |
| 1356 | 1356 | */ |
@@ -48,9 +48,9 @@ discard block |
||
| 48 | 48 | * Decodes a JWT string into a PHP object. |
| 49 | 49 | * |
| 50 | 50 | * @param string $jwt The JWT |
| 51 | - * @param string|array $key The key, or map of keys. |
|
| 51 | + * @param string $key The key, or map of keys. |
|
| 52 | 52 | * If the algorithm used is asymmetric, this is the public key |
| 53 | - * @param array $allowed_algs List of supported verification algorithms |
|
| 53 | + * @param string[] $allowed_algs List of supported verification algorithms |
|
| 54 | 54 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
| 55 | 55 | * |
| 56 | 56 | * @return object The JWT's payload as a PHP object |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * Sign a string with a given key and algorithm. |
| 175 | 175 | * |
| 176 | 176 | * @param string $msg The message to sign |
| 177 | - * @param string|resource $key The secret key |
|
| 177 | + * @param string $key The secret key |
|
| 178 | 178 | * @param string $alg The signing algorithm. |
| 179 | 179 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
| 180 | 180 | * |
@@ -72,6 +72,10 @@ discard block |
||
| 72 | 72 | * @param $isCaseFolding |
| 73 | 73 | * @returns void |
| 74 | 74 | ****************************************************************************/ |
| 75 | + |
|
| 76 | + /** |
|
| 77 | + * @param boolean $isCaseFolding |
|
| 78 | + */ |
|
| 75 | 79 | public function setCaseFolding($isCaseFolding) |
| 76 | 80 | { |
| 77 | 81 | assert(is_bool($isCaseFolding)); |
@@ -338,8 +342,8 @@ discard block |
||
| 338 | 342 | * The default tag handler method for a tag with no handler |
| 339 | 343 | * |
| 340 | 344 | * @abstract |
| 341 | - * @param $parser |
|
| 342 | - * @param $tagName |
|
| 345 | + * @param integer $parser |
|
| 346 | + * @param string $tagName |
|
| 343 | 347 | * @param $attributesArray |
| 344 | 348 | */ |
| 345 | 349 | public function handleBeginElementDefault($parser, $tagName, $attributesArray) |
@@ -350,8 +354,8 @@ discard block |
||
| 350 | 354 | * The default tag handler method for a tag with no handler |
| 351 | 355 | * |
| 352 | 356 | * @abstract |
| 353 | - * @param $parser |
|
| 354 | - * @param $tagName |
|
| 357 | + * @param integer $parser |
|
| 358 | + * @param string $tagName |
|
| 355 | 359 | */ |
| 356 | 360 | public function handleEndElementDefault($parser, $tagName) |
| 357 | 361 | { |
@@ -361,8 +365,8 @@ discard block |
||
| 361 | 365 | * The default tag handler method for a tag with no handler |
| 362 | 366 | * |
| 363 | 367 | * @abstract |
| 364 | - * @param $parser |
|
| 365 | - * @param $data |
|
| 368 | + * @param integer $parser |
|
| 369 | + * @param string $data |
|
| 366 | 370 | */ |
| 367 | 371 | public function handleCharacterDataDefault($parser, $data) |
| 368 | 372 | { |
@@ -371,7 +375,7 @@ discard block |
||
| 371 | 375 | /** |
| 372 | 376 | * Sets error messages |
| 373 | 377 | * |
| 374 | - * @param $error string an error message |
|
| 378 | + * @param string $error string an error message |
|
| 375 | 379 | */ |
| 376 | 380 | public function setErrors($error) |
| 377 | 381 | { |
@@ -332,7 +332,7 @@ |
||
| 332 | 332 | * @param array $thread |
| 333 | 333 | * @param int $key |
| 334 | 334 | * @param array $replies |
| 335 | - * @param string|int $prefix |
|
| 335 | + * @param integer $prefix |
|
| 336 | 336 | * @param bool $admin_view |
| 337 | 337 | * @param integer $depth |
| 338 | 338 | * @access private |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | class Database |
| 117 | 117 | { |
| 118 | 118 | /** |
| 119 | - * @return object |
|
| 119 | + * @return XoopsDatabase|null |
|
| 120 | 120 | */ |
| 121 | 121 | public function getInstance() |
| 122 | 122 | { |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | /** |
| 291 | 291 | * XoopsBlock::getOptions() |
| 292 | 292 | * |
| 293 | - * @return bool |
|
| 293 | + * @return string |
|
| 294 | 294 | */ |
| 295 | 295 | public function getOptions() |
| 296 | 296 | { |
@@ -333,7 +333,7 @@ discard block |
||
| 333 | 333 | * 4: centerblock - right |
| 334 | 334 | * 5: centerblock - center |
| 335 | 335 | * 6: centerblock - left, right, center |
| 336 | - * @param $visible 0: not visible 1: visible |
|
| 336 | + * @param integer $visible 0: not visible 1: visible |
|
| 337 | 337 | * @param string $orderby order of the blocks |
| 338 | 338 | * @param int $isactive |
| 339 | 339 | * @returns array of block objects |
@@ -460,7 +460,7 @@ discard block |
||
| 460 | 460 | * XoopsBlock::getByModule() |
| 461 | 461 | * |
| 462 | 462 | * @param mixed $moduleid |
| 463 | - * @param mixed $asobject |
|
| 463 | + * @param boolean $asobject |
|
| 464 | 464 | * @return array |
| 465 | 465 | */ |
| 466 | 466 | public static function getByModule($moduleid, $asobject = true) |
@@ -490,8 +490,8 @@ discard block |
||
| 490 | 490 | * |
| 491 | 491 | * @param mixed $groupid |
| 492 | 492 | * @param integer $module_id |
| 493 | - * @param mixed $toponlyblock |
|
| 494 | - * @param mixed $visible |
|
| 493 | + * @param boolean $toponlyblock |
|
| 494 | + * @param integer $visible |
|
| 495 | 495 | * @param string $orderby |
| 496 | 496 | * @param integer $isactive |
| 497 | 497 | * @return array |
@@ -26,9 +26,9 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * XoopsLocalAbstract::substr() |
| 28 | 28 | * |
| 29 | - * @param mixed $str |
|
| 30 | - * @param mixed $start |
|
| 31 | - * @param mixed $length |
|
| 29 | + * @param string $str |
|
| 30 | + * @param integer $start |
|
| 31 | + * @param integer $length |
|
| 32 | 32 | * @param string $trimmarker |
| 33 | 33 | * |
| 34 | 34 | * @return mixed|string |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | * @param mixed $text |
| 71 | 71 | * @param string $to |
| 72 | 72 | * @param string $from |
| 73 | - * @return mixed|string |
|
| 73 | + * @return string |
|
| 74 | 74 | */ |
| 75 | 75 | public static function convert_encoding($text, $to = 'utf-8', $from = '') |
| 76 | 76 | { |