@@ -79,6 +79,10 @@ discard block |
||
79 | 79 | return strlen($headerLine); // Needed by curl |
80 | 80 | } |
81 | 81 | |
82 | + /** |
|
83 | + * @param string $url |
|
84 | + * @param string $file |
|
85 | + */ |
|
82 | 86 | public static function download($url, $file, $referer = '') { |
83 | 87 | $fp = fopen($file, 'w+'); |
84 | 88 | $ch = curl_init(); |
@@ -177,7 +181,7 @@ discard block |
||
177 | 181 | * Check is distance realistic |
178 | 182 | * @param int $timeDifference the time between the reception of both messages |
179 | 183 | * @param float $distance distance covered |
180 | - * @return whether distance is realistic |
|
184 | + * @return boolean distance is realistic |
|
181 | 185 | */ |
182 | 186 | public function withinThreshold ($timeDifference, $distance) { |
183 | 187 | $x = abs($timeDifference); |
@@ -200,6 +204,9 @@ discard block |
||
200 | 204 | } |
201 | 205 | |
202 | 206 | |
207 | + /** |
|
208 | + * @param string $latlong |
|
209 | + */ |
|
203 | 210 | public function convertDec($dms,$latlong) { |
204 | 211 | if ($latlong == 'latitude') { |
205 | 212 | $deg = substr($dms, 0, 2); |
@@ -301,7 +308,7 @@ discard block |
||
301 | 308 | /** |
302 | 309 | * Returns list of available locales |
303 | 310 | * |
304 | - * @return array |
|
311 | + * @return string[] |
|
305 | 312 | */ |
306 | 313 | public function listLocaleDir() |
307 | 314 | { |