Completed
Push — master ( 1fed4c...6bbecb )
by Yannick
05:53
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/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.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.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.
require/class.SBS.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -178,6 +178,10 @@  discard block
 block discarded – undo
178 178
 	return 1;
179 179
     }
180 180
     
181
+    /**
182
+     * @param double $lat
183
+     * @param integer $isodd
184
+     */
181 185
     function cprN($lat,$isodd) {
182 186
 	$nl = $this->cprNL($lat) - $isodd;
183 187
 	if ($nl > 1) return $nl;
@@ -185,6 +189,10 @@  discard block
 block discarded – undo
185 189
     }
186 190
 
187 191
 
192
+    /**
193
+     * @param string $msg
194
+     * @param string $bin
195
+     */
188 196
     function parityCheck($msg, $bin) {
189 197
 $modes_checksum_table = array(
190 198
 0x3935ea, 0x1c9af5, 0xf1b77e, 0x78dbbf, 0xc397db, 0x9e31e9, 0xb0e2f0, 0x587178,
Please login to merge, or discard this patch.
require/class.SpotterImport.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -40,6 +40,10 @@
 block discarded – undo
40 40
 	}
41 41
     }
42 42
 
43
+    /**
44
+     * @param string $id
45
+     * @param string $ident
46
+     */
43 47
     function get_Schedule($id,$ident) {
44 48
 	global $globalDebug, $globalFork, $globalSchedulesFetch;
45 49
 	// Get schedule here, so it's done only one time
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/libs/geoPHP/geoPHP.inc 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -118,6 +118,9 @@  discard block
 block discarded – undo
118 118
     );
119 119
   }
120 120
 
121
+  /**
122
+   * @param boolean $force
123
+   */
121 124
   static function geosInstalled($force = NULL) {
122 125
     static $geos_installed = NULL;
123 126
     if ($force !== NULL) $geos_installed = $force;
@@ -222,6 +225,10 @@  discard block
 block discarded – undo
222 225
 
223 226
   // Detect a format given a value. This function is meant to be SPEEDY.
224 227
   // It could make a mistake in XML detection if you are mixing or using namespaces in weird ways (ie, KML inside an RSS feed)
228
+
229
+  /**
230
+   * @return string
231
+   */
225 232
   static function detectFormat(&$input) {
226 233
     $mem = fopen('php://memory', 'r+');
227 234
     fwrite($mem, $input, 11); // Write 11 bytes - we can detect the vast majority of formats in the first 11 bytes
Please login to merge, or discard this patch.