@@ -166,6 +166,9 @@ |
||
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string $prop |
|
| 171 | + */ |
|
| 169 | 172 | protected function parseProperty(Kint_Object $o, $prop, &$var) |
| 170 | 173 | { |
| 171 | 174 | // Duplicating (And slightly optimizing) the Kint_Parser::parseObject() code here |
@@ -52,6 +52,10 @@ |
||
| 52 | 52 | $o->addRepresentation($r, 0); |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $var |
|
| 57 | + * @param string $parent_path |
|
| 58 | + */ |
|
| 55 | 59 | protected static function xmlToSimpleXML($var, $parent_path) |
| 56 | 60 | { |
| 57 | 61 | try { |
@@ -145,6 +145,9 @@ |
||
| 145 | 145 | return "<a {$class}href=\"{$ideLink}\">{$shortenedPath}:{$line}</a>"; |
| 146 | 146 | } |
| 147 | 147 | |
| 148 | + /** |
|
| 149 | + * @param string $string |
|
| 150 | + */ |
|
| 148 | 151 | public function escape($string, $encoding = false) |
| 149 | 152 | { |
| 150 | 153 | if ($encoding === false) { |
@@ -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; |