Completed
Pull Request — master (#124)
by Lucio
11:47
created
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -341,6 +341,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Lexer/PH5P.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -458,6 +458,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Node/Text.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -37,6 +37,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/Printer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
modules/protector/library/HTMLPurifier/Strategy/MakeWellFormed.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -528,9 +528,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/TagTransform/Font.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
xoops_lib/modules/protector/library/HTMLPurifier/TagTransform/Simple.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
      * @param HTMLPurifier_Token_Tag $tag
27 27
      * @param HTMLPurifier_Config $config
28 28
      * @param HTMLPurifier_Context $context
29
-     * @return string
29
+     * @return HTMLPurifier_Token_Tag
30 30
      */
31 31
     public function transform($tag, $config, $context)
32 32
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/URIDefinition.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
         $this->setupFilters($config);
57 57
     }
58 58
 
59
+    /**
60
+     * @param HTMLPurifier_Config $config
61
+     */
59 62
     protected function setupFilters($config)
60 63
     {
61 64
         foreach ($this->registeredFilters as $name => $filter) {
@@ -71,6 +74,9 @@  discard block
 block discarded – undo
71 74
         unset($this->registeredFilters);
72 75
     }
73 76
 
77
+    /**
78
+     * @param HTMLPurifier_Config $config
79
+     */
74 80
     protected function setupMemberVariables($config)
75 81
     {
76 82
         $this->host = $config->get('URI.Host');
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/library/HTMLPurifier/VarParser.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -144,6 +144,7 @@
 block discarded – undo
144 144
     /**
145 145
      * Throws an exception.
146 146
      * @throws HTMLPurifier_VarParserException
147
+     * @param string $msg
147 148
      */
148 149
     protected function error($msg)
149 150
     {
Please login to merge, or discard this patch.