Code Duplication    Length = 6-7 lines in 2 locations

src/wp-includes/ID3/module.audio-video.matroska.php 2 locations

@@ 1357-1363 (lines=7) @@
1354
		$block_data['timecode']    = getid3_lib::BigEndian2Int($this->readEBMLelementData(2), false, true);
1355
		$block_data['flags_raw']   = getid3_lib::BigEndian2Int($this->readEBMLelementData(1));
1356
1357
		if ($block_type == EBML_ID_CLUSTERSIMPLEBLOCK) {
1358
			$block_data['flags']['keyframe']  = (($block_data['flags_raw'] & 0x80) >> 7);
1359
			//$block_data['flags']['reserved1'] = (($block_data['flags_raw'] & 0x70) >> 4);
1360
		}
1361
		else {
1362
			//$block_data['flags']['reserved1'] = (($block_data['flags_raw'] & 0xF0) >> 4);
1363
		}
1364
		$block_data['flags']['invisible'] = (bool)(($block_data['flags_raw'] & 0x08) >> 3);
1365
		$block_data['flags']['lacing']    =       (($block_data['flags_raw'] & 0x06) >> 1);  // 00=no lacing; 01=Xiph lacing; 11=EBML lacing; 10=fixed-size lacing
1366
		if ($block_type == EBML_ID_CLUSTERSIMPLEBLOCK) {
@@ 1366-1371 (lines=6) @@
1363
		}
1364
		$block_data['flags']['invisible'] = (bool)(($block_data['flags_raw'] & 0x08) >> 3);
1365
		$block_data['flags']['lacing']    =       (($block_data['flags_raw'] & 0x06) >> 1);  // 00=no lacing; 01=Xiph lacing; 11=EBML lacing; 10=fixed-size lacing
1366
		if ($block_type == EBML_ID_CLUSTERSIMPLEBLOCK) {
1367
			$block_data['flags']['discardable'] = (($block_data['flags_raw'] & 0x01));
1368
		}
1369
		else {
1370
			//$block_data['flags']['reserved2'] = (($block_data['flags_raw'] & 0x01) >> 0);
1371
		}
1372
		$block_data['flags']['lacing_type'] = self::BlockLacingType($block_data['flags']['lacing']);
1373
1374
		// Lace (when lacing bit is set)