@@ -451,7 +451,7 @@ |
||
451 | 451 | * separate lists for processing. Format is element[attr1|attr2],element2... |
452 | 452 | * @warning Although it's largely drawn from TinyMCE's implementation, |
453 | 453 | * it is different, and you'll probably have to modify your lists |
454 | - * @param array $list String list to parse |
|
454 | + * @param string $list String list to parse |
|
455 | 455 | * @return array |
456 | 456 | * @todo Give this its own class, probably static interface |
457 | 457 | */ |
@@ -118,7 +118,7 @@ |
||
118 | 118 | * the HTMLPurifier_ElementDef class. There is a similar function |
119 | 119 | * in HTMLPurifier_HTMLDefinition. |
120 | 120 | * @param HTMLPurifier_ElementDef $def |
121 | - * @return HTMLPurifier_ChildDef subclass |
|
121 | + * @return boolean subclass |
|
122 | 122 | */ |
123 | 123 | public function getChildDef($def) |
124 | 124 | { |
@@ -205,6 +205,7 @@ |
||
205 | 205 | /** |
206 | 206 | * Adds a module to the current doctype by first registering it, |
207 | 207 | * and then tacking it on to the active doctype |
208 | + * @param HTMLPurifier_HTMLModule $module |
|
208 | 209 | */ |
209 | 210 | public function addModule($module) |
210 | 211 | { |
@@ -65,7 +65,7 @@ |
||
65 | 65 | * deleted a node, and now need to see if this change affected any |
66 | 66 | * earlier nodes. Rewinding does not affect other injectors, and can |
67 | 67 | * result in infinite loops if not used carefully. |
68 | - * @param bool|int $offset |
|
68 | + * @param integer $offset |
|
69 | 69 | * @warning HTML Purifier will prevent you from fast-forwarding with this |
70 | 70 | * function. |
71 | 71 | */ |
@@ -328,7 +328,7 @@ |
||
328 | 328 | * Determines if a particular token requires an earlier inline token |
329 | 329 | * to get a paragraph. This should be used with _forwardUntilEndToken |
330 | 330 | * @param HTMLPurifier_Token $current |
331 | - * @return bool |
|
331 | + * @return boolean|null |
|
332 | 332 | */ |
333 | 333 | private function _checkNeedsP($current) |
334 | 334 | { |
@@ -37,6 +37,7 @@ |
||
37 | 37 | * @param string $data String parsed character data. |
38 | 38 | * @param int $line |
39 | 39 | * @param int $col |
40 | + * @param boolean $is_whitespace |
|
40 | 41 | */ |
41 | 42 | public function __construct($data, $is_whitespace, $line = null, $col = null) |
42 | 43 | { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | /** |
109 | 109 | * Prints a simple key/value row in a table. |
110 | 110 | * @param string $name Key |
111 | - * @param mixed $value Value |
|
111 | + * @param string $value Value |
|
112 | 112 | * @return string |
113 | 113 | */ |
114 | 114 | protected function row($name, $value) |
@@ -528,9 +528,10 @@ discard block |
||
528 | 528 | * being the current one) will be deleted. |
529 | 529 | * |
530 | 530 | * @param HTMLPurifier_Token|array|int|bool $token Token substitution value |
531 | - * @param HTMLPurifier_Injector|int $injector Injector that performed the substitution; default is if |
|
531 | + * @param integer $injector Injector that performed the substitution; default is if |
|
532 | 532 | * this is not an injector related operation. |
533 | 533 | * @throws HTMLPurifier_Exception |
534 | + * @return HTMLPurifier_Token |
|
534 | 535 | */ |
535 | 536 | protected function processToken($token, $injector = -1) |
536 | 537 | { |
@@ -577,6 +578,7 @@ discard block |
||
577 | 578 | * Inserts a token before the current token. Cursor now points to |
578 | 579 | * this token. You must reprocess after this. |
579 | 580 | * @param HTMLPurifier_Token $token |
581 | + * @return HTMLPurifier_Token |
|
580 | 582 | */ |
581 | 583 | private function insertBefore($token) |
582 | 584 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param HTMLPurifier_Token_Tag $tag |
47 | 47 | * @param HTMLPurifier_Config $config |
48 | 48 | * @param HTMLPurifier_Context $context |
49 | - * @return HTMLPurifier_Token_End|string |
|
49 | + * @return HTMLPurifier_Token_Tag |
|
50 | 50 | */ |
51 | 51 | public function transform($tag, $config, $context) |
52 | 52 | { |