Completed
Push — master ( 23805b...5c0366 )
by Yannick
31:36
created
require/class.Elevation.php 1 patch
Doc Comments   +11 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,6 +52,10 @@  discard block
 block discarded – undo
52 52
 		$this->openedFiles = [];
53 53
 	}
54 54
 
55
+	/**
56
+	 * @param double $row
57
+	 * @param double $column
58
+	 */
55 59
 	private function getElevationAtPosition($fileName, $row, $column) {
56 60
 		if (!array_key_exists($fileName, $this->openedFiles)) {
57 61
 			if (!file_exists($this->htgFilesDestination . DIRECTORY_SEPARATOR . $fileName)) {
@@ -85,7 +89,7 @@  discard block
 block discarded – undo
85 89
 	 * @param float $lon
86 90
 	 * @param null  $fName
87 91
 	 *
88
-	 * @return mixed
92
+	 * @return double
89 93
 	 * @throws \Exception
90 94
 	 */
91 95
 	public function getElevation($lat, $lon, &$fName = null) {
@@ -142,6 +146,9 @@  discard block
 block discarded – undo
142 146
 		return $zN;
143 147
 	}
144 148
 
149
+	/**
150
+	 * @param integer $numPrefix
151
+	 */
145 152
 	private function getDeg($deg, $numPrefix) {
146 153
 		$deg = abs($deg);
147 154
 		$d   = floor($deg);     // round degrees
@@ -156,6 +163,9 @@  discard block
 block discarded – undo
156 163
 		return $d;
157 164
 	}
158 165
 
166
+	/**
167
+	 * @param double $deg
168
+	 */
159 169
 	private function getSec($deg) {
160 170
 		$deg = abs($deg);
161 171
 		$sec = round($deg * 3600, 4);
Please login to merge, or discard this patch.
require/class.Common.php 1 patch
Doc Comments   +15 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,6 +90,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 	{
Please login to merge, or discard this patch.
require/class.GeoidHeight.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -91,6 +91,10 @@
 block discarded – undo
91 91
 		$this->rlatres = (($this->height - 1) / 180.0);
92 92
 	}
93 93
 
94
+	/**
95
+	 * @param integer $ix
96
+	 * @param integer $iy
97
+	 */
94 98
 	private function _rawval($ix,$iy) {
95 99
 		if (($iy < 0)) {
96 100
 			$iy = -$iy;
Please login to merge, or discard this patch.
require/class.APRS.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -165,6 +165,10 @@  discard block
 block discarded – undo
165 165
 	'\~' => 'TNC Stream SW');
166 166
 	
167 167
 
168
+    /**
169
+     * @param integer $n
170
+     * @param integer $s
171
+     */
168 172
     private function urshift($n, $s) {
169 173
 	return ($n >= 0) ? ($n >> $s) :
170 174
 	    (($n & 0x7fffffff) >> $s) | 
@@ -565,6 +569,9 @@  discard block
 block discarded – undo
565 569
 	socket_close($this->socket);
566 570
     }
567 571
     
572
+    /**
573
+     * @param string $data
574
+     */
568 575
     public function send($data) {
569 576
 	global $globalDebug;
570 577
 	if ($this->connected === false) $this->connect();
Please login to merge, or discard this patch.
require/class.ATC.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 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
 	public function getFilter($filter = array(),$where = false,$and = false) {
20 20
 		global $globalFilter, $globalStatsFilters, $globalFilterName;
Please login to merge, or discard this patch.
require/class.Language.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 	/**
71 71
 	* Returns list of available locales
72 72
 	*
73
-	* @return array
73
+	* @return string[]
74 74
 	*/
75 75
 	public function listLocaleDir()
76 76
 	{
Please login to merge, or discard this patch.
require/class.Translation.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -58,6 +58,10 @@  discard block
 block discarded – undo
58 58
 		} else return $ident;
59 59
 	}
60 60
 
61
+	/**
62
+	 * @param string $correct_ident
63
+	 * @param string $source
64
+	 */
61 65
 	public function addOperator($ident,$correct_ident,$source) {
62 66
 		$query = "INSERT INTO translation (Operator,Operator_correct,Source) VALUES (:ident,:correct_ident,:source)";
63 67
 		$query_values = array(':ident' => $ident,':correct_ident' => $correct_ident, ':source' => $source);
@@ -69,6 +73,10 @@  discard block
 block discarded – undo
69 73
 		}
70 74
 	}
71 75
 
76
+	/**
77
+	 * @param string $correct_ident
78
+	 * @param string $source
79
+	 */
72 80
 	public function updateOperator($ident,$correct_ident,$source) {
73 81
 		$query = "UPDATE translation SET Operator_correct = :correct_ident,Source = :source WHERE Operator = :ident";
74 82
 		$query_values = array(':ident' => $ident,':correct_ident' => $correct_ident, ':source' => $source);
Please login to merge, or discard this patch.
require/class.SpotterArchive.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 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
 	public function getFilter($filter = array(),$where = false,$and = false) {
20 20
 		global $globalFilter, $globalStatsFilters, $globalFilterName, $globalDBdriver;
Please login to merge, or discard this patch.
install/class.update_db.php 1 patch
Doc Comments   +48 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@  discard block
 block discarded – undo
10 10
 class update_db {
11 11
 	public static $db_sqlite;
12 12
 
13
+	/**
14
+	 * @param string $file
15
+	 */
13 16
 	public static function download($url, $file, $referer = '') {
14 17
 		global $globalProxy, $globalForceIPv4;
15 18
 		$fp = fopen($file, 'w');
@@ -34,6 +37,9 @@  discard block
 block discarded – undo
34 37
 		fclose($fp);
35 38
 	}
36 39
 
40
+	/**
41
+	 * @param string $in_file
42
+	 */
37 43
 	public static function gunzip($in_file,$out_file_name = '') {
38 44
 		//echo $in_file.' -> '.$out_file_name."\n";
39 45
 		$buffer_size = 4096; // read 4kb at a time
@@ -55,6 +61,9 @@  discard block
 block discarded – undo
55 61
 		}
56 62
 	}
57 63
 
64
+	/**
65
+	 * @param string $in_file
66
+	 */
58 67
 	public static function unzip($in_file) {
59 68
 		if ($in_file != '' && file_exists($in_file)) {
60 69
 			$path = pathinfo(realpath($in_file), PATHINFO_DIRNAME);
@@ -76,6 +85,9 @@  discard block
 block discarded – undo
76 85
 		}
77 86
 	}
78 87
 	
88
+	/**
89
+	 * @param string $database_file
90
+	 */
79 91
 	public static function retrieve_route_sqlite_to_dest($database_file) {
80 92
 		global $globalDebug, $globalTransaction;
81 93
 		//$query = 'TRUNCATE TABLE routes';
@@ -118,6 +130,10 @@  discard block
 block discarded – undo
118 130
 		}
119 131
                 return '';
120 132
 	}
133
+
134
+	/**
135
+	 * @param string $database_file
136
+	 */
121 137
 	public static function retrieve_route_oneworld($database_file) {
122 138
 		global $globalDebug, $globalTransaction;
123 139
 		//$query = 'TRUNCATE TABLE routes';
@@ -159,6 +175,9 @@  discard block
 block discarded – undo
159 175
                 return '';
160 176
 	}
161 177
 	
178
+	/**
179
+	 * @param string $database_file
180
+	 */
162 181
 	public static function retrieve_route_skyteam($database_file) {
163 182
 		global $globalDebug, $globalTransaction;
164 183
 		//$query = 'TRUNCATE TABLE routes';
@@ -201,6 +220,10 @@  discard block
 block discarded – undo
201 220
 		}
202 221
                 return '';
203 222
 	}
223
+
224
+	/**
225
+	 * @param string $database_file
226
+	 */
204 227
 	public static function retrieve_modes_sqlite_to_dest($database_file) {
205 228
 		global $globalTransaction;
206 229
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -267,6 +290,9 @@  discard block
 block discarded – undo
267 290
 		return '';
268 291
 	}
269 292
 
293
+	/**
294
+	 * @param string $database_file
295
+	 */
270 296
 	public static function retrieve_modes_flarmnet($database_file) {
271 297
 		global $globalTransaction;
272 298
 		$Common = new Common();
@@ -337,6 +363,9 @@  discard block
 block discarded – undo
337 363
 		return '';
338 364
 	}
339 365
 
366
+	/**
367
+	 * @param string $database_file
368
+	 */
340 369
 	public static function retrieve_modes_ogn($database_file) {
341 370
 		global $globalTransaction;
342 371
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -406,6 +435,9 @@  discard block
 block discarded – undo
406 435
 		return '';
407 436
 	}
408 437
 
438
+	/**
439
+	 * @param string $database_file
440
+	 */
409 441
 	public static function retrieve_owner($database_file,$country = 'F') {
410 442
 		global $globalTransaction, $globalMasterSource;
411 443
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -1393,6 +1425,10 @@  discard block
 block discarded – undo
1393 1425
 		return '';
1394 1426
         }
1395 1427
 
1428
+	/**
1429
+	 * @param string $filename
1430
+	 * @param string $tletype
1431
+	 */
1396 1432
 	public static function tle($filename,$tletype) {
1397 1433
 		require_once(dirname(__FILE__).'/../require/class.Spotter.php');
1398 1434
 		global $tmp_dir, $globalTransaction;
@@ -1442,6 +1478,9 @@  discard block
 block discarded – undo
1442 1478
 		return '';
1443 1479
         }
1444 1480
 
1481
+	/**
1482
+	 * @param string $filename
1483
+	 */
1445 1484
 	public static function satellite_ucsdb($filename) {
1446 1485
 		global $tmp_dir, $globalTransaction;
1447 1486
 		$query = "DELETE FROM satellite";
@@ -1488,6 +1527,9 @@  discard block
 block discarded – undo
1488 1527
 		return '';
1489 1528
 	}
1490 1529
 
1530
+	/**
1531
+	 * @param string $filename
1532
+	 */
1491 1533
 	public static function satellite_celestrak($filename) {
1492 1534
 		global $tmp_dir, $globalTransaction;
1493 1535
 		$satcat_sources = array(
@@ -1815,6 +1857,9 @@  discard block
 block discarded – undo
1815 1857
 
1816 1858
 	}
1817 1859
 */
1860
+	/**
1861
+	 * @param string $filename
1862
+	 */
1818 1863
 	public static function waypoints($filename) {
1819 1864
 		//require_once(dirname(__FILE__).'/../require/class.Spotter.php');
1820 1865
 		global $tmp_dir, $globalTransaction;
@@ -1883,6 +1928,9 @@  discard block
 block discarded – undo
1883 1928
 		}
1884 1929
 	}
1885 1930
 
1931
+	/**
1932
+	 * @param string $filename
1933
+	 */
1886 1934
 	public static function ivao_airlines($filename) {
1887 1935
 		//require_once(dirname(__FILE__).'/../require/class.Spotter.php');
1888 1936
 		global $tmp_dir, $globalTransaction;
Please login to merge, or discard this patch.