Completed
Push — master ( 14e79d...7a4940 )
by Richard
08:21
created
htdocs/xoops_lib/modules/protector/library/HTMLPurifier.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
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).
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) {
@@ -496,6 +507,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.