Code Duplication    Length = 3-3 lines in 2 locations

src/wp-includes/ID3/getid3.php 2 locations

@@ 1448-1450 (lines=3) @@
1445
			}
1446
		}
1447
1448
		if ((!isset($this->info['playtime_seconds']) || ($this->info['playtime_seconds'] <= 0)) && !empty($this->info['bitrate'])) {
1449
			$this->info['playtime_seconds'] = (($this->info['avdataend'] - $this->info['avdataoffset']) * 8) / $this->info['bitrate'];
1450
		}
1451
1452
		if (!isset($this->info['bitrate']) && !empty($this->info['playtime_seconds'])) {
1453
			$this->info['bitrate'] = (($this->info['avdataend'] - $this->info['avdataoffset']) * 8) / $this->info['playtime_seconds'];
@@ 1452-1454 (lines=3) @@
1449
			$this->info['playtime_seconds'] = (($this->info['avdataend'] - $this->info['avdataoffset']) * 8) / $this->info['bitrate'];
1450
		}
1451
1452
		if (!isset($this->info['bitrate']) && !empty($this->info['playtime_seconds'])) {
1453
			$this->info['bitrate'] = (($this->info['avdataend'] - $this->info['avdataoffset']) * 8) / $this->info['playtime_seconds'];
1454
		}
1455
		if (isset($this->info['bitrate']) && empty($this->info['audio']['bitrate']) && empty($this->info['video']['bitrate'])) {
1456
			if (isset($this->info['audio']['dataformat']) && empty($this->info['video']['resolution_x'])) {
1457
				// audio only