@@ -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 | { |
@@ -26,7 +26,7 @@ |
||
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 | { |
@@ -56,6 +56,9 @@ discard block |
||
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 |
||
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'); |
@@ -144,6 +144,7 @@ |
||
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 | { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | /** |
31 | 31 | * Creates a zipper from an array, with a hole in the |
32 | 32 | * 0-index position. |
33 | - * @param Array to zipper-ify. |
|
33 | + * @param Array HTMLPurifier_Token[] zipper-ify. |
|
34 | 34 | * @return Tuple of zipper and element of first position. |
35 | 35 | */ |
36 | 36 | static public function fromArray($array) { |
@@ -138,6 +138,7 @@ discard block |
||
138 | 138 | * *unchanged!* |
139 | 139 | * |
140 | 140 | * @param Current contents of hole. |
141 | + * @param HTMLPurifier_Token $t |
|
141 | 142 | * @return array |
142 | 143 | */ |
143 | 144 | public function splice($t, $delete, $replacement) { |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * Get Object |
99 | 99 | * |
100 | 100 | * @param int $id |
101 | - * @return object |
|
101 | + * @return null|XoopsRank |
|
102 | 102 | */ |
103 | 103 | public function get($id = 0) |
104 | 104 | { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * @param string $sourceName template file name |
111 | 111 | * @param string $fileName configuration file name |
112 | 112 | * |
113 | - * @return true|string true on success, error message on failure |
|
113 | + * @return string|boolean true on success, error message on failure |
|
114 | 114 | */ |
115 | 115 | function writeConfigurationFile($vars, $path, $sourceName, $fileName) |
116 | 116 | { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * |
154 | 154 | * @param string $filename file or directory name |
155 | 155 | * |
156 | - * @return array|false false on error, or array of file stat information |
|
156 | + * @return string false on error, or array of file stat information |
|
157 | 157 | */ |
158 | 158 | function getStats($filename) |
159 | 159 | { |
@@ -698,6 +698,9 @@ discard block |
||
698 | 698 | Output: |
699 | 699 | \*======================================================================*/ |
700 | 700 | |
701 | + /** |
|
702 | + * @param string $http_method |
|
703 | + */ |
|
701 | 704 | function _httprequest($url, $fp, $URI, $http_method, $content_type = "", $body = "") |
702 | 705 | { |
703 | 706 | $cookie_headers = ''; |
@@ -873,6 +876,9 @@ discard block |
||
873 | 876 | Output: |
874 | 877 | \*======================================================================*/ |
875 | 878 | |
879 | + /** |
|
880 | + * @param string $http_method |
|
881 | + */ |
|
876 | 882 | function _httpsrequest($url, $URI, $http_method, $content_type = "", $body = "") |
877 | 883 | { |
878 | 884 | if ($this->passcookies && $this->_redirectaddr) |
@@ -1106,6 +1112,10 @@ discard block |
||
1106 | 1112 | Output: post body |
1107 | 1113 | \*======================================================================*/ |
1108 | 1114 | |
1115 | + /** |
|
1116 | + * @param string $formvars |
|
1117 | + * @param string $formfiles |
|
1118 | + */ |
|
1109 | 1119 | function _prepare_post_body($formvars, $formfiles) |
1110 | 1120 | { |
1111 | 1121 | settype($formvars, "array"); |