Code Duplication    Length = 7-7 lines in 3 locations

archive-geojson.php 1 location

@@ 303-309 (lines=7) @@
300
			$output .= '"totaltime": "'.round(microtime(true)-$begintime,2).'",';
301
			if (isset($begindate)) $output .= '"archive_date": "'.$begindate.'",';
302
			$output .= '"fc": "'.$flightcnt.'"';
303
		} else {
304
			$output .= '"features": ';
305
			$output .= '{';
306
			$output .= '"type": "Feature",';
307
			$output .= '"properties": {';
308
			$output .= '"fc": "'.$flightcnt.'"}}';
309
		}
310
		
311
$output .= '}';
312

live-czml.php 1 location

@@ 215-221 (lines=7) @@
212
	}
213
	$output  = substr($output, 0, -1);
214
	$output .= ']}}';
215
} else {
216
	$output .= '"features": ';
217
	$output .= '{';
218
	$output .= '"type": "Feature",';
219
	$output .= '"properties": {';
220
	$output .= '"fc": "'.$flightcnt.'"}}';
221
}
222
$output .= ']';
223
print $output;
224
?>

live-geojson.php 1 location

@@ 402-408 (lines=7) @@
399
			$output .= '"totaltime": "'.round(microtime(true)-$begintime,2).'",';
400
			if (isset($begindate)) $output .= '"archive_date": "'.$begindate.'",';
401
			$output .= '"fc": "'.$j.'"';
402
		} else {
403
			$output .= '"features": ';
404
			$output .= '{';
405
			$output .= '"type": "Feature",';
406
			$output .= '"properties": {';
407
			$output .= '"fc": "'.$flightcnt.'"}}';
408
		}
409
		
410
$output .= '}';
411