@@ -2596,6 +2596,9 @@ discard block |
||
2596 | 2596 | |
2597 | 2597 | |
2598 | 2598 | |
2599 | + /** |
|
2600 | + * @param string $languagecode |
|
2601 | + */ |
|
2599 | 2602 | public static function LanguageLookup($languagecode, $casesensitive=false) { |
2600 | 2603 | |
2601 | 2604 | if (!$casesensitive) { |
@@ -3052,6 +3055,9 @@ discard block |
||
3052 | 3055 | } |
3053 | 3056 | |
3054 | 3057 | |
3058 | + /** |
|
3059 | + * @param string $index |
|
3060 | + */ |
|
3055 | 3061 | public static function ETCOEventLookup($index) { |
3056 | 3062 | if (($index >= 0x17) && ($index <= 0xDF)) { |
3057 | 3063 | return 'reserved for future use'; |
@@ -3095,6 +3101,9 @@ discard block |
||
3095 | 3101 | return (isset($EventLookup[$index]) ? $EventLookup[$index] : ''); |
3096 | 3102 | } |
3097 | 3103 | |
3104 | + /** |
|
3105 | + * @param integer $index |
|
3106 | + */ |
|
3098 | 3107 | public static function SYTLContentTypeLookup($index) { |
3099 | 3108 | static $SYTLContentTypeLookup = array( |
3100 | 3109 | 0x00 => 'other', |
@@ -3111,6 +3120,9 @@ discard block |
||
3111 | 3120 | return (isset($SYTLContentTypeLookup[$index]) ? $SYTLContentTypeLookup[$index] : ''); |
3112 | 3121 | } |
3113 | 3122 | |
3123 | + /** |
|
3124 | + * @param integer $index |
|
3125 | + */ |
|
3114 | 3126 | public static function APICPictureTypeLookup($index, $returnarray=false) { |
3115 | 3127 | static $APICPictureTypeLookup = array( |
3116 | 3128 | 0x00 => 'Other', |
@@ -3141,6 +3153,9 @@ discard block |
||
3141 | 3153 | return (isset($APICPictureTypeLookup[$index]) ? $APICPictureTypeLookup[$index] : ''); |
3142 | 3154 | } |
3143 | 3155 | |
3156 | + /** |
|
3157 | + * @param integer $index |
|
3158 | + */ |
|
3144 | 3159 | public static function COMRReceivedAsLookup($index) { |
3145 | 3160 | static $COMRReceivedAsLookup = array( |
3146 | 3161 | 0x00 => 'Other', |
@@ -3157,6 +3172,9 @@ discard block |
||
3157 | 3172 | return (isset($COMRReceivedAsLookup[$index]) ? $COMRReceivedAsLookup[$index] : ''); |
3158 | 3173 | } |
3159 | 3174 | |
3175 | + /** |
|
3176 | + * @param integer $index |
|
3177 | + */ |
|
3160 | 3178 | public static function RVA2ChannelTypeLookup($index) { |
3161 | 3179 | static $RVA2ChannelTypeLookup = array( |
3162 | 3180 | 0x00 => 'Other', |
@@ -3536,6 +3554,9 @@ discard block |
||
3536 | 3554 | return getid3_lib::EmbeddedLookup($framename, $begin, __LINE__, __FILE__, 'id3v2-framename_short'); |
3537 | 3555 | } |
3538 | 3556 | |
3557 | + /** |
|
3558 | + * @param integer $encoding |
|
3559 | + */ |
|
3539 | 3560 | public static function TextEncodingTerminatorLookup($encoding) { |
3540 | 3561 | // http://www.id3.org/id3v2.4.0-structure.txt |
3541 | 3562 | // Frames that allow different types of text encoding contains a text encoding description byte. Possible encodings: |
@@ -3562,6 +3583,9 @@ discard block |
||
3562 | 3583 | return (isset($TextEncodingNameLookup[$encoding]) ? $TextEncodingNameLookup[$encoding] : 'ISO-8859-1'); |
3563 | 3584 | } |
3564 | 3585 | |
3586 | + /** |
|
3587 | + * @param string $framename |
|
3588 | + */ |
|
3565 | 3589 | public static function IsValidID3v2FrameName($framename, $id3v2majorversion) { |
3566 | 3590 | switch ($id3v2majorversion) { |
3567 | 3591 | case 2: |
@@ -3591,6 +3615,9 @@ discard block |
||
3591 | 3615 | return true; |
3592 | 3616 | } |
3593 | 3617 | |
3618 | + /** |
|
3619 | + * @param string $datestamp |
|
3620 | + */ |
|
3594 | 3621 | public static function IsValidDateStampString($datestamp) { |
3595 | 3622 | if (strlen($datestamp) != 8) { |
3596 | 3623 | return false; |
@@ -126,6 +126,9 @@ discard block |
||
126 | 126 | return true; |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param integer $version |
|
131 | + */ |
|
129 | 132 | public function getLyrics3Data($endoffset, $version, $length) { |
130 | 133 | // http://www.volweb.cz/str/tags.htm |
131 | 134 | |
@@ -287,6 +290,9 @@ discard block |
||
287 | 290 | return true; |
288 | 291 | } |
289 | 292 | |
293 | + /** |
|
294 | + * @param string $char |
|
295 | + */ |
|
290 | 296 | public function IntString2Bool($char) { |
291 | 297 | if ($char == '1') { |
292 | 298 | return true; |
@@ -218,7 +218,7 @@ |
||
218 | 218 | * @global float $timestart Seconds from when timer_start() is called. |
219 | 219 | * @global float $timeend Seconds from when function is called. |
220 | 220 | * |
221 | - * @param int|bool $display Whether to echo or return the results. Accepts 0|false for return, |
|
221 | + * @param integer $display Whether to echo or return the results. Accepts 0|false for return, |
|
222 | 222 | * 1|true for echo. Default 0|false. |
223 | 223 | * @param int $precision The number of digits from the right of the decimal to display. |
224 | 224 | * Default 3. |
@@ -68,7 +68,7 @@ |
||
68 | 68 | |
69 | 69 | /** |
70 | 70 | * @param resource $fh |
71 | - * @return true |
|
71 | + * @return boolean |
|
72 | 72 | */ |
73 | 73 | function export_to_file_handle($fh) { |
74 | 74 | $entries = array_filter( $this->entries, array( $this, 'is_entry_good_for_export' ) ); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | /** |
33 | 33 | * Sets the endianness of the file. |
34 | 34 | * |
35 | - * @param $endian string 'big' or 'little' |
|
35 | + * @param string $endian string 'big' or 'little' |
|
36 | 36 | */ |
37 | 37 | function setEndian($endian) { |
38 | 38 | $this->endian = $endian; |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * Reads a 32bit Integer from the Stream |
43 | 43 | * |
44 | - * @return mixed The integer, corresponding to the next 32 bits from |
|
44 | + * @return integer The integer, corresponding to the next 32 bits from |
|
45 | 45 | * the stream of false if there are not enough bytes or on error |
46 | 46 | */ |
47 | 47 | function readint32() { |
@@ -119,14 +119,14 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
122 | - * @return true |
|
122 | + * @return boolean |
|
123 | 123 | */ |
124 | 124 | function is_resource() { |
125 | 125 | return true; |
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | - * @return true |
|
129 | + * @return boolean |
|
130 | 130 | */ |
131 | 131 | function close() { |
132 | 132 | return true; |
@@ -135,7 +135,7 @@ |
||
135 | 135 | * @since 3.1.0 |
136 | 136 | * |
137 | 137 | * @param string $format The post format slug. |
138 | - * @return string|WP_Error|false The post format term link. |
|
138 | + * @return string The post format term link. |
|
139 | 139 | */ |
140 | 140 | function get_post_format_link( $format ) { |
141 | 141 | $term = get_term_by('slug', 'post-format-' . $format, 'post_format' ); |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | * Consume the next byte |
110 | 110 | * |
111 | 111 | * @access private |
112 | - * @return mixed The next byte, or false, if there is no more data |
|
112 | + * @return string|false The next byte, or false, if there is no more data |
|
113 | 113 | */ |
114 | 114 | public function consume() |
115 | 115 | { |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | * |
130 | 130 | * @access private |
131 | 131 | * @param string $chars Characters to consume |
132 | - * @return mixed A series of characters that match the range, or false |
|
132 | + * @return string|false A series of characters that match the range, or false |
|
133 | 133 | */ |
134 | 134 | public function consume_range($chars) |
135 | 135 | { |
@@ -647,7 +647,7 @@ |
||
647 | 647 | /** |
648 | 648 | * Get length |
649 | 649 | * |
650 | - * @return float Length in bytes |
|
650 | + * @return string|null Length in bytes |
|
651 | 651 | */ |
652 | 652 | public function get_length() |
653 | 653 | { |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | * |
265 | 265 | * Returns false if $base is not absolute, otherwise an IRI. |
266 | 266 | * |
267 | - * @param IRI|string $base (Absolute) Base IRI |
|
267 | + * @param SimplePie_IRI $base (Absolute) Base IRI |
|
268 | 268 | * @param IRI|string $relative Relative IRI |
269 | 269 | * @return IRI|false |
270 | 270 | */ |
@@ -1119,6 +1119,7 @@ discard block |
||
1119 | 1119 | /** |
1120 | 1120 | * Convert an IRI to a URI (or parts thereof) |
1121 | 1121 | * |
1122 | + * @param false|string $string |
|
1122 | 1123 | * @return string |
1123 | 1124 | */ |
1124 | 1125 | public function to_uri($string) |