@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | |
167 | 167 | /** |
168 | 168 | * IXR_Message constructor. |
169 | - * @param $message |
|
169 | + * @param string|boolean $message |
|
170 | 170 | */ |
171 | 171 | public function __construct($message) { |
172 | 172 | $this->message = $message; |
@@ -863,7 +863,7 @@ discard block |
||
863 | 863 | |
864 | 864 | /** |
865 | 865 | * IXR_Base64 constructor. |
866 | - * @param $data |
|
866 | + * @param string $data |
|
867 | 867 | */ |
868 | 868 | public function __construct($data) { |
869 | 869 | $this->data = $data; |
@@ -906,10 +906,10 @@ discard block |
||
906 | 906 | } |
907 | 907 | |
908 | 908 | /** |
909 | - * @param $method |
|
910 | - * @param $callback |
|
911 | - * @param $args |
|
912 | - * @param $help |
|
909 | + * @param string $method |
|
910 | + * @param string $callback |
|
911 | + * @param string[] $args |
|
912 | + * @param string $help |
|
913 | 913 | */ |
914 | 914 | public function addCallback($method, $callback, $args, $help) { |
915 | 915 | $this->callbacks[$method] = $callback; |
@@ -352,7 +352,7 @@ discard block |
||
352 | 352 | public $_feed; |
353 | 353 | |
354 | 354 | /** |
355 | - * @param $format |
|
355 | + * @param string $format |
|
356 | 356 | */ |
357 | 357 | public function _setFormat($format) { |
358 | 358 | switch (strtoupper($format)) { |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | /** |
530 | 530 | * Adds an FeedItem to the feed. |
531 | 531 | * |
532 | - * @param $item |
|
532 | + * @param FeedItem $item |
|
533 | 533 | * @internal param FeedItem $object $item The FeedItem to add to the feed. |
534 | 534 | * @access public |
535 | 535 | */ |
@@ -547,6 +547,7 @@ discard block |
||
547 | 547 | * @static |
548 | 548 | * @param string string A string to be truncated. |
549 | 549 | * @param int length the maximum length the string should be truncated to |
550 | + * @param integer $length |
|
550 | 551 | * @return string the truncated string |
551 | 552 | */ |
552 | 553 | public function iTrunc($string, $length) { |
@@ -652,7 +653,7 @@ discard block |
||
652 | 653 | /** |
653 | 654 | * @since 1.4 |
654 | 655 | * @access private |
655 | - * @param $filename |
|
656 | + * @param string $filename |
|
656 | 657 | */ |
657 | 658 | public function _redirect($filename) { |
658 | 659 | // attention, heavily-commented-out-area |
@@ -807,7 +808,7 @@ discard block |
||
807 | 808 | /** |
808 | 809 | * Gets the date stored in this FeedDate as an RFC 822 date. |
809 | 810 | * |
810 | - * @return a date in RFC 822 format |
|
811 | + * @return string date in RFC 822 format |
|
811 | 812 | */ |
812 | 813 | public function rfc822() { |
813 | 814 | //return gmdate("r",$this->unix); |
@@ -822,7 +823,7 @@ discard block |
||
822 | 823 | /** |
823 | 824 | * Gets the date stored in this FeedDate as an ISO 8601 date. |
824 | 825 | * |
825 | - * @return a date in ISO 8601 format |
|
826 | + * @return string date in ISO 8601 format |
|
826 | 827 | */ |
827 | 828 | public function iso8601() { |
828 | 829 | $date = gmdate("Y-m-d\TH:i:sO", $this->unix); |
@@ -949,7 +950,7 @@ discard block |
||
949 | 950 | /** |
950 | 951 | * Sets this RSS feed's version number. |
951 | 952 | * @access private |
952 | - * @param $version |
|
953 | + * @param string $version |
|
953 | 954 | */ |
954 | 955 | public function _setRSSVersion($version) { |
955 | 956 | $this->RSSVersion = $version; |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | |
303 | 303 | // smart append - field and namespace aware |
304 | 304 | /** |
305 | - * @param $el |
|
305 | + * @param string $el |
|
306 | 306 | * @param $text |
307 | 307 | */ |
308 | 308 | public function append($el, $text) { |
@@ -384,7 +384,7 @@ discard block |
||
384 | 384 | } |
385 | 385 | |
386 | 386 | /** |
387 | - * @return bool |
|
387 | + * @return string|false |
|
388 | 388 | */ |
389 | 389 | public function is_rss() { |
390 | 390 | if ($this->feed_type == RSS) { |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | } |
396 | 396 | |
397 | 397 | /** |
398 | - * @return bool |
|
398 | + * @return string|false |
|
399 | 399 | */ |
400 | 400 | public function is_atom() { |
401 | 401 | if ($this->feed_type == ATOM) { |
@@ -407,10 +407,10 @@ discard block |
||
407 | 407 | |
408 | 408 | /** |
409 | 409 | * return XML parser, and possibly re-encoded source |
410 | - * @param $source |
|
411 | - * @param $out_enc |
|
412 | - * @param $in_enc |
|
413 | - * @param $detect |
|
410 | + * @param string $source |
|
411 | + * @param string $out_enc |
|
412 | + * @param string|null $in_enc |
|
413 | + * @param boolean $detect |
|
414 | 414 | * @return array |
415 | 415 | */ |
416 | 416 | public function create_parser($source, $out_enc, $in_enc, $detect) { |
@@ -517,7 +517,7 @@ discard block |
||
517 | 517 | |
518 | 518 | /** |
519 | 519 | * @param $enc |
520 | - * @return bool|string |
|
520 | + * @return string|false |
|
521 | 521 | */ |
522 | 522 | public function known_encoding($enc) { |
523 | 523 | $enc = strtoupper($enc); |
@@ -83,7 +83,7 @@ |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return bool|string |
|
86 | + * @return string|false |
|
87 | 87 | */ |
88 | 88 | public function is_atom() { |
89 | 89 | if ($this->feed_type == ATOM) { |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | * @var mixed $pattern |
109 | 109 | * @var mixed $replacement |
110 | 110 | * |
111 | - * @return bool true on success |
|
111 | + * @return null|boolean true on success |
|
112 | 112 | */ |
113 | 113 | function planet_parse_class($class_string, $pattern = '', $replacement = '') { |
114 | 114 | if (empty($class_string)) { |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | * @var mixed $pattern |
144 | 144 | * @var mixed $replacement |
145 | 145 | * |
146 | - * @return bool true on success |
|
146 | + * @return null|boolean true on success |
|
147 | 147 | */ |
148 | 148 | function planet_parse_function($function_string, $pattern = '', $replacement = '') { |
149 | 149 | if (empty($function_string)) { |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | |
495 | 495 | /** |
496 | 496 | * @param $url |
497 | - * @return bool|string |
|
497 | + * @return false|string |
|
498 | 498 | */ |
499 | 499 | function planet_fetch_fopen($url) { |
500 | 500 | if (!$fp = @fopen($url, 'r')) { |
@@ -293,7 +293,7 @@ |
||
293 | 293 | // Used in get_calendar |
294 | 294 | /** |
295 | 295 | * @param $num |
296 | - * @return mixed |
|
296 | + * @return double |
|
297 | 297 | */ |
298 | 298 | function planet_calendar_week_mod($num) { |
299 | 299 | $base = 7; |