| @@ -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; | 
| @@ -12,6 +12,10 @@ discard block | ||
| 12 | 12 | ///////////////////////////////////////////////////////////////// | 
| 13 | 13 | |
| 14 | 14 |  if (!function_exists('PrintHexBytes')) { | 
| 15 | + | |
| 16 | + /** | |
| 17 | + * @param string $string | |
| 18 | + */ | |
| 15 | 19 |  	function PrintHexBytes($string) { | 
| 16 | 20 | $returnstring = ''; | 
| 17 | 21 |  		for ($i = 0; $i < strlen($string); $i++) { | 
| @@ -129,6 +133,10 @@ discard block | ||
| 129 | 133 | } | 
| 130 | 134 | |
| 131 | 135 |  if (!function_exists('fileextension')) { | 
| 136 | + | |
| 137 | + /** | |
| 138 | + * @param string $filename | |
| 139 | + */ | |
| 132 | 140 |  	function fileextension($filename, $numextensions=1) { | 
| 133 | 141 |  		if (strstr($filename, '.')) { | 
| 134 | 142 | $reversedfilename = strrev($filename); | 
| @@ -146,6 +154,10 @@ discard block | ||
| 146 | 154 | } | 
| 147 | 155 | |
| 148 | 156 |  if (!function_exists('RemoveAccents')) { | 
| 157 | + | |
| 158 | + /** | |
| 159 | + * @param string $string | |
| 160 | + */ | |
| 149 | 161 |  	function RemoveAccents($string) { | 
| 150 | 162 | // return strtr($string, '¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ', 'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy'); | 
| 151 | 163 | // Revised version by [email protected] | 
| @@ -230,6 +242,10 @@ discard block | ||
| 230 | 242 | } | 
| 231 | 243 | |
| 232 | 244 |  if (!function_exists('DecimalBinary2Float')) { | 
| 245 | + | |
| 246 | + /** | |
| 247 | + * @param string $binarynumerator | |
| 248 | + */ | |
| 233 | 249 |  	function DecimalBinary2Float($binarynumerator) { | 
| 234 | 250 | $numerator = Bin2Dec($binarynumerator); | 
| 235 | 251 |  		$denominator = Bin2Dec(str_repeat('1', strlen($binarynumerator))); | 
| @@ -238,6 +254,10 @@ discard block | ||
| 238 | 254 | } | 
| 239 | 255 | |
| 240 | 256 |  if (!function_exists('NormalizeBinaryPoint')) { | 
| 257 | + | |
| 258 | + /** | |
| 259 | + * @param string $binarypointnumber | |
| 260 | + */ | |
| 241 | 261 |  	function NormalizeBinaryPoint($binarypointnumber, $maxbits=52) { | 
| 242 | 262 | // http://www.scri.fsu.edu/~jac/MAD3401/Backgrnd/binary.html | 
| 243 | 263 |  		if (strpos($binarypointnumber, '.') === false) { | 
| @@ -318,6 +338,10 @@ discard block | ||
| 318 | 338 | } | 
| 319 | 339 | |
| 320 | 340 |  if (!function_exists('BigEndian2Float')) { | 
| 341 | + | |
| 342 | + /** | |
| 343 | + * @param string $byteword | |
| 344 | + */ | |
| 321 | 345 |  	function BigEndian2Float($byteword) { | 
| 322 | 346 | // ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic | 
| 323 | 347 | // http://www.psc.edu/general/software/packages/ieee/ieee.html | 
| @@ -392,6 +416,10 @@ discard block | ||
| 392 | 416 | } | 
| 393 | 417 | |
| 394 | 418 |  if (!function_exists('BigEndian2Int')) { | 
| 419 | + | |
| 420 | + /** | |
| 421 | + * @param string $byteword | |
| 422 | + */ | |
| 395 | 423 |  	function BigEndian2Int($byteword, $synchsafe=false, $signed=false) { | 
| 396 | 424 | $intvalue = 0; | 
| 397 | 425 | $bytewordlen = strlen($byteword); | 
| @@ -464,6 +492,10 @@ discard block | ||
| 464 | 492 | } | 
| 465 | 493 | |
| 466 | 494 |  if (!function_exists('Dec2Bin')) { | 
| 495 | + | |
| 496 | + /** | |
| 497 | + * @param integer $number | |
| 498 | + */ | |
| 467 | 499 |  	function Dec2Bin($number) { | 
| 468 | 500 |  		while ($number >= 256) { | 
| 469 | 501 | $bytes[] = (($number / 256) - (floor($number / 256))) * 256; | 
| @@ -749,6 +781,10 @@ discard block | ||
| 749 | 781 | } | 
| 750 | 782 | |
| 751 | 783 |  if (!function_exists('CloseMatch')) { | 
| 784 | + | |
| 785 | + /** | |
| 786 | + * @param integer $tolerance | |
| 787 | + */ | |
| 752 | 788 |  	function CloseMatch($value1, $value2, $tolerance) { | 
| 753 | 789 | return (abs($value1 - $value2) <= $tolerance); | 
| 754 | 790 | } | 
| @@ -2253,6 +2289,9 @@ discard block | ||
| 2253 | 2289 | return true; | 
| 2254 | 2290 | } | 
| 2255 | 2291 | |
| 2292 | +/** | |
| 2293 | + * @param boolean $ScanAsCBR | |
| 2294 | + */ | |
| 2256 | 2295 |  function RecursiveFrameScanning(&$fd, &$ThisFileInfo, &$offset, &$nextframetestoffset, $ScanAsCBR) { | 
| 2257 | 2296 |  	for ($i = 0; $i < MPEG_VALID_CHECK_FRAMES; $i++) { | 
| 2258 | 2297 | // check next MPEG_VALID_CHECK_FRAMES frames for validity, to make sure we haven't run across a false synch | 
| @@ -2780,6 +2819,9 @@ discard block | ||
| 2780 | 2819 | return $MPEGrawHeader; | 
| 2781 | 2820 | } | 
| 2782 | 2821 | |
| 2822 | +/** | |
| 2823 | + * @param integer $padding | |
| 2824 | + */ | |
| 2783 | 2825 |  function MPEGaudioFrameLength(&$bitrate, &$version, &$layer, $padding, &$samplerate) { | 
| 2784 | 2826 | static $AudioFrameLengthCache = array(); | 
| 2785 | 2827 | |
| @@ -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) { | 
| @@ -735,7 +735,7 @@ discard block | ||
| 735 | 735 | } | 
| 736 | 736 | |
| 737 | 737 | /** | 
| 738 | - * @param SimpleXMLElement|array $XMLobject | |
| 738 | + * @param SimpleXMLElement $XMLobject | |
| 739 | 739 | * | 
| 740 | 740 | * @return array | 
| 741 | 741 | */ | 
| @@ -1533,7 +1533,7 @@ discard block | ||
| 1533 | 1533 | * @param string $imgData | 
| 1534 | 1534 | * @param array $imageinfo | 
| 1535 | 1535 | * | 
| 1536 | - * @return array|false | |
| 1536 | + * @return string | |
| 1537 | 1537 | */ | 
| 1538 | 1538 |  	public static function GetDataImageSize($imgData, &$imageinfo=array()) { | 
| 1539 | 1539 | static $tempdir = ''; | 
| @@ -1766,7 +1766,7 @@ discard block | ||
| 1766 | 1766 | /** | 
| 1767 | 1767 | * @param string $path | 
| 1768 | 1768 | * | 
| 1769 | - * @return float|bool | |
| 1769 | + * @return integer | |
| 1770 | 1770 | */ | 
| 1771 | 1771 |  	public static function getFileSizeSyscall($path) { | 
| 1772 | 1772 | $filesize = false; | 
| @@ -205,7 +205,7 @@ | ||
| 205 | 205 | } | 
| 206 | 206 | |
| 207 | 207 | /** | 
| 208 | - * @return array|false | |
| 208 | + * @return string | |
| 209 | 209 | */ | 
| 210 | 210 |  	public function ZIPparseLocalFileHeader() { | 
| 211 | 211 | $LocalFileHeader['offset'] = $this->ftell(); | 
| @@ -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; | 
| @@ -485,7 +485,7 @@ | ||
| 485 | 485 | /** | 
| 486 | 486 | * @param int $length | 
| 487 | 487 | * | 
| 488 | - * @return float|int | |
| 488 | + * @return string | |
| 489 | 489 | */ | 
| 490 | 490 |  	private function readHeaderBSI($length) { | 
| 491 | 491 | $data = substr($this->AC3header['bsi'], $this->BSIoffset, $length); | 
| @@ -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(); | 
| @@ -20,7 +20,7 @@ discard block | ||
| 20 | 20 | public $ExtractData = 0; | 
| 21 | 21 | |
| 22 | 22 | /** | 
| 23 | - * @return bool | |
| 23 | + * @return boolean|null | |
| 24 | 24 | */ | 
| 25 | 25 |  	public function Analyze() { | 
| 26 | 26 | $info = &$this->getid3->info; | 
| @@ -107,7 +107,7 @@ discard block | ||
| 107 | 107 | * @param int $Cb | 
| 108 | 108 | * @param int $Cr | 
| 109 | 109 | * | 
| 110 | - * @return int | |
| 110 | + * @return double | |
| 111 | 111 | */ | 
| 112 | 112 |  	public function YCbCr2RGB($Y, $Cb, $Cr) { | 
| 113 | 113 | static $YCbCr_constants = array(); | 
| @@ -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); |