Completed
Branch master (3f174d)
by Yannick
13:43
created
require/class.NOTAM.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -725,6 +725,10 @@
 block discarded – undo
725 725
 		return $all;
726 726
 	}
727 727
 
728
+	/**
729
+	 * @param string $type
730
+	 * @param string $rules
731
+	 */
728 732
 	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) {
729 733
 		$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)";
730 734
 		$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);
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.Spotter.php 1 patch
Doc Comments   +6 added lines, -16 removed lines patch added patch discarded remove patch
@@ -16,8 +16,6 @@  discard block
 block discarded – undo
16 16
 	* Executes the SQL statements to get the spotter information
17 17
 	*
18 18
 	* @param String $query the SQL query
19
-	* @param String $limit the limit query
20
-	* @return Array the spotter information
21 19
 	*
22 20
 	*/
23 21
 	public function getDataFromDB($query, $params = array(), $limitQuery = '')
@@ -1524,9 +1522,6 @@  discard block
 block discarded – undo
1524 1522
     /**
1525 1523
 	* Gets a list of all aircraft with a special highlight text
1526 1524
 	*
1527
-	* @param String $aircraft_registration the aircraft registration
1528
-	* @param String $airport_departure the departure airport
1529
-	* @return Array the spotter information
1530 1525
 	*
1531 1526
 	*/
1532 1527
 	public function getSpotterDataByRoute($departure_airport_icao = '', $arrival_airport_icao = '', $limit = '', $sort = '')
@@ -1751,7 +1746,7 @@  discard block
 block discarded – undo
1751 1746
 	/**
1752 1747
 	* Gets the airport info based on the icao
1753 1748
 	*
1754
-	* @param String $airport_iata the icao code of the airport
1749
+	* @param String $airport the icao code of the airport
1755 1750
 	* @return Array airport information
1756 1751
 	*
1757 1752
 	*/
@@ -2005,7 +2000,7 @@  discard block
 block discarded – undo
2005 2000
 	/**
2006 2001
 	* Gets the aircraft info based on the aircraft ident
2007 2002
 	*
2008
-	* @param String $aircraft_ident the aircraft ident (hex)
2003
+	* @param String $aircraft_modes the aircraft ident (hex)
2009 2004
 	* @return String aircraft type
2010 2005
 	*
2011 2006
 	*/
@@ -2070,7 +2065,7 @@  discard block
 block discarded – undo
2070 2065
 	/**
2071 2066
 	* Gets the aircraft info based on the aircraft registration
2072 2067
 	*
2073
-	* @param String $aircraft_registration the aircraft registration
2068
+	* @param string $registration the aircraft registration
2074 2069
 	* @return Array aircraft information
2075 2070
 	*
2076 2071
 	*/
@@ -2102,7 +2097,7 @@  discard block
 block discarded – undo
2102 2097
 	/**
2103 2098
 	* Gets the aircraft owner & base based on the aircraft registration
2104 2099
 	*
2105
-	* @param String $aircraft_registration the aircraft registration
2100
+	* @param String $registration the aircraft registration
2106 2101
 	* @return Array aircraft information
2107 2102
 	*
2108 2103
 	*/
@@ -2875,10 +2870,6 @@  discard block
 block discarded – undo
2875 2870
 	*
2876 2871
 	* @param String $flightaware_id the ID from flightaware
2877 2872
 	* @param String $ident the flight ident
2878
-	* @param String $aircraft_icao the aircraft type
2879
-	* @param String $departure_airport_icao the departure airport
2880
-	* @param String $arrival_airport_icao the arrival airport
2881
-	* @return String success or false
2882 2873
 	*
2883 2874
 	*/	
2884 2875
 	public function updateLatestSpotterData($flightaware_id = '', $ident = '', $latitude = '', $longitude = '', $altitude = '', $ground = false, $groundspeed = NULL, $date = '', $arrival_airport_icao = '',$arrival_airport_time = '')
@@ -7531,6 +7522,7 @@  discard block
 block discarded – undo
7531 7522
 	/**
7532 7523
 	* Counts all hours
7533 7524
 	*
7525
+	* @param string $orderby
7534 7526
 	* @return Array the hour list
7535 7527
 	*
7536 7528
 	*/
@@ -8343,7 +8335,7 @@  discard block
 block discarded – undo
8343 8335
 	/**
8344 8336
 	* Parses the direction degrees to working
8345 8337
 	*
8346
-	* @param Float $direction the direction in degrees
8338
+	* @param integer $direction the direction in degrees
8347 8339
 	* @return Array the direction information
8348 8340
 	*
8349 8341
 	*/
@@ -8511,8 +8503,6 @@  discard block
 block discarded – undo
8511 8503
 	/**
8512 8504
 	* Gets Countrie from latitude/longitude
8513 8505
 	*
8514
-	* @param String $aircraft_modes the flight ModeS in hex
8515
-	* @return String the aircraft registration
8516 8506
 	*
8517 8507
 	*/
8518 8508
 	
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.Stats.php 1 patch
Doc Comments   +36 added lines patch added patch discarded remove patch
@@ -13,6 +13,10 @@  discard block
 block discarded – undo
13 13
 		$this->db = $Connection->db;
14 14
         }
15 15
               
16
+	/**
17
+	 * @param string $type
18
+	 * @param string $stats_date
19
+	 */
16 20
 	public function addLastStatsUpdate($type,$stats_date) {
17 21
                 $query = "DELETE FROM config WHERE name = :type;
18 22
             		INSERT INTO config (name,value) VALUES (:type,:stats_date);";
@@ -521,6 +525,10 @@  discard block
 block discarded – undo
521 525
                 $all = $sth->fetchAll(PDO::FETCH_ASSOC);
522 526
                 return $all;
523 527
 	}
528
+
529
+	/**
530
+	 * @param string $type
531
+	 */
524 532
 	public function getStats($type) {
525 533
                 $query = "SELECT * FROM stats WHERE stats_type = :type ORDER BY stats_date";
526 534
                 $query_values = array(':type' => $type);
@@ -533,6 +541,11 @@  discard block
 block discarded – undo
533 541
                 $all = $sth->fetchAll(PDO::FETCH_ASSOC);
534 542
                 return $all;
535 543
         }
544
+
545
+	/**
546
+	 * @param string $type
547
+	 * @param string $year
548
+	 */
536 549
 	public function getSumStats($type,$year) {
537 550
     		global $globalArchiveMonths, $globalDBdriver;
538 551
     		if ($globalDBdriver == 'mysql') {
@@ -632,6 +645,10 @@  discard block
 block discarded – undo
632 645
                 return $all[0]['total'];
633 646
         }
634 647
 
648
+	/**
649
+	 * @param string $type
650
+	 * @param string $stats_date
651
+	 */
635 652
 	public function addStat($type,$cnt,$stats_date) {
636 653
 		global $globalDBdriver;
637 654
 		if ($globalDBdriver == 'mysql') {
@@ -663,6 +680,10 @@  discard block
 block discarded – undo
663 680
                         return "error : ".$e->getMessage();
664 681
                 }
665 682
         }
683
+
684
+	/**
685
+	 * @param string $date
686
+	 */
666 687
 	public function getStatsSource($date,$stats_type = '') {
667 688
 		if ($stats_type == '') {
668 689
 			$query = "SELECT * FROM stats_source WHERE stats_date = :date ORDER BY source_name";
@@ -681,6 +702,9 @@  discard block
 block discarded – undo
681 702
                 return $all;
682 703
         }
683 704
 
705
+	/**
706
+	 * @param string $stats_type
707
+	 */
684 708
 	public function addStatSource($data,$source_name,$stats_type,$date) {
685 709
 		global $globalDBdriver;
686 710
 		if ($globalDBdriver == 'mysql') {
@@ -696,6 +720,10 @@  discard block
 block discarded – undo
696 720
                         return "error : ".$e->getMessage();
697 721
                 }
698 722
         }
723
+
724
+	/**
725
+	 * @param string $type
726
+	 */
699 727
 	public function addStatFlight($type,$date_name,$cnt) {
700 728
                 $query = "INSERT INTO stats_flight (stats_type,flight_date,cnt) VALUES (:type,:flight_date,:cnt)";
701 729
                 $query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt);
@@ -882,6 +910,10 @@  discard block
 block discarded – undo
882 910
                         return "error : ".$e->getMessage();
883 911
                 }
884 912
         }
913
+
914
+	/**
915
+	 * @param string $type
916
+	 */
885 917
 	public function deleteStatFlight($type) {
886 918
                 $query = "DELETE FROM stats_flight WHERE stats_type = :type";
887 919
                 $query_values = array(':type' => $type);
@@ -892,6 +924,10 @@  discard block
 block discarded – undo
892 924
                         return "error : ".$e->getMessage();
893 925
                 }
894 926
         }
927
+
928
+	/**
929
+	 * @param string $type
930
+	 */
895 931
 	public function deleteStatAirport($type) {
896 932
                 $query = "DELETE FROM stats_airport WHERE stats_type = :type";
897 933
                 $query_values = array(':type' => $type);
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.
require/libs/geoPHP/lib/adapters/GeoJSON.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -113,7 +113,6 @@  discard block
 block discarded – undo
113 113
    * Serializes an object into a geojson string
114 114
    *
115 115
    *
116
-   * @param Geometry $obj The object to serialize
117 116
    *
118 117
    * @return string The GeoJSON string
119 118
    */
@@ -126,6 +125,9 @@  discard block
 block discarded – undo
126 125
     }
127 126
   }
128 127
 
128
+  /**
129
+   * @param Geometry $geometry
130
+   */
129 131
   public function getArray($geometry) {
130 132
     if ($geometry->getGeomType() == 'GeometryCollection') {
131 133
       $component_array = array();
Please login to merge, or discard this patch.
require/libs/geoPHP/lib/adapters/GeoRSS.class.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,6 @@  discard block
 block discarded – undo
18 18
   /**
19 19
    * Read GeoRSS string into geometry objects
20 20
    *
21
-   * @param string $georss - an XML feed containing geoRSS
22
-   *
23 21
    * @return Geometry|GeometryCollection
24 22
    */
25 23
   public function read($gpx) {
@@ -80,6 +78,9 @@  discard block
 block discarded – undo
80 78
     return geoPHP::geometryReduce($geometries); 
81 79
   }
82 80
   
81
+  /**
82
+   * @param string $string
83
+   */
83 84
   protected function getPointsFromCoords($string) {
84 85
     $coords = array();
85 86
     $latlon = explode(' ',$string);
Please login to merge, or discard this patch.