Completed
Push — master ( 73f088...7f17b6 )
by Yannick
07:13
created
install/class.create_db.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -3,6 +3,10 @@
 block discarded – undo
3 3
 require_once(dirname(__FILE__).'/../require/class.Connection.php');
4 4
 
5 5
 class create_db {
6
+
7
+	/**
8
+	 * @param string $filename
9
+	 */
6 10
 	public static function import_file($filename) {
7 11
 		$filename = filter_var($filename,FILTER_SANITIZE_STRING);
8 12
 		$Connection = new Connection();
Please login to merge, or discard this patch.
install/class.update_db.php 1 patch
Doc Comments   +31 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
 		$fp = fopen($file, 'w+');
15 18
 		$ch = curl_init();
@@ -23,6 +26,9 @@  discard block
 block discarded – undo
23 26
 		curl_close($ch);
24 27
 	}
25 28
 
29
+	/**
30
+	 * @param string $in_file
31
+	 */
26 32
 	public static function gunzip($in_file,$out_file_name = '') {
27 33
 		//echo $in_file.' -> '.$out_file_name."\n";
28 34
 		$buffer_size = 4096; // read 4kb at a time
@@ -40,6 +46,9 @@  discard block
 block discarded – undo
40 46
 		}
41 47
 	}
42 48
 
49
+	/**
50
+	 * @param string $in_file
51
+	 */
43 52
 	public static function unzip($in_file) {
44 53
 		if ($in_file != '' && file_exists($in_file)) {
45 54
 			$path = pathinfo(realpath($in_file), PATHINFO_DIRNAME);
@@ -61,6 +70,9 @@  discard block
 block discarded – undo
61 70
 		}
62 71
 	}
63 72
 	
73
+	/**
74
+	 * @param string $database_file
75
+	 */
64 76
 	public static function retrieve_route_sqlite_to_dest($database_file) {
65 77
 		global $globalDebug, $globalTransaction;
66 78
 		//$query = 'TRUNCATE TABLE routes';
@@ -103,6 +115,10 @@  discard block
 block discarded – undo
103 115
 		}
104 116
                 return '';
105 117
 	}
118
+
119
+	/**
120
+	 * @param string $database_file
121
+	 */
106 122
 	public static function retrieve_modes_sqlite_to_dest($database_file) {
107 123
 		global $globalTransaction;
108 124
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -168,6 +184,9 @@  discard block
 block discarded – undo
168 184
 		return '';
169 185
 	}
170 186
 
187
+	/**
188
+	 * @param string $database_file
189
+	 */
171 190
 	public static function retrieve_modes_flarmnet($database_file) {
172 191
 		global $globalTransaction;
173 192
 		$Common = new Common();
@@ -237,6 +256,9 @@  discard block
 block discarded – undo
237 256
 		return '';
238 257
 	}
239 258
 
259
+	/**
260
+	 * @param string $database_file
261
+	 */
240 262
 	public static function retrieve_modes_ogn($database_file) {
241 263
 		global $globalTransaction;
242 264
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -305,6 +327,9 @@  discard block
 block discarded – undo
305 327
 		return '';
306 328
 	}
307 329
 
330
+	/**
331
+	 * @param string $database_file
332
+	 */
308 333
 	public static function retrieve_owner($database_file,$country = 'F') {
309 334
 		global $globalTransaction;
310 335
 		//$query = 'TRUNCATE TABLE aircraft_modes';
@@ -937,6 +962,9 @@  discard block
 block discarded – undo
937 962
 
938 963
 	}
939 964
 */
965
+	/**
966
+	 * @param string $filename
967
+	 */
940 968
 	public static function waypoints($filename) {
941 969
 		//require_once(dirname(__FILE__).'/../require/class.Spotter.php');
942 970
 		global $tmp_dir, $globalTransaction;
@@ -993,6 +1021,9 @@  discard block
 block discarded – undo
993 1021
 		return '';
994 1022
         }
995 1023
 
1024
+	/**
1025
+	 * @param string $filename
1026
+	 */
996 1027
 	public static function ivao_airlines($filename) {
997 1028
 		//require_once(dirname(__FILE__).'/../require/class.Spotter.php');
998 1029
 		global $tmp_dir, $globalTransaction;
Please login to merge, or discard this patch.
install/libs/sparqllib.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@  discard block
 block discarded – undo
13 13
 function sparql_connect( $endpoint ) { return new sparql_connection( $endpoint ); }
14 14
 
15 15
 function sparql_ns( $short, $long, $db = null ) { return _sparql_a_connection( $db )->ns( $short, $long ); }
16
+/**
17
+ * @param string $sparql
18
+ */
16 19
 function sparql_query( $sparql, $db = null ) { return _sparql_a_connection( $db )->query( $sparql ); }
17 20
 function sparql_errno( $db = null ) { return _sparql_a_connection( $db )->errno(); }
18 21
 function sparql_error( $db = null ) { return _sparql_a_connection( $db )->error(); }
@@ -84,6 +87,9 @@  discard block
 block discarded – undo
84 87
 		$this->params = $params;
85 88
 	}
86 89
 
90
+	/**
91
+	 * @param integer $timeout
92
+	 */
87 93
 	function query( $query, $timeout=null )
88 94
 	{	
89 95
 		$prefixes = "";
@@ -324,6 +330,10 @@  discard block
 block discarded – undo
324 330
 	var $fields;
325 331
 	var $db;
326 332
 	var $i = 0;
333
+
334
+	/**
335
+	 * @param sparql_connection $db
336
+	 */
327 337
 	function __construct( $db, $rows, $fields )
328 338
 	{
329 339
 		$this->rows = $rows;
Please login to merge, or discard this patch.
require/class.ACARS.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -809,8 +809,6 @@
 block discarded – undo
809 809
 	/**
810 810
 	* Get Message title from label from DB
811 811
 	*
812
-	* @param String $ident
813
-	* @return Array Return ACARS data in array
814 812
 	*/
815 813
 	public function getTitlefromLabel($label) {
816 814
 		$Connection = new Connection($this->db);
Please login to merge, or discard this patch.
require/class.APRS.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -1,5 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 class aprs {
3
+
4
+    /**
5
+     * @param integer $n
6
+     * @param integer $s
7
+     */
3 8
     private function urshift($n, $s) {
4 9
 	return ($n >= 0) ? ($n >> $s) :
5 10
     	    (($n & 0x7fffffff) >> $s) | 
Please login to merge, or discard this patch.
require/class.Common.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
 	* Check is distance realistic
161 161
 	* @param int $timeDifference the time between the reception of both messages
162 162
 	* @param float $distance distance covered
163
-	* @return whether distance is realistic
163
+	* @return boolean distance is realistic
164 164
 	*/
165 165
 	public function withinThreshold ($timeDifference, $distance) {
166 166
 		$x = abs($timeDifference);
@@ -183,6 +183,9 @@  discard block
 block discarded – undo
183 183
 	}
184 184
 
185 185
 
186
+	/**
187
+	 * @param string $latlong
188
+	 */
186 189
 	public function convertDec($dms,$latlong) {
187 190
 		if ($latlong == 'latitude') {
188 191
 			$deg = substr($dms, 0, 2);
@@ -274,7 +277,7 @@  discard block
 block discarded – undo
274 277
 	/**
275 278
 	* Returns list of available locales
276 279
 	*
277
-	* @return array
280
+	* @return string[]
278 281
 	 */
279 282
 	public function listLocaleDir()
280 283
 	{
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 = 23;
8 8
 	
9
+	/**
10
+	 * @param string $dbname
11
+	 */
9 12
 	public function __construct($dbc = null,$dbname = null) {
10 13
 	    global $globalDBdriver;
11 14
 	    if ($dbc === null) {
@@ -102,6 +105,9 @@  discard block
 block discarded – undo
102 105
 		return true;
103 106
 	}
104 107
 
108
+	/**
109
+	 * @param string $table
110
+	 */
105 111
 	public function tableExists($table)
106 112
 	{
107 113
 		global $globalDBdriver, $globalDBname;
Please login to merge, or discard this patch.
require/class.Image.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -327,6 +327,9 @@
 block discarded – undo
327 327
     }
328 328
 
329 329
 
330
+    /**
331
+     * @param string $aircraft_icao
332
+     */
330 333
     public function fromIvaoMtl($aircraft_icao,$airline_icao) {
331 334
 	$Common = new Common();
332 335
 	//echo "\n".'SEARCH IMAGE : http://mtlcatalog.ivao.aero/images/aircraft/'.$aircraft_icao.$airline_icao.'.jpg';
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
@@ -77,7 +77,7 @@
 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
 	{
Please login to merge, or discard this patch.