Code Duplication    Length = 5-5 lines in 9 locations

country-statistics-airline-country.php 1 location

@@ 13-17 (lines=5) @@
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
13
if (isset($_GET['sort'])) {
14
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
15
} else {
16
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
17
}
18
19
if (!empty($spotter_array))
20
{

country-statistics-airline.php 1 location

@@ 12-16 (lines=5) @@
9
$Spotter = new Spotter();
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
if (isset($_GET['sort'])) {
13
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
14
} else {
15
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
16
}
17
18
if (!empty($spotter_array))
19
{

country-statistics-arrival-airport-country.php 1 location

@@ 13-17 (lines=5) @@
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
13
if (isset($_GET['sort'])) {
14
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
15
} else {
16
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
17
}
18
19
if (!empty($spotter_array))
20
{

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

@@ 13-17 (lines=5) @@
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
13
if (isset($_GET['sort'])) {
14
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
15
} else {
16
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
17
}
18
19
if (!empty($spotter_array))
20
{

country-statistics-departure-airport.php 1 location

@@ 13-17 (lines=5) @@
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
13
if (isset($_GET['sort'])) {
14
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
15
} else {
16
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
17
}
18
19
if (!empty($spotter_array))
20
{

country-statistics-manufacturer.php 1 location

@@ 12-16 (lines=5) @@
9
$Spotter = new Spotter();
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
if (isset($_GET['sort'])) {
13
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
14
} else {
15
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
16
}
17
18
if (!empty($spotter_array))
19
{

country-statistics-registration.php 1 location

@@ 12-16 (lines=5) @@
9
$Spotter = new Spotter();
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
if (isset($_GET['sort'])) {
13
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
14
} else {
15
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
16
}
17
18
if (!empty($spotter_array))
19
{

country-statistics-route.php 1 location

@@ 13-17 (lines=5) @@
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
13
if (isset($_GET['sort'])) {
14
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
15
} else {
16
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
17
}
18
19
if (!empty($spotter_array))
20
{

country-statistics-time.php 1 location

@@ 13-17 (lines=5) @@
10
$country = ucwords(str_replace("-", " ", filter_input(INPUT_GET,'country',FILTER_SANITIZE_STRING)));
11
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
12
13
if (isset($_GET['sort'])) {
14
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", $sort);
15
} else {
16
	$spotter_array = $Spotter->getSpotterDataByCountry($country, "0,1", '');
17
}
18
19
if (!empty($spotter_array))
20
{