@@ -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; |
@@ -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; |
@@ -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); |
@@ -192,7 +192,7 @@ |
||
192 | 192 | * Retrieves XMP information from an APP1 JPEG segment and returns the raw XML text as a string. |
193 | 193 | * |
194 | 194 | * @param string $filename - the filename of the JPEG file to read |
195 | - * @return string|boolean $xmp_data - the string of raw XML text, |
|
195 | + * @return string|false $xmp_data - the string of raw XML text, |
|
196 | 196 | * FALSE - if an APP 1 XMP segment could not be found, or if an error occured |
197 | 197 | */ |
198 | 198 | public function _get_XMP_text($filename) |
@@ -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) { |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | } |
733 | 733 | |
734 | 734 | /** |
735 | - * @param SimpleXMLElement|array|mixed $XMLobject |
|
735 | + * @param SimpleXMLElement $XMLobject |
|
736 | 736 | * |
737 | 737 | * @return mixed |
738 | 738 | */ |
@@ -1473,7 +1473,7 @@ discard block |
||
1473 | 1473 | * @param string $imgData |
1474 | 1474 | * @param array $imageinfo |
1475 | 1475 | * |
1476 | - * @return array|false |
|
1476 | + * @return string |
|
1477 | 1477 | */ |
1478 | 1478 | public static function GetDataImageSize($imgData, &$imageinfo=array()) { |
1479 | 1479 | if (PHP_VERSION_ID >= 50400) { |
@@ -1714,7 +1714,7 @@ discard block |
||
1714 | 1714 | /** |
1715 | 1715 | * @param string $path |
1716 | 1716 | * |
1717 | - * @return float|bool |
|
1717 | + * @return integer |
|
1718 | 1718 | */ |
1719 | 1719 | public static function getFileSizeSyscall($path) { |
1720 | 1720 | $filesize = false; |
@@ -109,7 +109,7 @@ |
||
109 | 109 | * @param int $Cb |
110 | 110 | * @param int $Cr |
111 | 111 | * |
112 | - * @return int |
|
112 | + * @return double |
|
113 | 113 | */ |
114 | 114 | public function YCbCr2RGB($Y, $Cb, $Cr) { |
115 | 115 | static $YCbCr_constants = array(); |
@@ -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 |