@@ -73,7 +73,7 @@ |
||
73 | 73 | /** |
74 | 74 | * XoopsFormButtonTray::setValue() |
75 | 75 | * |
76 | - * @param mixed $value |
|
76 | + * @param string $value |
|
77 | 77 | * |
78 | 78 | * @return void |
79 | 79 | */ |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | |
89 | 89 | /** |
90 | 90 | * @param HTMLPurifier_Config $config |
91 | - * @return bool |
|
91 | + * @return false|null |
|
92 | 92 | */ |
93 | 93 | public function flush($config) |
94 | 94 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | /** |
113 | 113 | * @param HTMLPurifier_Config $config |
114 | - * @return bool |
|
114 | + * @return false|null |
|
115 | 115 | */ |
116 | 116 | public function cleanup($config) |
117 | 117 | { |
@@ -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 | * |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * |
47 | 47 | * @param string $value A PHP value |
48 | 48 | * |
49 | - * @return bool True if the value would require double quotes |
|
49 | + * @return integer True if the value would require double quotes |
|
50 | 50 | */ |
51 | 51 | public static function requiresDoubleQuoting($value) |
52 | 52 | { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | * |
215 | 215 | * @param string $scalar |
216 | 216 | * @param string $delimiters |
217 | - * @param array $stringDelimiters |
|
217 | + * @param string[] $stringDelimiters |
|
218 | 218 | * @param int &$i |
219 | 219 | * @param bool $evaluate |
220 | 220 | * @param array $references |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | * |
276 | 276 | * @param string $scalar |
277 | 277 | * @param int &$i |
278 | + * @param integer $i |
|
278 | 279 | * |
279 | 280 | * @return string A YAML string |
280 | 281 | * |
@@ -314,6 +314,13 @@ |
||
314 | 314 | return empty($data) ? null : $data; |
315 | 315 | } |
316 | 316 | |
317 | + /** |
|
318 | + * @param integer $offset |
|
319 | + * @param null|string $yaml |
|
320 | + * @param boolean $exceptionOnInvalidType |
|
321 | + * @param boolean $objectSupport |
|
322 | + * @param boolean $objectForMap |
|
323 | + */ |
|
317 | 324 | private function parseBlock($offset, $yaml, $exceptionOnInvalidType, $objectSupport, $objectForMap) |
318 | 325 | { |
319 | 326 | $skippedLineNumbers = $this->skippedLineNumbers; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | * @param integer $inline Nesting level where you switch to inline YAML |
45 | 45 | * @param integer $indent Number of spaces to indent for nested nodes |
46 | 46 | * |
47 | - * @return string|bool YAML string or false on error |
|
47 | + * @return string|false YAML string or false on error |
|
48 | 48 | */ |
49 | 49 | public static function dump($var, $inline = 4, $indent = 4) |
50 | 50 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * @param integer $inline Nesting level where you switch to inline YAML |
129 | 129 | * @param integer $indent Number of spaces to indent for nested nodes |
130 | 130 | * |
131 | - * @return string|boolean YAML string or false on error |
|
131 | + * @return string|false YAML string or false on error |
|
132 | 132 | */ |
133 | 133 | public static function dumpWrapped($var, $inline = 4, $indent = 4) |
134 | 134 | { |
@@ -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 | { |