@@ -90,6 +90,10 @@ discard block |
||
| 90 | 90 | return strlen($headerLine); // Needed by curl |
| 91 | 91 | } |
| 92 | 92 | |
| 93 | + /** |
|
| 94 | + * @param string $url |
|
| 95 | + * @param string $file |
|
| 96 | + */ |
|
| 93 | 97 | public static function download($url, $file, $referer = '') { |
| 94 | 98 | global $globalDebug; |
| 95 | 99 | $fp = fopen($file, 'w'); |
@@ -106,6 +110,9 @@ discard block |
||
| 106 | 110 | fclose($fp); |
| 107 | 111 | } |
| 108 | 112 | |
| 113 | + /** |
|
| 114 | + * @param string $in_file |
|
| 115 | + */ |
|
| 109 | 116 | public static function gunzip($in_file,$out_file_name = '') { |
| 110 | 117 | //echo $in_file.' -> '.$out_file_name."\n"; |
| 111 | 118 | $buffer_size = 4096; // read 4kb at a time |
@@ -211,7 +218,7 @@ discard block |
||
| 211 | 218 | * Check is distance realistic |
| 212 | 219 | * @param int $timeDifference the time between the reception of both messages |
| 213 | 220 | * @param float $distance distance covered |
| 214 | - * @return whether distance is realistic |
|
| 221 | + * @return boolean distance is realistic |
|
| 215 | 222 | */ |
| 216 | 223 | public function withinThreshold ($timeDifference, $distance) { |
| 217 | 224 | $x = abs($timeDifference); |
@@ -234,6 +241,9 @@ discard block |
||
| 234 | 241 | } |
| 235 | 242 | |
| 236 | 243 | |
| 244 | + /** |
|
| 245 | + * @param string $latlong |
|
| 246 | + */ |
|
| 237 | 247 | public function convertDec($dms,$latlong) { |
| 238 | 248 | if ($latlong == 'latitude') { |
| 239 | 249 | $deg = substr($dms, 0, 2); |
@@ -245,6 +255,9 @@ discard block |
||
| 245 | 255 | return $deg+(($min*60)/3600); |
| 246 | 256 | } |
| 247 | 257 | |
| 258 | + /** |
|
| 259 | + * @param string $latlong |
|
| 260 | + */ |
|
| 248 | 261 | public function convertDM($coord,$latlong) { |
| 249 | 262 | if ($latlong == 'latitude') { |
| 250 | 263 | if ($coord < 0) $NSEW = 'S'; |
@@ -382,7 +395,7 @@ discard block |
||
| 382 | 395 | /** |
| 383 | 396 | * Returns list of available locales |
| 384 | 397 | * |
| 385 | - * @return array |
|
| 398 | + * @return string[] |
|
| 386 | 399 | */ |
| 387 | 400 | public function listLocaleDir() |
| 388 | 401 | { |