@@ -209,9 +209,9 @@ |
||
| 209 | 209 | /** |
| 210 | 210 | * Add an element |
| 211 | 211 | * |
| 212 | - * @param CriteriaElement|object $criteriaElement |
|
| 212 | + * @param CriteriaElement $criteriaElement |
|
| 213 | 213 | * @param string $condition |
| 214 | - * @return object reference to this collection |
|
| 214 | + * @return CriteriaCompo reference to this collection |
|
| 215 | 215 | */ |
| 216 | 216 | public function &add(CriteriaElement $criteriaElement, $condition = 'AND') |
| 217 | 217 | { |
@@ -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 | { |
@@ -402,7 +402,7 @@ |
||
| 402 | 402 | /** |
| 403 | 403 | * Get md5 Checksum of file with previous check of Filesize |
| 404 | 404 | * |
| 405 | - * @param mixed $maxsize in MB or true to force |
|
| 405 | + * @param integer $maxsize in MB or true to force |
|
| 406 | 406 | * @return string md5 Checksum {@link http://php.net/md5_file See md5_file()} |
| 407 | 407 | * @access public |
| 408 | 408 | */ |
@@ -510,7 +510,7 @@ discard block |
||
| 510 | 510 | * Private method to list directories and files in each directory |
| 511 | 511 | * |
| 512 | 512 | * @param string $path |
| 513 | - * @param $hidden |
|
| 513 | + * @param boolean $hidden |
|
| 514 | 514 | * |
| 515 | 515 | * @internal param $ $ = boolean $hidden |
| 516 | 516 | * @access private |
@@ -750,7 +750,7 @@ discard block |
||
| 750 | 750 | * |
| 751 | 751 | * @param array|string $options (to, from, chmod, skip) |
| 752 | 752 | * |
| 753 | - * @return boolean Success |
|
| 753 | + * @return string|false Success |
|
| 754 | 754 | * @access public |
| 755 | 755 | */ |
| 756 | 756 | public function move($options) |
@@ -367,6 +367,10 @@ |
||
| 367 | 367 | return $file; |
| 368 | 368 | } |
| 369 | 369 | |
| 370 | + /** |
|
| 371 | + * @param string $class |
|
| 372 | + * @param string $ext |
|
| 373 | + */ |
|
| 370 | 374 | private function findFileWithExtension($class, $ext) |
| 371 | 375 | { |
| 372 | 376 | // PSR-4 lookup |
@@ -50,9 +50,9 @@ discard block |
||
| 50 | 50 | * Decodes a JWT string into a PHP object. |
| 51 | 51 | * |
| 52 | 52 | * @param string $jwt The JWT |
| 53 | - * @param string|array $key The key, or map of keys. |
|
| 53 | + * @param string $key The key, or map of keys. |
|
| 54 | 54 | * If the algorithm used is asymmetric, this is the public key |
| 55 | - * @param array $allowed_algs List of supported verification algorithms |
|
| 55 | + * @param string[] $allowed_algs List of supported verification algorithms |
|
| 56 | 56 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
| 57 | 57 | * |
| 58 | 58 | * @return object The JWT's payload as a PHP object |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | * Sign a string with a given key and algorithm. |
| 178 | 178 | * |
| 179 | 179 | * @param string $msg The message to sign |
| 180 | - * @param string|resource $key The secret key |
|
| 180 | + * @param string $key The secret key |
|
| 181 | 181 | * @param string $alg The signing algorithm. |
| 182 | 182 | * Supported algorithms are 'HS256', 'HS384', 'HS512' and 'RS256' |
| 183 | 183 | * |
@@ -487,6 +487,7 @@ |
||
| 487 | 487 | * call (modifiers). |
| 488 | 488 | * |
| 489 | 489 | * @param array $trace |
| 490 | + * @param integer $num_params |
|
| 490 | 491 | * |
| 491 | 492 | * @return array($params, $modifiers, $callee, $caller, $miniTrace) |
| 492 | 493 | */ |
@@ -54,6 +54,9 @@ discard block |
||
| 54 | 54 | return true; |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param integer $pos |
|
| 59 | + */ |
|
| 57 | 60 | public function replaceRepresentation(Kint_Object_Representation $rep, $pos = null) |
| 58 | 61 | { |
| 59 | 62 | if ($pos === null) { |
@@ -69,6 +72,9 @@ discard block |
||
| 69 | 72 | unset($this->representations[$name]); |
| 70 | 73 | } |
| 71 | 74 | |
| 75 | + /** |
|
| 76 | + * @param string $name |
|
| 77 | + */ |
|
| 72 | 78 | public function getRepresentation($name) |
| 73 | 79 | { |
| 74 | 80 | if (isset($this->representations[$name])) { |
@@ -79,6 +79,9 @@ |
||
| 79 | 79 | return strlen($string); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | + /** |
|
| 83 | + * @param integer $start |
|
| 84 | + */ |
|
| 82 | 85 | public static function substr($string, $start, $length = null, $encoding = false) |
| 83 | 86 | { |
| 84 | 87 | if (extension_loaded('mbstring')) { |