@@ -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 | { |