Completed
Pull Request — master (#2)
by Stephen
13:19
created
src/wp-includes/ID3/module.audio-video.asf.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -1684,6 +1684,10 @@
 block discarded – undo
1684 1684
 		return (isset($lookup[$WMpictureType]) ? $lookup[$WMpictureType] : '');
1685 1685
 	}
1686 1686
 
1687
+	/**
1688
+	 * @param string $asf_header_extension_object_data
1689
+	 * @param integer $unhandled_sections
1690
+	 */
1687 1691
 	public function HeaderExtensionObjectDataParse(&$asf_header_extension_object_data, &$unhandled_sections) {
1688 1692
 		// http://msdn.microsoft.com/en-us/library/bb643323.aspx
1689 1693
 
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio-video.flv.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -390,6 +390,9 @@  discard block
 block discarded – undo
390 390
 	public $bytes;
391 391
 	public $pos;
392 392
 
393
+	/**
394
+	 * @param string $bytes
395
+	 */
393 396
 	public function __construct(&$bytes) {
394 397
 		$this->bytes =& $bytes;
395 398
 		$this->pos = 0;
@@ -473,6 +476,9 @@  discard block
 block discarded – undo
473 476
 class AMFReader {
474 477
 	public $stream;
475 478
 
479
+	/**
480
+	 * @param AMFStream $stream
481
+	 */
476 482
 	public function __construct(&$stream) {
477 483
 		$this->stream =& $stream;
478 484
 	}
@@ -635,6 +641,9 @@  discard block
 block discarded – undo
635 641
 	public $width;
636 642
 	public $height;
637 643
 
644
+	/**
645
+	 * @param string $sps
646
+	 */
638 647
 	public function __construct($sps) {
639 648
 		$this->sps = $sps;
640 649
 	}
@@ -691,6 +700,9 @@  discard block
 block discarded – undo
691 700
 		}
692 701
 	}
693 702
 
703
+	/**
704
+	 * @param integer $bits
705
+	 */
694 706
 	public function skipBits($bits) {
695 707
 		$newBits = $this->currentBits + $bits;
696 708
 		$this->currentBytes += (int)floor($newBits / 8);
@@ -703,6 +715,9 @@  discard block
 block discarded – undo
703 715
 		return $result;
704 716
 	}
705 717
 
718
+	/**
719
+	 * @param integer $bits
720
+	 */
706 721
 	public function getBits($bits) {
707 722
 		$result = 0;
708 723
 		for ($i = 0; $i < $bits; $i++) {
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio-video.matroska.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -1289,6 +1289,10 @@  discard block
 block discarded – undo
1289 1289
 		return true;
1290 1290
 	}
1291 1291
 
1292
+	/**
1293
+	 * @param string $type
1294
+	 * @param integer $line
1295
+	 */
1292 1296
 	private function unhandledElement($type, $line, $element) {
1293 1297
 		// warn only about unknown and missed elements, not about unuseful
1294 1298
 		if (!in_array($element['id'], $this->unuseful_elements)) {
@@ -1345,6 +1349,9 @@  discard block
 block discarded – undo
1345 1349
 		return $simpletag_entry;
1346 1350
 	}
1347 1351
 
1352
+	/**
1353
+	 * @param integer $block_type
1354
+	 */
1348 1355
 	private function HandleEMBLClusterBlock($element, $block_type, &$info) {
1349 1356
 		// http://www.matroska.org/technical/specs/index.html#block_structure
1350 1357
 		// http://www.matroska.org/technical/specs/index.html#simpleblock_structure
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio-video.quicktime.php 1 patch
Doc Comments   +16 added lines patch added patch discarded remove patch
@@ -118,6 +118,10 @@  discard block
 block discarded – undo
118 118
 		return true;
119 119
 	}
120 120
 
121
+	/**
122
+	 * @param string $atomname
123
+	 * @param string $atom_data
124
+	 */
121 125
 	public function QuicktimeParseAtom($atomname, $atomsize, $atom_data, $baseoffset, &$atomHierarchy, $ParseAllPossibleAtoms) {
122 126
 		// http://developer.apple.com/techpubs/quicktime/qtdevdocs/APIREF/INDEX/atomalphaindex.htm
123 127
 
@@ -1424,6 +1428,9 @@  discard block
 block discarded – undo
1424 1428
 		return $atom_structure;
1425 1429
 	}
1426 1430
 
1431
+	/**
1432
+	 * @param integer $baseoffset
1433
+	 */
1427 1434
 	public function QuicktimeParseContainerAtom($atom_data, $baseoffset, &$atomHierarchy, $ParseAllPossibleAtoms) {
1428 1435
 //echo 'QuicktimeParseContainerAtom('.substr($atom_data, 4, 4).') @ '.$baseoffset.'<br><br>';
1429 1436
 		$atom_structure  = false;
@@ -1452,6 +1459,9 @@  discard block
 block discarded – undo
1452 1459
 	}
1453 1460
 
1454 1461
 
1462
+	/**
1463
+	 * @param integer $offset
1464
+	 */
1455 1465
 	public function quicktime_read_mp4_descr_length($data, &$offset) {
1456 1466
 		// http://libquicktime.sourcearchive.com/documentation/2:1.0.2plus-pdebian-2build1/esds_8c-source.html
1457 1467
 		$num_bytes = 0;
@@ -2230,6 +2240,9 @@  discard block
 block discarded – undo
2230 2240
 		return true;
2231 2241
 	}
2232 2242
 
2243
+	/**
2244
+	 * @param string $nullterminatedstring
2245
+	 */
2233 2246
 	public function NoNullString($nullterminatedstring) {
2234 2247
 		// remove the single null terminator on null terminated strings
2235 2248
 		if (substr($nullterminatedstring, strlen($nullterminatedstring) - 1, 1) === "\x00") {
@@ -2238,6 +2251,9 @@  discard block
 block discarded – undo
2238 2251
 		return $nullterminatedstring;
2239 2252
 	}
2240 2253
 
2254
+	/**
2255
+	 * @param string $pascalstring
2256
+	 */
2241 2257
 	public function Pascal2String($pascalstring) {
2242 2258
 		// Pascal strings have 1 unsigned byte at the beginning saying how many chars (1-255) are in the string
2243 2259
 		return substr($pascalstring, 1);
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio-video.riff.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -1320,6 +1320,9 @@  discard block
 block discarded – undo
1320 1320
 		return true;
1321 1321
 	}
1322 1322
 
1323
+	/**
1324
+	 * @param double $startoffset
1325
+	 */
1323 1326
 	public function ParseRIFFAMV($startoffset, $maxoffset) {
1324 1327
 		// AMV files are RIFF-AVI files with parts of the spec deliberately broken, such as chunk size fields hardcoded to zero (because players known in hardware that these fields are always a certain size
1325 1328
 
@@ -1715,6 +1718,9 @@  discard block
 block discarded – undo
1715 1718
 		return $RIFFchunk;
1716 1719
 	}
1717 1720
 
1721
+	/**
1722
+	 * @param string $RIFFdata
1723
+	 */
1718 1724
 	public function ParseRIFFdata(&$RIFFdata) {
1719 1725
 		$info = &$this->getid3->info;
1720 1726
 		if ($RIFFdata) {
@@ -1836,6 +1842,9 @@  discard block
 block discarded – undo
1836 1842
 		return $WaveFormatEx;
1837 1843
 	}
1838 1844
 
1845
+	/**
1846
+	 * @param string $WavPackChunkData
1847
+	 */
1839 1848
 	public function parseWavPackHeader($WavPackChunkData) {
1840 1849
 		// typedef struct {
1841 1850
 		//     char ckID [4];
@@ -1916,6 +1925,9 @@  discard block
 block discarded – undo
1916 1925
 		return $parsed;
1917 1926
 	}
1918 1927
 
1928
+	/**
1929
+	 * @param string $DIVXTAG
1930
+	 */
1919 1931
 	public static function ParseDIVXTAG($DIVXTAG, $raw=false) {
1920 1932
 		// structure from "IDivX" source, Form1.frm, by "Greg Frazier of Daemonic Software Group", email: [email protected], web: http://dsg.cjb.net/
1921 1933
 		// source available at http://files.divx-digest.com/download/c663efe7ef8ad2e90bf4af4d3ea6188a/on0SWN2r/edit/IDivX.zip
@@ -1990,6 +2002,9 @@  discard block
 block discarded – undo
1990 2002
 		return $parsed;
1991 2003
 	}
1992 2004
 
2005
+	/**
2006
+	 * @param string $tagshortname
2007
+	 */
1993 2008
 	public static function waveSNDMtagLookup($tagshortname) {
1994 2009
 		$begin = __LINE__;
1995 2010
 
@@ -2576,6 +2591,9 @@  discard block
 block discarded – undo
2576 2591
 		return getid3_lib::EmbeddedLookup($fourcc, $begin, __LINE__, __FILE__, 'riff-fourcc');
2577 2592
 	}
2578 2593
 
2594
+	/**
2595
+	 * @param string $byteword
2596
+	 */
2579 2597
 	private function EitherEndian2Int($byteword, $signed=false) {
2580 2598
 		if ($this->container == 'riff') {
2581 2599
 			return getid3_lib::LittleEndian2Int($byteword, $signed);
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio.ac3.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -234,6 +234,9 @@  discard block
 block discarded – undo
234 234
 		return true;
235 235
 	}
236 236
 
237
+	/**
238
+	 * @param integer $length
239
+	 */
237 240
 	private function readHeaderBSI($length) {
238 241
 		$data = substr($this->AC3header['bsi'], $this->BSIoffset, $length);
239 242
 		$this->BSIoffset += $length;
@@ -323,6 +326,9 @@  discard block
 block discarded – undo
323 326
 		return (isset($dolbySurroundModeLookup[$dsurmod]) ? $dolbySurroundModeLookup[$dsurmod] : false);
324 327
 	}
325 328
 
329
+	/**
330
+	 * @param boolean $lfeon
331
+	 */
326 332
 	public static function channelsEnabledLookup($acmod, $lfeon) {
327 333
 		$lookup = array(
328 334
 			'ch1'=>(bool) ($acmod == 0),
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio.dts.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -139,6 +139,10 @@
 block discarded – undo
139 139
 		return true;
140 140
 	}
141 141
 
142
+	/**
143
+	 * @param string $bin
144
+	 * @param integer $length
145
+	 */
142 146
 	private function readBinData($bin, $length) {
143 147
 		$data = substr($bin, $this->readBinDataOffset, $length);
144 148
 		$this->readBinDataOffset += $length;
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio.mp3.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -1072,6 +1072,9 @@  discard block
 block discarded – undo
1072 1072
 		return true;
1073 1073
 	}
1074 1074
 
1075
+	/**
1076
+	 * @param boolean $ScanAsCBR
1077
+	 */
1075 1078
 	public function RecursiveFrameScanning(&$offset, &$nextframetestoffset, $ScanAsCBR) {
1076 1079
 		$info = &$this->getid3->info;
1077 1080
 		$firstframetestarray = array('error'=>'', 'warning'=>'', 'avdataend'=>$info['avdataend'], 'avdataoffset'=>$info['avdataoffset']);
@@ -1686,6 +1689,9 @@  discard block
 block discarded – undo
1686 1689
 		return $MPEGaudioEmphasis;
1687 1690
 	}
1688 1691
 
1692
+	/**
1693
+	 * @param string $head4
1694
+	 */
1689 1695
 	public static function MPEGaudioHeaderBytesValid($head4, $allowBitrate15=false) {
1690 1696
 		return self::MPEGaudioHeaderValid(self::MPEGaudioHeaderDecode($head4), false, $allowBitrate15);
1691 1697
 	}
@@ -1936,6 +1942,9 @@  discard block
 block discarded – undo
1936 1942
 		return (isset($LAMEmiscStereoModeLookup[$StereoModeID]) ? $LAMEmiscStereoModeLookup[$StereoModeID] : '');
1937 1943
 	}
1938 1944
 
1945
+	/**
1946
+	 * @param integer $SourceSampleFrequencyID
1947
+	 */
1939 1948
 	public static function LAMEmiscSourceSampleFrequencyLookup($SourceSampleFrequencyID) {
1940 1949
 		static $LAMEmiscSourceSampleFrequencyLookup = array(
1941 1950
 			0 => '<= 32 kHz',
Please login to merge, or discard this patch.
src/wp-includes/ID3/module.audio.ogg.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -427,6 +427,11 @@
 block discarded – undo
427 427
 	}
428 428
 
429 429
 	// http://tools.ietf.org/html/draft-ietf-codec-oggopus-03
430
+
431
+	/**
432
+	 * @param string $filedata
433
+	 * @param integer $filedataoffset
434
+	 */
430 435
 	public function ParseOpusPageHeader(&$filedata, &$filedataoffset, &$oggpageinfo) {
431 436
 		$info = &$this->getid3->info;
432 437
 		$info['audio']['dataformat']   = 'opus';
Please login to merge, or discard this patch.