@@ -210,6 +210,9 @@ |
||
| 210 | 210 | } |
| 211 | 211 | } |
| 212 | 212 | |
| 213 | + /** |
|
| 214 | + * @param string $name |
|
| 215 | + */ |
|
| 213 | 216 | protected function search_elements_by_tag($name, &$done, $feeds) |
| 214 | 217 | { |
| 215 | 218 | if ($this->dom === null) |
@@ -49,6 +49,9 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | class SimplePie_Misc |
| 51 | 51 | { |
| 52 | + /** |
|
| 53 | + * @param integer $seconds |
|
| 54 | + */ |
|
| 52 | 55 | public static function time_hms($seconds) |
| 53 | 56 | { |
| 54 | 57 | $time = ''; |
@@ -329,6 +332,11 @@ discard block |
||
| 329 | 332 | } |
| 330 | 333 | } |
| 331 | 334 | |
| 335 | + /** |
|
| 336 | + * @param string $data |
|
| 337 | + * @param string $input |
|
| 338 | + * @param string $output |
|
| 339 | + */ |
|
| 332 | 340 | protected static function change_encoding_mbstring($data, $input, $output) |
| 333 | 341 | { |
| 334 | 342 | if ($input === 'windows-949') |
@@ -367,6 +375,11 @@ discard block |
||
| 367 | 375 | return false; |
| 368 | 376 | } |
| 369 | 377 | |
| 378 | + /** |
|
| 379 | + * @param string $data |
|
| 380 | + * @param string $input |
|
| 381 | + * @param string $output |
|
| 382 | + */ |
|
| 370 | 383 | protected static function change_encoding_iconv($data, $input, $output) |
| 371 | 384 | { |
| 372 | 385 | return @iconv($input, $output, $data); |
@@ -1696,6 +1709,9 @@ discard block |
||
| 1696 | 1709 | } |
| 1697 | 1710 | } |
| 1698 | 1711 | |
| 1712 | + /** |
|
| 1713 | + * @return string |
|
| 1714 | + */ |
|
| 1699 | 1715 | public static function get_curl_version() |
| 1700 | 1716 | { |
| 1701 | 1717 | if (is_array($curl = curl_version())) |
@@ -1763,7 +1779,6 @@ discard block |
||
| 1763 | 1779 | /** |
| 1764 | 1780 | * Remove RFC822 comments |
| 1765 | 1781 | * |
| 1766 | - * @param string $data Data to strip comments from |
|
| 1767 | 1782 | * @return string Comment stripped string |
| 1768 | 1783 | */ |
| 1769 | 1784 | public static function uncomment_rfc822($string) |
@@ -2019,7 +2034,7 @@ discard block |
||
| 2019 | 2034 | * @todo Add support for EBCDIC |
| 2020 | 2035 | * @param string $data XML data |
| 2021 | 2036 | * @param SimplePie_Registry $registry Class registry |
| 2022 | - * @return array Possible encodings |
|
| 2037 | + * @return string[] Possible encodings |
|
| 2023 | 2038 | */ |
| 2024 | 2039 | public static function xml_encoding($data, $registry) |
| 2025 | 2040 | { |
@@ -190,7 +190,7 @@ |
||
| 190 | 190 | * 0:0:0:0:0:FFFF:129.144.52.38 |
| 191 | 191 | * |
| 192 | 192 | * @param string $ip An IPv6 address |
| 193 | - * @return array [0] contains the IPv6 represented part, and [1] the IPv4 represented part |
|
| 193 | + * @return string[] [0] contains the IPv6 represented part, and [1] the IPv4 represented part |
|
| 194 | 194 | */ |
| 195 | 195 | private static function split_v6_v4($ip) |
| 196 | 196 | { |
@@ -704,7 +704,6 @@ |
||
| 704 | 704 | * Remove RFC822 comments |
| 705 | 705 | * |
| 706 | 706 | * @access protected |
| 707 | - * @param string $data Data to strip comments from |
|
| 708 | 707 | * @return string Comment stripped string |
| 709 | 708 | */ |
| 710 | 709 | public function remove_rfc2822_comments($string) |
@@ -265,6 +265,9 @@ discard block |
||
| 265 | 265 | return $this->data; |
| 266 | 266 | } |
| 267 | 267 | |
| 268 | + /** |
|
| 269 | + * @param string $tag |
|
| 270 | + */ |
|
| 268 | 271 | public function tag_open($parser, $tag, $attributes) |
| 269 | 272 | { |
| 270 | 273 | list($this->namespace[], $this->element[]) = $this->split_ns($tag); |
@@ -332,6 +335,9 @@ discard block |
||
| 332 | 335 | } |
| 333 | 336 | } |
| 334 | 337 | |
| 338 | + /** |
|
| 339 | + * @param string $cdata |
|
| 340 | + */ |
|
| 335 | 341 | public function cdata($parser, $cdata) |
| 336 | 342 | { |
| 337 | 343 | if ($this->current_xhtml_construct >= 0) |
@@ -344,6 +350,9 @@ discard block |
||
| 344 | 350 | } |
| 345 | 351 | } |
| 346 | 352 | |
| 353 | + /** |
|
| 354 | + * @param string $tag |
|
| 355 | + */ |
|
| 347 | 356 | public function tag_close($parser, $tag) |
| 348 | 357 | { |
| 349 | 358 | if ($this->current_xhtml_construct >= 0) |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * @since 1.5.0 |
| 18 | 18 | * |
| 19 | 19 | * @param string $type Filename without extension. |
| 20 | - * @param array $templates An optional list of template candidates |
|
| 20 | + * @param string[] $templates An optional list of template candidates |
|
| 21 | 21 | * @return string Full path to template file. |
| 22 | 22 | */ |
| 23 | 23 | function get_query_template( $type, $templates = array() ) { |
@@ -145,6 +145,7 @@ discard block |
||
| 145 | 145 | * the two files do not match, and likewise that the last lines do not |
| 146 | 146 | * match. The caller must trim matching lines from the beginning and end |
| 147 | 147 | * of the portions it is going to specify. |
| 148 | + * @param double $nchunks |
|
| 148 | 149 | */ |
| 149 | 150 | function _diag ($xoff, $xlim, $yoff, $ylim, $nchunks) |
| 150 | 151 | { |
@@ -265,6 +266,10 @@ discard block |
||
| 265 | 266 | * |
| 266 | 267 | * Note that XLIM, YLIM are exclusive bounds. All line numbers are |
| 267 | 268 | * origin-0 and discarded lines are not counted. |
| 269 | + * @param integer $xoff |
|
| 270 | + * @param integer $xlim |
|
| 271 | + * @param integer $yoff |
|
| 272 | + * @param integer $ylim |
|
| 268 | 273 | */ |
| 269 | 274 | function _compareseq ($xoff, $xlim, $yoff, $ylim) |
| 270 | 275 | { |
@@ -148,6 +148,12 @@ discard block |
||
| 148 | 148 | return $output . $this->_endDiff(); |
| 149 | 149 | } |
| 150 | 150 | |
| 151 | + /** |
|
| 152 | + * @param integer $xbeg |
|
| 153 | + * @param integer $xlen |
|
| 154 | + * @param integer $ybeg |
|
| 155 | + * @param integer $ylen |
|
| 156 | + */ |
|
| 151 | 157 | function _block($xbeg, $xlen, $ybeg, $ylen, &$edits) |
| 152 | 158 | { |
| 153 | 159 | $output = $this->_startBlock($this->_blockHeader($xbeg, $xlen, $ybeg, $ylen)); |
@@ -204,6 +210,9 @@ discard block |
||
| 204 | 210 | return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg; |
| 205 | 211 | } |
| 206 | 212 | |
| 213 | + /** |
|
| 214 | + * @param string $header |
|
| 215 | + */ |
|
| 207 | 216 | function _startBlock($header) |
| 208 | 217 | { |
| 209 | 218 | return $header . "\n"; |
@@ -100,6 +100,9 @@ discard block |
||
| 100 | 100 | return $header; |
| 101 | 101 | } |
| 102 | 102 | |
| 103 | + /** |
|
| 104 | + * @param string[] $lines |
|
| 105 | + */ |
|
| 103 | 106 | function _lines($lines, $prefix = ' ', $encode = true) |
| 104 | 107 | { |
| 105 | 108 | if ($encode) { |
@@ -178,6 +181,9 @@ discard block |
||
| 178 | 181 | return str_replace($nl, "\n", $renderer->render($diff)) . "\n"; |
| 179 | 182 | } |
| 180 | 183 | |
| 184 | + /** |
|
| 185 | + * @param string $string |
|
| 186 | + */ |
|
| 181 | 187 | function _splitOnWords($string, $newlineEscape = "\n") |
| 182 | 188 | { |
| 183 | 189 | // Ignore \0; otherwise the while loop will never finish. |