@@ -6,7 +6,7 @@ |
||
6 | 6 | class Protector_postcommon_post_deny_by_rbl extends ProtectorFilterAbstract |
7 | 7 | { |
8 | 8 | /** |
9 | - * @return bool |
|
9 | + * @return null|boolean |
|
10 | 10 | */ |
11 | 11 | public function execute() |
12 | 12 | { |
@@ -9,7 +9,7 @@ |
||
9 | 9 | class Protector_postcommon_post_need_multibyte extends ProtectorFilterAbstract |
10 | 10 | { |
11 | 11 | /** |
12 | - * @return bool |
|
12 | + * @return boolean|null |
|
13 | 13 | */ |
14 | 14 | public function execute() |
15 | 15 | { |
@@ -8,7 +8,7 @@ |
||
8 | 8 | class Protector_postcommon_post_register_moratorium extends ProtectorFilterAbstract |
9 | 9 | { |
10 | 10 | /** |
11 | - * @return bool |
|
11 | + * @return boolean|null |
|
12 | 12 | */ |
13 | 13 | public function execute() |
14 | 14 | { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | class Protector_postcommon_register_insert_js_check extends ProtectorFilterAbstract |
7 | 7 | { |
8 | 8 | /** |
9 | - * @return bool |
|
9 | + * @return null|boolean |
|
10 | 10 | */ |
11 | 11 | public function execute() |
12 | 12 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | protected $minimumConfidence = 65.0; // set at your desired threshold |
24 | 24 | |
25 | 25 | /** |
26 | - * @return bool |
|
26 | + * @return boolean|null |
|
27 | 27 | */ |
28 | 28 | public function execute() |
29 | 29 | { |
@@ -104,7 +104,7 @@ |
||
104 | 104 | /** |
105 | 105 | * Initializes the purifier. |
106 | 106 | * |
107 | - * @param HTMLPurifier_Config|mixed $config Optional HTMLPurifier_Config object |
|
107 | + * @param HTMLPurifier_Config $config Optional HTMLPurifier_Config object |
|
108 | 108 | * for all instances of the purifier, if omitted, a default |
109 | 109 | * configuration is supplied (which can be overridden on a |
110 | 110 | * per-use basis). |
@@ -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) { |
@@ -496,6 +507,10 @@ discard block |
||
496 | 507 | } |
497 | 508 | } |
498 | 509 | |
510 | + /** |
|
511 | + * @param string $char_class |
|
512 | + * @param integer $start |
|
513 | + */ |
|
499 | 514 | private function characters($char_class, $start) |
500 | 515 | { |
501 | 516 | return preg_replace('#^([' . $char_class . ']+).*#s', '\\1', substr($this->data, $start)); |
@@ -4645,6 +4660,9 @@ discard block |
||
4645 | 4660 | } |
4646 | 4661 | } |
4647 | 4662 | |
4663 | + /** |
|
4664 | + * @param string[] $elements |
|
4665 | + */ |
|
4648 | 4666 | private function clearStackToTableContext($elements) |
4649 | 4667 | { |
4650 | 4668 | /* When the steps above require the UA to clear the stack back to a |
@@ -44,9 +44,9 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @param $text |
|
47 | + * @param string $text |
|
48 | 48 | * |
49 | - * @return mixed|string |
|
49 | + * @return string |
|
50 | 50 | */ |
51 | 51 | public function php($text) |
52 | 52 | { |
@@ -57,6 +57,9 @@ |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | |
60 | + /** |
|
61 | + * @param string $domain |
|
62 | + */ |
|
60 | 63 | public function loadLanguage($domain, $language = null) |
61 | 64 | { |
62 | 65 | $supports = null; |