Code Duplication    Length = 11-11 lines in 3 locations

aircraft-statistics-airline-country.php 1 location

@@ 39-49 (lines=11) @@
36
	print '</form>';
37
	print '</div>';
38
39
	if ($aircraft_type != "NA")
40
	{
41
		print '<div class="info column">';
42
		print '<h1>'.$spotter_array[0]['aircraft_name'].' ('.$spotter_array[0]['aircraft_type'].')</h1>';
43
		print '<div><span class="label">Name</span>'.$spotter_array[0]['aircraft_name'].'</div>';
44
		print '<div><span class="label">ICAO</span>'.$spotter_array[0]['aircraft_type'].'</div>'; 
45
		print '<div><span class="label">Manufacturer</span><a href="'.$globalURL.'/manufacturer/'.strtolower(str_replace(" ", "-", $spotter_array[0]['aircraft_manufacturer'])).'">'.$spotter_array[0]['aircraft_manufacturer'].'</a></div>';
46
		print '</div>';
47
	} else {
48
		print '<div class="alert alert-warning">'._("This special aircraft profile shows all flights in where the aircraft type is unknown.").'</div>';
49
	}
50
	include('aircraft-sub-menu.php');
51
	print '<div class="column">';
52
	print '<h2>'._("Most Common Airlines by Country").'</h2>';

aircraft-statistics-departure-airport-country.php 1 location

@@ 37-47 (lines=11) @@
34
	print '</form>';
35
	print '</div>';
36
37
	if ($aircraft_type != "NA")
38
	{
39
		print '<div class="info column">';
40
		print '<h1>'.$spotter_array[0]['aircraft_name'].' ('.$spotter_array[0]['aircraft_type'].')</h1>';
41
		print '<div><span class="label">Name</span>'.$spotter_array[0]['aircraft_name'].'</div>';
42
		print '<div><span class="label">ICAO</span>'.$spotter_array[0]['aircraft_type'].'</div>'; 
43
		print '<div><span class="label">Manufacturer</span><a href="'.$globalURL.'/manufacturer/'.strtolower(str_replace(" ", "-", $spotter_array[0]['aircraft_manufacturer'])).'">'.$spotter_array[0]['aircraft_manufacturer'].'</a></div>';
44
		print '</div>';
45
	} else {
46
		print '<div class="alert alert-warning">'._("This special aircraft profile shows all flights in where the aircraft type is unknown.").'</div>';
47
	}
48
	include('aircraft-sub-menu.php');
49
	print '<div class="column">';
50
	print '<h2>'._("Most Common Departure Airports by Country").'</h2>';

aircraft-statistics-time.php 1 location

@@ 39-49 (lines=11) @@
36
	print '</form>';
37
	print '</div>';
38
39
	if ($aircraft_type != "NA")
40
	{
41
		print '<div class="info column">';
42
		print '<h1>'.$spotter_array[0]['aircraft_name'].' ('.$spotter_array[0]['aircraft_type'].')</h1>';
43
		print '<div><span class="label">Name</span>'.$spotter_array[0]['aircraft_name'].'</div>';
44
		print '<div><span class="label">ICAO</span>'.$spotter_array[0]['aircraft_type'].'</div>'; 
45
		print '<div><span class="label">Manufacturer</span><a href="'.$globalURL.'/manufacturer/'.strtolower(str_replace(" ", "-", $spotter_array[0]['aircraft_manufacturer'])).'">'.$spotter_array[0]['aircraft_manufacturer'].'</a></div>';
46
		print '</div>';
47
	} else {
48
		print '<div class="alert alert-warning">'._("This special aircraft profile shows all flights in where the aircraft type is unknown.").'</div>';
49
	}
50
	include('aircraft-sub-menu.php');
51
	print '<div class="column">';
52
	print '<h2>'._("Most Common Time of Day").'</h2>';