Completed
Push — master ( 2c5525...528bd8 )
by Yannick
32:59
created
require/class.NOTAM.php 1 patch
Doc Comments   +14 added lines patch added patch discarded remove patch
@@ -1126,6 +1126,10 @@  discard block
 block discarded – undo
1126 1126
 		else return array();
1127 1127
 	}
1128 1128
 
1129
+	/**
1130
+	 * @param string $type
1131
+	 * @param string $rules
1132
+	 */
1129 1133
 	public function addNOTAM($ref,$title,$type,$fir,$code,$rules,$scope,$lower_limit,$upper_limit,$center_latitude,$center_longitude,$radius,$date_begin,$date_end,$permanent,$text,$full_notam) {
1130 1134
 		$query = "INSERT INTO notam (ref,title,notam_type,fir,code,rules,scope,lower_limit,upper_limit,center_latitude,center_longitude,radius,date_begin,date_end,permanent,notam_text,full_notam) VALUES (:ref,:title,:type,:fir,:code,:rules,:scope,:lower_limit,:upper_limit,:center_latitude,:center_longitude,:radius,:date_begin,:date_end,:permanent,:text,:full_notam)";
1131 1135
 		$query_values = array(':ref' => $ref,':title' => $title,':type' => $type,':fir' => $fir,':code' => $code,':rules' => $rules,':scope' => $scope,':lower_limit' => $lower_limit,':upper_limit' => $upper_limit,':center_latitude' => $center_latitude,':center_longitude' => $center_longitude,':radius' => $radius,':date_begin' => $date_begin,':date_end' => $date_end,':permanent' => $permanent,':text' => $text,':full_notam' => $full_notam);
@@ -1207,6 +1211,10 @@  discard block
 block discarded – undo
1207 1211
 			}
1208 1212
 		}
1209 1213
 	}
1214
+
1215
+	/**
1216
+	 * @param string $filename
1217
+	 */
1210 1218
 	public function updateNOTAMfromTextFile($filename) {
1211 1219
 		global $globalTransaction, $globalDebug;
1212 1220
 		$alldata = $this->parseNOTAMtextFile($filename);
@@ -1261,6 +1269,9 @@  discard block
 block discarded – undo
1261 1269
 		}
1262 1270
 	}
1263 1271
 
1272
+	/**
1273
+	 * @param string $icao
1274
+	 */
1264 1275
 	public function downloadNOTAM($icao) {
1265 1276
 		date_default_timezone_set("UTC");
1266 1277
 		$Common = new Common();
@@ -1416,6 +1427,9 @@  discard block
 block discarded – undo
1416 1427
 		return $result;
1417 1428
 	}
1418 1429
 	
1430
+	/**
1431
+	 * @param string $code
1432
+	 */
1419 1433
 	public function parse_code($code) {
1420 1434
 		$code = str_split($code);
1421 1435
 		$code_fp = $code[1].$code[2];
Please login to merge, or discard this patch.
require/class.Language.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 	/**
78 78
 	* Returns list of available locales
79 79
 	*
80
-	* @return array
80
+	* @return string[]
81 81
 	*/
82 82
 	public function listLocaleDir()
83 83
 	{
@@ -97,6 +97,9 @@  discard block
 block discarded – undo
97 97
 		return $result;
98 98
 	}
99 99
 
100
+	/**
101
+	 * @param string $locale
102
+	 */
100 103
 	public function getLocale($locale)
101 104
 	{
102 105
 		return array($locale,$this->all_languages[$locale][1],$this->all_languages[$locale][2],$locale.'.utf8',$locale.'.UTF8');
Please login to merge, or discard this patch.
require/class.Common.php 1 patch
Doc Comments   +14 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,6 +100,9 @@  discard block
 block discarded – undo
100 100
 		return strlen($headerLine); // Needed by curl
101 101
 	}
102 102
 
103
+	/**
104
+	 * @param string $url
105
+	 */
103 106
 	public static function download($url, $file, $referer = '') {
104 107
 		global $globalDebug, $globalProxy, $globalForceIPv4;
105 108
 		$fp = fopen($file, 'w');
@@ -124,6 +127,9 @@  discard block
 block discarded – undo
124 127
 		fclose($fp);
125 128
 	}
126 129
 
130
+	/**
131
+	 * @param string $in_file
132
+	 */
127 133
 	public static function gunzip($in_file,$out_file_name = '') {
128 134
 		//echo $in_file.' -> '.$out_file_name."\n";
129 135
 		$buffer_size = 4096; // read 4kb at a time
@@ -285,7 +291,7 @@  discard block
 block discarded – undo
285 291
 	* Check is distance realistic
286 292
 	* @param int $timeDifference the time between the reception of both messages
287 293
 	* @param float $distance distance covered
288
-	* @return whether distance is realistic
294
+	* @return boolean distance is realistic
289 295
 	*/
290 296
 	public function withinThreshold ($timeDifference, $distance) {
291 297
 		$x = abs($timeDifference);
@@ -309,6 +315,9 @@  discard block
 block discarded – undo
309 315
 	}
310 316
 
311 317
 
318
+	/**
319
+	 * @param string $latlong
320
+	 */
312 321
 	public function convertDec($dms,$latlong) {
313 322
 		if ($latlong == 'latitude') {
314 323
 			$deg = substr($dms, 0, 2);
@@ -343,6 +352,9 @@  discard block
 block discarded – undo
343 352
 		return array('latitude' => round($latitude,5),'longitude' => round($longitude,5));
344 353
 	}
345 354
 	
355
+	/**
356
+	 * @param string $latlong
357
+	 */
346 358
 	public function convertDM($coord,$latlong) {
347 359
 		if ($latlong == 'latitude') {
348 360
 			if ($coord < 0) $NSEW = 'S';
@@ -480,7 +492,7 @@  discard block
 block discarded – undo
480 492
 	/**
481 493
 	* Returns list of available locales
482 494
 	*
483
-	* @return array
495
+	* @return string[]
484 496
 	 */
485 497
 	public function listLocaleDir()
486 498
 	{
Please login to merge, or discard this patch.
require/class.Connection.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@  discard block
 block discarded – undo
6 6
 	public $dbs = array();
7 7
 	public $latest_schema = 54;
8 8
 
9
+	/**
10
+	 * @param string $dbname
11
+	 */
9 12
 	public function __construct($dbc = null,$dbname = null,$user = null,$pass = null) {
10 13
 		global $globalNoDB;
11 14
 		if (isset($globalNoDB) && $globalNoDB === TRUE) {
@@ -142,6 +145,9 @@  discard block
 block discarded – undo
142 145
 		return true;
143 146
 	}
144 147
 
148
+	/**
149
+	 * @param string $table
150
+	 */
145 151
 	public function tableExists($table)
146 152
 	{
147 153
 		global $globalDBdriver, $globalDBname;
Please login to merge, or discard this patch.
require/class.Marine.php 1 patch
Doc Comments   +3 added lines, -21 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 	/**
15 15
 	* Get SQL query part for filter used
16 16
 	* @param Array $filter the filter
17
-	* @return Array the SQL part
17
+	* @return string the SQL part
18 18
 	*/
19 19
 	
20 20
 	public function getFilter($filter = array(),$where = false,$and = false) {
@@ -1003,25 +1003,6 @@  discard block
 block discarded – undo
1003 1003
 	*
1004 1004
 	* @param String $fammarine_id the ID
1005 1005
 	* @param String $ident the marine ident
1006
-	* @param String $departure_airport_icao the departure airport
1007
-	* @param String $arrival_airport_icao the arrival airport
1008
-	* @param String $latitude latitude of flight
1009
-	* @param String $longitude latitude of flight
1010
-	* @param String $waypoints waypoints of flight
1011
-	* @param String $heading heading of flight
1012
-	* @param String $groundspeed speed of flight
1013
-	* @param String $date date of flight
1014
-	* @param String $departure_airport_time departure time of flight
1015
-	* @param String $arrival_airport_time arrival time of flight
1016
-	* @param String $squawk squawk code of flight
1017
-	* @param String $route_stop route stop of flight
1018
-	* @param String $highlight highlight or not
1019
-	* @param String $ModeS ModesS code of flight
1020
-	* @param String $registration registration code of flight
1021
-	* @param String $pilot_id pilot id of flight (for virtual airlines)
1022
-	* @param String $pilot_name pilot name of flight (for virtual airlines)
1023
-	* @param String $verticalrate vertival rate of flight
1024
-	* @return String success or false
1025 1006
 	*/
1026 1007
 	public function addMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $mmsi = '',$type = '',$typeid = '',$imo = '',$callsign = '',$arrival_code = '',$arrival_date = '',$status = '',$statusid = '',$format_source = '', $source_name = '', $captain_id = '',$captain_name = '',$race_id = '', $race_name = '', $distance = '',$race_rank = '', $race_time = '')
1027 1008
 	{
@@ -1624,6 +1605,7 @@  discard block
 block discarded – undo
1624 1605
 	/**
1625 1606
 	* Counts all hours
1626 1607
 	*
1608
+	* @param string $orderby
1627 1609
 	* @return Array the hour list
1628 1610
 	*
1629 1611
 	*/
@@ -1975,7 +1957,7 @@  discard block
 block discarded – undo
1975 1957
 	/**
1976 1958
 	* Parses the direction degrees to working
1977 1959
 	*
1978
-	* @param Float $direction the direction in degrees
1960
+	* @param integer $direction the direction in degrees
1979 1961
 	* @return Array the direction information
1980 1962
 	*
1981 1963
 	*/
Please login to merge, or discard this patch.
require/class.MarineLive.php 1 patch
Doc Comments   +1 added lines, -5 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	/**
16 16
 	* Get SQL query part for filter used
17 17
 	* @param Array $filter the filter
18
-	* @return Array the SQL part
18
+	* @return string the SQL part
19 19
 	*/
20 20
 	public function getFilter($filter = array(),$where = false,$and = false) {
21 21
 		global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver;
@@ -923,10 +923,6 @@  discard block
 block discarded – undo
923 923
 	*
924 924
 	* @param String $fammarine_id the ID from flightaware
925 925
 	* @param String $ident the flight ident
926
-	* @param String $aircraft_icao the aircraft type
927
-	* @param String $departure_airport_icao the departure airport
928
-	* @param String $arrival_airport_icao the arrival airport
929
-	* @return String success or false
930 926
 	*
931 927
 	*/
932 928
 	public function addLiveMarineData($fammarine_id = '', $ident = '', $latitude = '', $longitude = '', $heading = '', $groundspeed = '', $date = '', $putinarchive = false, $mmsi = '',$type = '',$typeid = '',$imo = '', $callsign = '',$arrival_code = '',$arrival_date = '',$status = '',$statusid = '',$noarchive = false,$format_source = '', $source_name = '', $over_country = '',$captain_id = '',$captain_name = '',$race_id = '', $race_name = '', $distance = '', $race_rank = '', $race_time = '')
Please login to merge, or discard this patch.