@@ -395,6 +395,9 @@ discard block |
||
| 395 | 395 | ///////////////////////////////////////////////////////////////// |
| 396 | 396 | |
| 397 | 397 | |
| 398 | +/** |
|
| 399 | + * @param string $string |
|
| 400 | + */ |
|
| 398 | 401 | function RemoveAccents($string) { |
| 399 | 402 | // Revised version by markstewardרotmail*com |
| 400 | 403 | // Again revised by James Heinrich (19-June-2006) |
@@ -597,7 +600,7 @@ discard block |
||
| 597 | 600 | /** |
| 598 | 601 | * @param string $string |
| 599 | 602 | * |
| 600 | - * @return mixed |
|
| 603 | + * @return string |
|
| 601 | 604 | */ |
| 602 | 605 | function PoweredBygetID3($string='') { |
| 603 | 606 | global $getID3; |
@@ -265,7 +265,7 @@ |
||
| 265 | 265 | * @param int $MaxFramesToScan |
| 266 | 266 | * @param bool $ReturnExtendedInfo |
| 267 | 267 | * |
| 268 | - * @return bool |
|
| 268 | + * @return boolean|null |
|
| 269 | 269 | */ |
| 270 | 270 | public function getAACADTSheaderFilepointer($MaxFramesToScan=1000000, $ReturnExtendedInfo=false) { |
| 271 | 271 | $info = &$this->getid3->info; |
@@ -632,7 +632,7 @@ |
||
| 632 | 632 | /** |
| 633 | 633 | * @param array $BMPinfo |
| 634 | 634 | * |
| 635 | - * @return bool |
|
| 635 | + * @return null|boolean |
|
| 636 | 636 | */ |
| 637 | 637 | public function PlotBMP(&$BMPinfo) { |
| 638 | 638 | $starttime = time(); |
@@ -350,7 +350,7 @@ |
||
| 350 | 350 | * @param string $genre |
| 351 | 351 | * @param bool $allowSCMPXextended |
| 352 | 352 | * |
| 353 | - * @return string|false |
|
| 353 | + * @return string |
|
| 354 | 354 | */ |
| 355 | 355 | public static function LookupGenreID($genre, $allowSCMPXextended=false) { |
| 356 | 356 | $GenreLookup = self::ArrayOfGenres($allowSCMPXextended); |
@@ -58,6 +58,9 @@ discard block |
||
| 58 | 58 | )); |
| 59 | 59 | |
| 60 | 60 | |
| 61 | +/** |
|
| 62 | + * @param string $string |
|
| 63 | + */ |
|
| 61 | 64 | function RemoveAccents($string) { |
| 62 | 65 | // Revised version by markstewardØhotmail*com |
| 63 | 66 | return strtr(strtr($string, 'ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy'), array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', '' => 'OE', '' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u')); |
@@ -85,6 +88,9 @@ discard block |
||
| 85 | 88 | return '<span style="color: #'.BitrateColor($bitrate).'">'.number_format($bitrate, $decimals).' kbps</span>'; |
| 86 | 89 | } |
| 87 | 90 | |
| 91 | +/** |
|
| 92 | + * @param string $filename |
|
| 93 | + */ |
|
| 88 | 94 | function fileextension($filename, $numextensions=1) { |
| 89 | 95 | if (strstr($filename, '.')) { |
| 90 | 96 | $reversedfilename = strrev($filename); |
@@ -156,6 +162,9 @@ discard block |
||
| 156 | 162 | return $filename; |
| 157 | 163 | } |
| 158 | 164 | |
| 165 | +/** |
|
| 166 | + * @param string $SQLquery |
|
| 167 | + */ |
|
| 159 | 168 | function mysqli_query_safe($con, $SQLquery) { |
| 160 | 169 | static $TimeSpentQuerying = 0; |
| 161 | 170 | if ($SQLquery === null) { |
@@ -2095,6 +2104,9 @@ discard block |
||
| 2095 | 2104 | return $DirectoryName.'/'.BetterUCwords($BaseFilename).'.'.strtolower($FileExtension); |
| 2096 | 2105 | } |
| 2097 | 2106 | |
| 2107 | +/** |
|
| 2108 | + * @param string $string |
|
| 2109 | + */ |
|
| 2098 | 2110 | function BetterUCwords($string) { |
| 2099 | 2111 | $stringlength = strlen($string); |
| 2100 | 2112 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | class getid3_shorten extends getid3_handler |
| 21 | 21 | { |
| 22 | 22 | /** |
| 23 | - * @return bool |
|
| 23 | + * @return null|boolean |
|
| 24 | 24 | */ |
| 25 | 25 | public function Analyze() { |
| 26 | 26 | $info = &$this->getid3->info; |
@@ -15,6 +15,10 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | |
| 17 | 17 | if (!function_exists('PrintHexBytes')) { |
| 18 | + |
|
| 19 | + /** |
|
| 20 | + * @param string $string |
|
| 21 | + */ |
|
| 18 | 22 | function PrintHexBytes($string) { |
| 19 | 23 | $returnstring = ''; |
| 20 | 24 | for ($i = 0; $i < strlen($string); $i++) { |
@@ -132,6 +136,10 @@ discard block |
||
| 132 | 136 | } |
| 133 | 137 | |
| 134 | 138 | if (!function_exists('fileextension')) { |
| 139 | + |
|
| 140 | + /** |
|
| 141 | + * @param string $filename |
|
| 142 | + */ |
|
| 135 | 143 | function fileextension($filename, $numextensions=1) { |
| 136 | 144 | if (strstr($filename, '.')) { |
| 137 | 145 | $reversedfilename = strrev($filename); |
@@ -149,6 +157,10 @@ discard block |
||
| 149 | 157 | } |
| 150 | 158 | |
| 151 | 159 | if (!function_exists('RemoveAccents')) { |
| 160 | + |
|
| 161 | + /** |
|
| 162 | + * @param string $string |
|
| 163 | + */ |
|
| 152 | 164 | function RemoveAccents($string) { |
| 153 | 165 | // return strtr($string, '¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ', 'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy'); |
| 154 | 166 | // Revised version by [email protected] |
@@ -233,6 +245,10 @@ discard block |
||
| 233 | 245 | } |
| 234 | 246 | |
| 235 | 247 | if (!function_exists('DecimalBinary2Float')) { |
| 248 | + |
|
| 249 | + /** |
|
| 250 | + * @param string $binarynumerator |
|
| 251 | + */ |
|
| 236 | 252 | function DecimalBinary2Float($binarynumerator) { |
| 237 | 253 | $numerator = Bin2Dec($binarynumerator); |
| 238 | 254 | $denominator = Bin2Dec(str_repeat('1', strlen($binarynumerator))); |
@@ -241,6 +257,10 @@ discard block |
||
| 241 | 257 | } |
| 242 | 258 | |
| 243 | 259 | if (!function_exists('NormalizeBinaryPoint')) { |
| 260 | + |
|
| 261 | + /** |
|
| 262 | + * @param string $binarypointnumber |
|
| 263 | + */ |
|
| 244 | 264 | function NormalizeBinaryPoint($binarypointnumber, $maxbits=52) { |
| 245 | 265 | // http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/binary.html |
| 246 | 266 | if (strpos($binarypointnumber, '.') === false) { |
@@ -321,6 +341,10 @@ discard block |
||
| 321 | 341 | } |
| 322 | 342 | |
| 323 | 343 | if (!function_exists('BigEndian2Float')) { |
| 344 | + |
|
| 345 | + /** |
|
| 346 | + * @param string $byteword |
|
| 347 | + */ |
|
| 324 | 348 | function BigEndian2Float($byteword) { |
| 325 | 349 | // ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic |
| 326 | 350 | // http://www.psc.edu/general/software/packages/ieee/ieee.html |
@@ -395,6 +419,10 @@ discard block |
||
| 395 | 419 | } |
| 396 | 420 | |
| 397 | 421 | if (!function_exists('BigEndian2Int')) { |
| 422 | + |
|
| 423 | + /** |
|
| 424 | + * @param string $byteword |
|
| 425 | + */ |
|
| 398 | 426 | function BigEndian2Int($byteword, $synchsafe=false, $signed=false) { |
| 399 | 427 | $intvalue = 0; |
| 400 | 428 | $bytewordlen = strlen($byteword); |
@@ -467,6 +495,10 @@ discard block |
||
| 467 | 495 | } |
| 468 | 496 | |
| 469 | 497 | if (!function_exists('Dec2Bin')) { |
| 498 | + |
|
| 499 | + /** |
|
| 500 | + * @param integer $number |
|
| 501 | + */ |
|
| 470 | 502 | function Dec2Bin($number) { |
| 471 | 503 | while ($number >= 256) { |
| 472 | 504 | $bytes[] = (($number / 256) - (floor($number / 256))) * 256; |
@@ -752,6 +784,10 @@ discard block |
||
| 752 | 784 | } |
| 753 | 785 | |
| 754 | 786 | if (!function_exists('CloseMatch')) { |
| 787 | + |
|
| 788 | + /** |
|
| 789 | + * @param integer $tolerance |
|
| 790 | + */ |
|
| 755 | 791 | function CloseMatch($value1, $value2, $tolerance) { |
| 756 | 792 | return (abs($value1 - $value2) <= $tolerance); |
| 757 | 793 | } |
@@ -2239,6 +2275,9 @@ discard block |
||
| 2239 | 2275 | return true; |
| 2240 | 2276 | } |
| 2241 | 2277 | |
| 2278 | +/** |
|
| 2279 | + * @param boolean $ScanAsCBR |
|
| 2280 | + */ |
|
| 2242 | 2281 | function RecursiveFrameScanning(&$fd, &$ThisFileInfo, &$offset, &$nextframetestoffset, $ScanAsCBR) { |
| 2243 | 2282 | for ($i = 0; $i < MPEG_VALID_CHECK_FRAMES; $i++) { |
| 2244 | 2283 | // check next MPEG_VALID_CHECK_FRAMES frames for validity, to make sure we haven't run across a false synch |
@@ -2766,6 +2805,9 @@ discard block |
||
| 2766 | 2805 | return $MPEGrawHeader; |
| 2767 | 2806 | } |
| 2768 | 2807 | |
| 2808 | +/** |
|
| 2809 | + * @param integer $padding |
|
| 2810 | + */ |
|
| 2769 | 2811 | function MPEGaudioFrameLength(&$bitrate, &$version, &$layer, $padding, &$samplerate) { |
| 2770 | 2812 | static $AudioFrameLengthCache = array(); |
| 2771 | 2813 | |
@@ -100,6 +100,8 @@ |
||
| 100 | 100 | } |
| 101 | 101 | |
| 102 | 102 | /** |
| 103 | + * @param string|false $TORRENT |
|
| 104 | + * @param integer $offset |
|
| 103 | 105 | * @return string|array|int|bool |
| 104 | 106 | */ |
| 105 | 107 | public function NextEntity(&$TORRENT, &$offset) { |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | * |
| 49 | 49 | * @param float $floatnumber |
| 50 | 50 | * |
| 51 | - * @return float|int returns int (if possible, otherwise float) |
|
| 51 | + * @return integer returns int (if possible, otherwise float) |
|
| 52 | 52 | */ |
| 53 | 53 | public static function trunc($floatnumber) { |
| 54 | 54 | if ($floatnumber >= 1) { |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * @param string $binarypointnumber |
| 148 | 148 | * @param int $maxbits |
| 149 | 149 | * |
| 150 | - * @return array |
|
| 150 | + * @return integer |
|
| 151 | 151 | */ |
| 152 | 152 | public static function NormalizeBinaryPoint($binarypointnumber, $maxbits=52) { |
| 153 | 153 | if (strpos($binarypointnumber, '.') === false) { |
@@ -741,7 +741,7 @@ discard block |
||
| 741 | 741 | } |
| 742 | 742 | |
| 743 | 743 | /** |
| 744 | - * @param SimpleXMLElement|array|mixed $XMLobject |
|
| 744 | + * @param SimpleXMLElement $XMLobject |
|
| 745 | 745 | * |
| 746 | 746 | * @return mixed |
| 747 | 747 | */ |
@@ -1482,7 +1482,7 @@ discard block |
||
| 1482 | 1482 | * @param string $imgData |
| 1483 | 1483 | * @param array $imageinfo |
| 1484 | 1484 | * |
| 1485 | - * @return array|false |
|
| 1485 | + * @return string |
|
| 1486 | 1486 | */ |
| 1487 | 1487 | public static function GetDataImageSize($imgData, &$imageinfo=array()) { |
| 1488 | 1488 | if (PHP_VERSION_ID >= 50400) { |
@@ -1741,7 +1741,7 @@ discard block |
||
| 1741 | 1741 | /** |
| 1742 | 1742 | * @param string $path |
| 1743 | 1743 | * |
| 1744 | - * @return float|bool |
|
| 1744 | + * @return integer |
|
| 1745 | 1745 | */ |
| 1746 | 1746 | public static function getFileSizeSyscall($path) { |
| 1747 | 1747 | $commandline = null; |