@@ -131,6 +131,9 @@ discard block |
||
131 | 131 | return '<dl>'.$header.$children.'</dl>'; |
132 | 132 | } |
133 | 133 | |
134 | + /** |
|
135 | + * @param boolean $has_children |
|
136 | + */ |
|
134 | 137 | public function renderHeaderWrapper(Kint_Object $o, $has_children, $contents) |
135 | 138 | { |
136 | 139 | $out = '<dt'; |
@@ -257,6 +260,9 @@ discard block |
||
257 | 260 | return $output.'</dd>'; |
258 | 261 | } |
259 | 262 | |
263 | + /** |
|
264 | + * @return string |
|
265 | + */ |
|
260 | 266 | protected function renderTab(Kint_Object $o, Kint_Object_Representation $rep) |
261 | 267 | { |
262 | 268 | if ($plugin = $this->getPlugin(self::$tab_renderers, $rep->hints)) { |
@@ -14,6 +14,7 @@ |
||
14 | 14 | * |
15 | 15 | * This is a placeholder until Kint 3 when it can be renamed to |
16 | 16 | * renderLockedHeader after the deprecated static method is removed |
17 | + * @param string $content |
|
17 | 18 | */ |
18 | 19 | public function renderHeaderLocked(Kint_Object $o, $content) |
19 | 20 | { |
@@ -94,6 +94,9 @@ |
||
94 | 94 | return $out; |
95 | 95 | } |
96 | 96 | |
97 | + /** |
|
98 | + * @param integer $width |
|
99 | + */ |
|
97 | 100 | public function boxText($text, $width) |
98 | 101 | { |
99 | 102 | if (Kint_Object_Blob::strlen($text) > $width - 4) { |
@@ -329,6 +329,9 @@ |
||
329 | 329 | return $function_calls; |
330 | 330 | } |
331 | 331 | |
332 | + /** |
|
333 | + * @param integer $direction |
|
334 | + */ |
|
332 | 335 | private static function realTokenIndex(array $tokens, $index, $direction) |
333 | 336 | { |
334 | 337 | $index += $direction; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | /** |
75 | 75 | * Get a reference to the only instance of this class |
76 | 76 | * |
77 | - * @return object XoopsLogger reference to the only instance |
|
77 | + * @return XoopsLogger XoopsLogger reference to the only instance |
|
78 | 78 | */ |
79 | 79 | public static function getInstance() |
80 | 80 | { |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | /** |
262 | 262 | * Determine if an object implements Throwable (or is an Exception that would under PHP 7.) |
263 | 263 | * |
264 | - * @param mixed $e Expected to be an object related to Exception or Throwable |
|
264 | + * @param Throwable $e Expected to be an object related to Exception or Throwable |
|
265 | 265 | * |
266 | 266 | * @return bool true if related to Throwable or Exception, otherwise false |
267 | 267 | */ |
@@ -277,7 +277,7 @@ discard block |
||
277 | 277 | * |
278 | 278 | * @param string $path |
279 | 279 | * |
280 | - * @return mixed|string |
|
280 | + * @return string |
|
281 | 281 | */ |
282 | 282 | public function sanitizePath($path) |
283 | 283 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | * @param $errFile |
437 | 437 | * @param $errLine |
438 | 438 | * @param null $errContext |
439 | - * @return bool |
|
439 | + * @return boolean|null |
|
440 | 440 | */ |
441 | 441 | function XoopsErrorHandler_HandleError($errNo, $errStr, $errFile, $errLine, $errContext = null) |
442 | 442 | { |
@@ -61,6 +61,9 @@ |
||
61 | 61 | return $source; |
62 | 62 | } |
63 | 63 | |
64 | +/** |
|
65 | + * @param string $search_str |
|
66 | + */ |
|
64 | 67 | function smarty_outputfilter_trimwhitespace_replace($search_str, $replace, &$subject) { |
65 | 68 | $_len = strlen($search_str); |
66 | 69 | $_pos = 0; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | * @param string $string |
35 | 35 | * @param HTMLPurifier_Config $config |
36 | 36 | * @param HTMLPurifier_Context $context |
37 | - * @return bool|string |
|
37 | + * @return false|string |
|
38 | 38 | */ |
39 | 39 | public function validate($string, $config, $context) |
40 | 40 | { |
@@ -94,6 +94,7 @@ discard block |
||
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) |
@@ -147,6 +148,7 @@ discard block |
||
147 | 148 | * Portably retrieve the data of a node; deals with older versions |
148 | 149 | * of libxml like 2.7.6 |
149 | 150 | * @param DOMNode $node |
151 | + * @return string |
|
150 | 152 | */ |
151 | 153 | protected function getData($node) |
152 | 154 | { |
@@ -793,6 +793,9 @@ discard block |
||
793 | 793 | |
794 | 794 | // from getid3.lib.php |
795 | 795 | |
796 | + /** |
|
797 | + * @param double $floatnumber |
|
798 | + */ |
|
796 | 799 | public function trunc($floatnumber) { |
797 | 800 | // truncates a floating-point number at the decimal point |
798 | 801 | // returns int (if possible, otherwise float) |
@@ -809,6 +812,9 @@ discard block |
||
809 | 812 | return $truncatednumber; |
810 | 813 | } |
811 | 814 | |
815 | + /** |
|
816 | + * @param string $byteword |
|
817 | + */ |
|
812 | 818 | public function LittleEndian2Int($byteword) { |
813 | 819 | $intvalue = 0; |
814 | 820 | $byteword = strrev($byteword); |
@@ -832,11 +838,17 @@ discard block |
||
832 | 838 | return $binvalue; |
833 | 839 | } |
834 | 840 | |
841 | + /** |
|
842 | + * @param string $rawdata |
|
843 | + */ |
|
835 | 844 | public function FixedPoint2_30($rawdata) { |
836 | 845 | $binarystring = $this->BigEndian2Bin($rawdata); |
837 | 846 | return $this->Bin2Dec(substr($binarystring, 0, 2)) + (float) ($this->Bin2Dec(substr($binarystring, 2, 30)) / 1073741824); |
838 | 847 | } |
839 | 848 | |
849 | + /** |
|
850 | + * @param string $binstring |
|
851 | + */ |
|
840 | 852 | public function Bin2Dec($binstring, $signed=false) { |
841 | 853 | $signmult = 1; |
842 | 854 | if ($signed) { |