Completed
Push — master ( 9adbe5...64358c )
by Yannick
33:16
created
require/class.Common.php 1 patch
Doc Comments   +15 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,6 +97,10 @@  discard block
 block discarded – undo
97 97
 		return strlen($headerLine); // Needed by curl
98 98
 	}
99 99
 
100
+	/**
101
+	 * @param string $url
102
+	 * @param string $file
103
+	 */
100 104
 	public static function download($url, $file, $referer = '') {
101 105
 		global $globalDebug, $globalProxy, $globalForceIPv4;
102 106
 		$fp = fopen($file, 'w');
@@ -121,6 +125,9 @@  discard block
 block discarded – undo
121 125
 		fclose($fp);
122 126
 	}
123 127
 
128
+	/**
129
+	 * @param string $in_file
130
+	 */
124 131
 	public static function gunzip($in_file,$out_file_name = '') {
125 132
 		//echo $in_file.' -> '.$out_file_name."\n";
126 133
 		$buffer_size = 4096; // read 4kb at a time
@@ -272,7 +279,7 @@  discard block
 block discarded – undo
272 279
 	* Check is distance realistic
273 280
 	* @param int $timeDifference the time between the reception of both messages
274 281
 	* @param float $distance distance covered
275
-	* @return whether distance is realistic
282
+	* @return boolean distance is realistic
276 283
 	*/
277 284
 	public function withinThreshold ($timeDifference, $distance) {
278 285
 		$x = abs($timeDifference);
@@ -295,6 +302,9 @@  discard block
 block discarded – undo
295 302
 	}
296 303
 
297 304
 
305
+	/**
306
+	 * @param string $latlong
307
+	 */
298 308
 	public function convertDec($dms,$latlong) {
299 309
 		if ($latlong == 'latitude') {
300 310
 			$deg = substr($dms, 0, 2);
@@ -306,6 +316,9 @@  discard block
 block discarded – undo
306 316
 		return $deg+(($min*60)/3600);
307 317
 	}
308 318
 	
319
+	/**
320
+	 * @param string $latlong
321
+	 */
309 322
 	public function convertDM($coord,$latlong) {
310 323
 		if ($latlong == 'latitude') {
311 324
 			if ($coord < 0) $NSEW = 'S';
@@ -443,7 +456,7 @@  discard block
 block discarded – undo
443 456
 	/**
444 457
 	* Returns list of available locales
445 458
 	*
446
-	* @return array
459
+	* @return string[]
447 460
 	 */
448 461
 	public function listLocaleDir()
449 462
 	{
Please login to merge, or discard this patch.