@@ -133,6 +133,9 @@ discard block |
||
| 133 | 133 | fclose($fp); |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | + /** |
|
| 137 | + * @param string $in_file |
|
| 138 | + */ |
|
| 136 | 139 | public static function gunzip($in_file,$out_file_name = '') { |
| 137 | 140 | //echo $in_file.' -> '.$out_file_name."\n"; |
| 138 | 141 | $buffer_size = 4096; // read 4kb at a time |
@@ -318,6 +321,9 @@ discard block |
||
| 318 | 321 | } |
| 319 | 322 | |
| 320 | 323 | |
| 324 | + /** |
|
| 325 | + * @param string $latlong |
|
| 326 | + */ |
|
| 321 | 327 | public function convertDec($dms,$latlong) { |
| 322 | 328 | if ($latlong == 'latitude') { |
| 323 | 329 | $deg = substr($dms, 0, 2); |
@@ -352,6 +358,9 @@ discard block |
||
| 352 | 358 | return array('latitude' => round($latitude,5),'longitude' => round($longitude,5)); |
| 353 | 359 | } |
| 354 | 360 | |
| 361 | + /** |
|
| 362 | + * @param string $latlong |
|
| 363 | + */ |
|
| 355 | 364 | public function convertDM($coord,$latlong) { |
| 356 | 365 | if ($latlong == 'latitude') { |
| 357 | 366 | if ($coord < 0) $NSEW = 'S'; |
@@ -504,7 +513,7 @@ discard block |
||
| 504 | 513 | /** |
| 505 | 514 | * Returns list of available locales |
| 506 | 515 | * |
| 507 | - * @return array |
|
| 516 | + * @return string[] |
|
| 508 | 517 | */ |
| 509 | 518 | public function listLocaleDir() |
| 510 | 519 | { |
@@ -765,6 +774,10 @@ discard block |
||
| 765 | 774 | } |
| 766 | 775 | |
| 767 | 776 | // Come from comment : http://php.net/manual/fr/function.is-writable.php#73596 |
| 777 | + |
|
| 778 | + /** |
|
| 779 | + * @param string $path |
|
| 780 | + */ |
|
| 768 | 781 | public function is__writable($path) { |
| 769 | 782 | //will work in despite of Windows ACLs bug |
| 770 | 783 | //NOTE: use a trailing slash for folders!!! |
@@ -286,6 +286,7 @@ discard block |
||
| 286 | 286 | * |
| 287 | 287 | * @param String $aircraft_registration the registration of the aircraft |
| 288 | 288 | * @param String $aircraft_name type of the aircraft |
| 289 | + * @param string $type |
|
| 289 | 290 | * @return array the aircraft thumbnail, orignal url and copyright |
| 290 | 291 | * |
| 291 | 292 | */ |
@@ -318,7 +319,7 @@ discard block |
||
| 318 | 319 | /** |
| 319 | 320 | * Gets the aircraft image from Deviantart |
| 320 | 321 | * |
| 321 | - * @param $type |
|
| 322 | + * @param string $type |
|
| 322 | 323 | * @param String $registration the registration of the aircraft |
| 323 | 324 | * @param String $name type of the aircraft |
| 324 | 325 | * @return array the aircraft thumbnail, orignal url and copyright |
@@ -360,6 +361,7 @@ discard block |
||
| 360 | 361 | * |
| 361 | 362 | * @param String $aircraft_registration the registration of the aircraft |
| 362 | 363 | * @param String $aircraft_name type of the aircraft |
| 364 | + * @param string $type |
|
| 363 | 365 | * @return array the aircraft thumbnail, orignal url and copyright |
| 364 | 366 | * |
| 365 | 367 | */ |
@@ -402,6 +404,7 @@ discard block |
||
| 402 | 404 | * |
| 403 | 405 | * @param String $aircraft_registration the registration of the aircraft |
| 404 | 406 | * @param String $aircraft_name type of the aircraft |
| 407 | + * @param string $type |
|
| 405 | 408 | * @return array the aircraft thumbnail, orignal url and copyright |
| 406 | 409 | * |
| 407 | 410 | */ |
@@ -436,6 +439,7 @@ discard block |
||
| 436 | 439 | * |
| 437 | 440 | * @param String $registration the registration of the aircraft |
| 438 | 441 | * @param String $name type of the aircraft |
| 442 | + * @param string $type |
|
| 439 | 443 | * @return array the aircraft thumbnail, orignal url and copyright |
| 440 | 444 | * |
| 441 | 445 | */ |
@@ -466,8 +470,8 @@ discard block |
||
| 466 | 470 | } |
| 467 | 471 | |
| 468 | 472 | /** |
| 469 | - * @param $type |
|
| 470 | - * @param $aircraft_icao |
|
| 473 | + * @param string $type |
|
| 474 | + * @param string $aircraft_icao |
|
| 471 | 475 | * @param $airline_icao |
| 472 | 476 | * @return array |
| 473 | 477 | */ |
@@ -490,7 +494,7 @@ discard block |
||
| 490 | 494 | /** |
| 491 | 495 | * Gets the aircraft image from Bing |
| 492 | 496 | * |
| 493 | - * @param $type |
|
| 497 | + * @param string $type |
|
| 494 | 498 | * @param String $aircraft_registration the registration of the aircraft |
| 495 | 499 | * @param String $aircraft_name type of the aircraft |
| 496 | 500 | * @return array the aircraft thumbnail, orignal url and copyright |
@@ -529,6 +533,7 @@ discard block |
||
| 529 | 533 | * |
| 530 | 534 | * @param String $aircraft_registration the registration of the aircraft |
| 531 | 535 | * @param String $aircraft_name type of the aircraft |
| 536 | + * @param string $type |
|
| 532 | 537 | * @return array the aircraft thumbnail, orignal url and copyright |
| 533 | 538 | * |
| 534 | 539 | */ |
@@ -554,6 +559,7 @@ discard block |
||
| 554 | 559 | * |
| 555 | 560 | * @param String $registration the registration of the aircraft/mmsi |
| 556 | 561 | * @param String $name name |
| 562 | + * @param string $type |
|
| 557 | 563 | * @return array the aircraft thumbnail, orignal url and copyright |
| 558 | 564 | * |
| 559 | 565 | */ |
@@ -615,6 +621,7 @@ discard block |
||
| 615 | 621 | * |
| 616 | 622 | * @param String $registration the registration of the aircraft |
| 617 | 623 | * @param String $name type of the aircraft |
| 624 | + * @param string $type |
|
| 618 | 625 | * @return array the aircraft thumbnail, orignal url and copyright |
| 619 | 626 | * |
| 620 | 627 | */ |
@@ -1784,7 +1784,7 @@ discard block |
||
| 1784 | 1784 | /** |
| 1785 | 1785 | * Counts all hours |
| 1786 | 1786 | * |
| 1787 | - * @param $orderby |
|
| 1787 | + * @param string $orderby |
|
| 1788 | 1788 | * @param array $filters |
| 1789 | 1789 | * @return array the hour list |
| 1790 | 1790 | */ |
@@ -2263,7 +2263,7 @@ discard block |
||
| 2263 | 2263 | /** |
| 2264 | 2264 | * Parses the direction degrees to working |
| 2265 | 2265 | * |
| 2266 | - * @param Float $direction the direction in degrees |
|
| 2266 | + * @param integer $direction the direction in degrees |
|
| 2267 | 2267 | * @return array the direction information |
| 2268 | 2268 | * |
| 2269 | 2269 | */ |