@@ -291,7 +291,7 @@ discard block |
||
| 291 | 291 | * |
| 292 | 292 | * @param string $key key |
| 293 | 293 | * @param mixed $value value |
| 294 | - * @param mixed $a |
|
| 294 | + * @param string $a |
|
| 295 | 295 | */ |
| 296 | 296 | public function set($key, $value, $a = null) |
| 297 | 297 | { |
@@ -763,7 +763,7 @@ discard block |
||
| 763 | 763 | * @param bool $mq_fix Boolean whether or not to enable magic quotes fix |
| 764 | 764 | * @param HTMLPurifier_ConfigSchema $schema Schema to use, if not global copy |
| 765 | 765 | * |
| 766 | - * @return mixed |
|
| 766 | + * @return HTMLPurifier_Config |
|
| 767 | 767 | */ |
| 768 | 768 | public static function loadArrayFromForm($array, $index = false, $allowed = true, $mq_fix = true, $schema = null) |
| 769 | 769 | { |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | |
| 92 | 92 | /** |
| 93 | 93 | * Registers a decorator to add to all new cache objects |
| 94 | - * @param HTMLPurifier_DefinitionCache_Decorator|string $decorator An instance or the name of a decorator |
|
| 94 | + * @param string $decorator An instance or the name of a decorator |
|
| 95 | 95 | */ |
| 96 | 96 | public function addDecorator($decorator) |
| 97 | 97 | { |
@@ -21,8 +21,8 @@ |
||
| 21 | 21 | * parameters for constructing a doctype object |
| 22 | 22 | * @param string $doctype Name of doctype or literal doctype object |
| 23 | 23 | * @param bool $xml |
| 24 | - * @param array $modules Modules doctype will load |
|
| 25 | - * @param array $tidy_modules Modules doctype will load for certain modes |
|
| 24 | + * @param string[] $modules Modules doctype will load |
|
| 25 | + * @param string[] $tidy_modules Modules doctype will load for certain modes |
|
| 26 | 26 | * @param array $aliases Alias names for doctype |
| 27 | 27 | * @param string $dtd_public |
| 28 | 28 | * @param string $dtd_system |
@@ -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 | */ |
@@ -341,6 +341,7 @@ |
||
| 341 | 341 | /** |
| 342 | 342 | * Takes a string of HTML (fragment or document) and returns the content |
| 343 | 343 | * @todo Consider making protected |
| 344 | + * @param string $html |
|
| 344 | 345 | */ |
| 345 | 346 | public function extractBody($html) |
| 346 | 347 | { |
@@ -458,6 +458,9 @@ discard block |
||
| 458 | 458 | const CHARACTR = 4; |
| 459 | 459 | const EOF = 5; |
| 460 | 460 | |
| 461 | + /** |
|
| 462 | + * @param string $data |
|
| 463 | + */ |
|
| 461 | 464 | public function __construct($data) |
| 462 | 465 | { |
| 463 | 466 | $this->data = $data; |
@@ -478,6 +481,9 @@ discard block |
||
| 478 | 481 | return $this->tree->save(); |
| 479 | 482 | } |
| 480 | 483 | |
| 484 | + /** |
|
| 485 | + * @return string |
|
| 486 | + */ |
|
| 481 | 487 | private function char() |
| 482 | 488 | { |
| 483 | 489 | return ($this->char < $this->EOF) |
@@ -485,6 +491,11 @@ discard block |
||
| 485 | 491 | : false; |
| 486 | 492 | } |
| 487 | 493 | |
| 494 | + /** |
|
| 495 | + * @param integer $s |
|
| 496 | + * |
|
| 497 | + * @return string |
|
| 498 | + */ |
|
| 488 | 499 | private function character($s, $l = 0) |
| 489 | 500 | { |
| 490 | 501 | if ($s + $l < $this->EOF) { |
@@ -497,6 +508,10 @@ discard block |
||
| 497 | 508 | return null; |
| 498 | 509 | } |
| 499 | 510 | |
| 511 | + /** |
|
| 512 | + * @param string $char_class |
|
| 513 | + * @param integer $start |
|
| 514 | + */ |
|
| 500 | 515 | private function characters($char_class, $start) |
| 501 | 516 | { |
| 502 | 517 | return preg_replace('#^([' . $char_class . ']+).*#s', '\\1', substr($this->data, $start)); |
@@ -4664,6 +4679,9 @@ discard block |
||
| 4664 | 4679 | } |
| 4665 | 4680 | } |
| 4666 | 4681 | |
| 4682 | + /** |
|
| 4683 | + * @param string[] $elements |
|
| 4684 | + */ |
|
| 4667 | 4685 | private function clearStackToTableContext($elements) |
| 4668 | 4686 | { |
| 4669 | 4687 | /* When the steps above require the UA to clear the stack back to a |