Completed
Push — vendor/getid3 ( 69b815...49c253 )
by Pauli
04:26 queued 01:37
created
3rdparty/getID3/demos/demo.mysql.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@  discard block
 block discarded – undo
54 54
 ));
55 55
 
56 56
 
57
+/**
58
+ * @param string $string
59
+ */
57 60
 function RemoveAccents($string) {
58 61
 	// Revised version by markstewardØhotmail*com
59 62
 	return strtr(strtr($string, 'ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ', 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy'), array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', 'œ' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', 'µ' => 'u'));
@@ -81,6 +84,9 @@  discard block
 block discarded – undo
81 84
 	return '<span style="color: #'.BitrateColor($bitrate).'">'.number_format($bitrate, $decimals).' kbps</span>';
82 85
 }
83 86
 
87
+/**
88
+ * @param string $filename
89
+ */
84 90
 function fileextension($filename, $numextensions=1) {
85 91
 	if (strstr($filename, '.')) {
86 92
 		$reversedfilename = strrev($filename);
@@ -152,6 +158,9 @@  discard block
 block discarded – undo
152 158
 	return $filename;
153 159
 }
154 160
 
161
+/**
162
+ * @param string $SQLquery
163
+ */
155 164
 function mysql_query_safe($SQLquery) {
156 165
 	static $TimeSpentQuerying = 0;
157 166
 	if ($SQLquery === null) {
@@ -2095,6 +2104,9 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
3rdparty/getID3/demos/demo.browse.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -395,6 +395,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
3rdparty/getID3/demos/demo.mp3header.php 1 patch
Doc Comments   +42 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
3rdparty/getID3/getid3/module.archive.zip.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
3rdparty/getID3/getid3/module.audio.aac.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -265,7 +265,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
3rdparty/getID3/getid3/module.graphic.bmp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -632,7 +632,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
3rdparty/getID3/getid3/module.tag.id3v1.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -350,7 +350,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
3rdparty/getID3/getid3/module.tag.xmp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
3rdparty/getID3/getid3/getid3.lib.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.