Code Duplication    Length = 2-2 lines in 4 locations

archive-country.php 1 location

@@ 11-12 (lines=2) @@
8
$date = filter_input(INPUT_GET,'date',FILTER_SANITIZE_STRING);
9
10
$Spotter = new Spotter();
11
if (isset($_GET['date'])) $spotter_array = $Spotter->getSpotterDataByDate($date,"0,1", $sort);
12
else $spotter_array = array();
13
14
if (!empty($spotter_array))
15
{

date-statistics-aircraft.php 1 location

@@ 7-8 (lines=2) @@
4
require_once('require/class.Language.php');
5
$Spotter = new Spotter();
6
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
7
if (isset($_GET['date'])) $spotter_array = $Spotter->getSpotterDataByDate($_GET['date'],"0,1", $sort);
8
else $spotter_array = array();
9
10
if (!empty($spotter_array))
11
{

date-statistics-airline-country.php 1 location

@@ 9-10 (lines=2) @@
6
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
7
8
$Spotter = new Spotter();
9
if (isset($_GET['date'])) $spotter_array = $Spotter->getSpotterDataByDate($_GET['date'],"0,1", $sort);
10
else $spotter_array = array();
11
12
if (!empty($spotter_array))
13
{

date-statistics-airline.php 1 location

@@ 8-9 (lines=2) @@
5
6
$Spotter = new Spotter();
7
$sort = filter_input(INPUT_GET,'sort',FILTER_SANITIZE_STRING);
8
if (isset($_GET['date'])) $spotter_array = $Spotter->getSpotterDataByDate($_GET['date'],"0,1", $sort);
9
else $spotter_array = '';
10
11
if (!empty($spotter_array))
12
{