Completed
Push — master ( 46434e...ad133e )
by Yannick
32:08 queued 16:03
created
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
     public 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/libs/simple_html_dom.php 1 patch
Doc Comments   +40 added lines patch added patch discarded remove patch
@@ -125,6 +125,9 @@  discard block
 block discarded – undo
125 125
 	public $tag_start = 0;
126 126
 	private $dom = null;
127 127
 
128
+	/**
129
+	 * @param simple_html_dom $dom
130
+	 */
128 131
 	function __construct($dom)
129 132
 	{
130 133
 		$this->dom = $dom;
@@ -1501,6 +1504,11 @@  discard block
 block discarded – undo
1501 1504
 	}
1502 1505
 
1503 1506
 	// parse attributes
1507
+
1508
+	/**
1509
+	 * @param simple_html_dom_node $node
1510
+	 * @param string[] $space
1511
+	 */
1504 1512
 	protected function parse_attr($node, $name, &$space)
1505 1513
 	{
1506 1514
 		// Per sourceforge: http://sourceforge.net/tracker/?func=detail&aid=3061408&group_id=218559&atid=1044037
@@ -1538,6 +1546,11 @@  discard block
 block discarded – undo
1538 1546
 	}
1539 1547
 
1540 1548
 	// link node's parent
1549
+
1550
+	/**
1551
+	 * @param simple_html_dom_node $node
1552
+	 * @param boolean $is_child
1553
+	 */
1541 1554
 	protected function link_nodes(&$node, $is_child)
1542 1555
 	{
1543 1556
 		$node->parent = $this->parent;
@@ -1549,6 +1562,10 @@  discard block
 block discarded – undo
1549 1562
 	}
1550 1563
 
1551 1564
 	// as a text node
1565
+
1566
+	/**
1567
+	 * @param string $tag
1568
+	 */
1552 1569
 	protected function as_text_node($tag)
1553 1570
 	{
1554 1571
 		$node = new simple_html_dom_node($this);
@@ -1559,12 +1576,18 @@  discard block
 block discarded – undo
1559 1576
 		return true;
1560 1577
 	}
1561 1578
 
1579
+	/**
1580
+	 * @param string $chars
1581
+	 */
1562 1582
 	protected function skip($chars)
1563 1583
 	{
1564 1584
 		$this->pos += strspn($this->doc, $chars, $this->pos);
1565 1585
 		$this->char = ($this->pos<$this->size) ? $this->doc[$this->pos] : null; // next
1566 1586
 	}
1567 1587
 
1588
+	/**
1589
+	 * @param string $chars
1590
+	 */
1568 1591
 	protected function copy_skip($chars)
1569 1592
 	{
1570 1593
 		$pos = $this->pos;
@@ -1575,6 +1598,9 @@  discard block
 block discarded – undo
1575 1598
 		return substr($this->doc, $pos, $len);
1576 1599
 	}
1577 1600
 
1601
+	/**
1602
+	 * @param string $chars
1603
+	 */
1578 1604
 	protected function copy_until($chars)
1579 1605
 	{
1580 1606
 		$pos = $this->pos;
@@ -1584,6 +1610,9 @@  discard block
 block discarded – undo
1584 1610
 		return substr($this->doc, $pos, $len);
1585 1611
 	}
1586 1612
 
1613
+	/**
1614
+	 * @param string $char
1615
+	 */
1587 1616
 	protected function copy_until_char($char)
1588 1617
 	{
1589 1618
 		if ($this->char===null) return '';
@@ -1602,6 +1631,9 @@  discard block
 block discarded – undo
1602 1631
 		return substr($this->doc, $pos_old, $pos-$pos_old);
1603 1632
 	}
1604 1633
 
1634
+	/**
1635
+	 * @param string $char
1636
+	 */
1605 1637
 	protected function copy_until_char_escape($char)
1606 1638
 	{
1607 1639
 		if ($this->char===null) return '';
@@ -1633,6 +1665,10 @@  discard block
 block discarded – undo
1633 1665
 
1634 1666
 	// remove noise from html content
1635 1667
 	// save the noise in the $this->noise array.
1668
+
1669
+	/**
1670
+	 * @param string $pattern
1671
+	 */
1636 1672
 	protected function remove_noise($pattern, $remove_tag=false)
1637 1673
 	{
1638 1674
 		global $debug_object;
@@ -1658,6 +1694,10 @@  discard block
 block discarded – undo
1658 1694
 	}
1659 1695
 
1660 1696
 	// restore noise to html content
1697
+
1698
+	/**
1699
+	 * @param string|null $text
1700
+	 */
1661 1701
 	function restore_noise($text)
1662 1702
 	{
1663 1703
 		global $debug_object;
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.Stats.php 1 patch
Doc Comments   +51 added lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@  discard block
 block discarded – undo
21 21
 		if ($this->db === null) die('Error: No DB connection. (Stats)');
22 22
 	}
23 23
 
24
+	/**
25
+	 * @param string $type
26
+	 * @param string $stats_date
27
+	 */
24 28
 	public function addLastStatsUpdate($type,$stats_date) {
25 29
 		$query = "DELETE FROM config WHERE name = :type;
26 30
 			    INSERT INTO config (name,value) VALUES (:type,:stats_date);";
@@ -1415,6 +1419,10 @@  discard block
 block discarded – undo
1415 1419
 		$all = $sth->fetchAll(PDO::FETCH_ASSOC);
1416 1420
 		return $all;
1417 1421
 	}
1422
+
1423
+	/**
1424
+	 * @param string $type
1425
+	 */
1418 1426
 	public function deleteStatsByType($type,$stats_airline = '', $filter_name = '') {
1419 1427
 		if ($filter_name == '') $filter_name = $this->filter_name;
1420 1428
 		$query = "DELETE FROM stats WHERE stats_type = :type AND stats_airline = :stats_airline AND filter_name = :filter_name";
@@ -1426,6 +1434,11 @@  discard block
 block discarded – undo
1426 1434
 			echo "error : ".$e->getMessage();
1427 1435
 		}
1428 1436
 	}
1437
+
1438
+	/**
1439
+	 * @param string $type
1440
+	 * @param string $year
1441
+	 */
1429 1442
 	public function getSumStats($type,$year,$stats_airline = '',$filter_name = '',$month = '') {
1430 1443
 		if ($filter_name == '') $filter_name = $this->filter_name;
1431 1444
 		global $globalArchiveMonths, $globalDBdriver;
@@ -1625,6 +1638,10 @@  discard block
 block discarded – undo
1625 1638
 		else return 0;
1626 1639
 	}
1627 1640
 
1641
+	/**
1642
+	 * @param string $type
1643
+	 * @param string $stats_date
1644
+	 */
1628 1645
 	public function addStat($type,$cnt,$stats_date,$stats_airline = '',$filter_name = '') {
1629 1646
 		global $globalDBdriver;
1630 1647
 		if ($filter_name == '') $filter_name = $this->filter_name;
@@ -1678,6 +1695,9 @@  discard block
 block discarded – undo
1678 1695
         }
1679 1696
         */
1680 1697
 
1698
+	/**
1699
+	 * @param string $stats_type
1700
+	 */
1681 1701
 	public function getStatsSource($stats_type,$year = '',$month = '',$day = '') {
1682 1702
 		global $globalDBdriver;
1683 1703
 		$query = "SELECT * FROM stats_source WHERE stats_type = :stats_type";
@@ -1721,6 +1741,9 @@  discard block
 block discarded – undo
1721 1741
 		return $all;
1722 1742
 	}
1723 1743
 
1744
+	/**
1745
+	 * @param string $stats_type
1746
+	 */
1724 1747
 	public function addStatSource($data,$source_name,$stats_type,$date) {
1725 1748
 		global $globalDBdriver;
1726 1749
 		if ($globalDBdriver == 'mysql') {
@@ -1736,6 +1759,10 @@  discard block
 block discarded – undo
1736 1759
 			return "error : ".$e->getMessage();
1737 1760
 		}
1738 1761
 	}
1762
+
1763
+	/**
1764
+	 * @param string $type
1765
+	 */
1739 1766
 	public function addStatFlight($type,$date_name,$cnt,$stats_airline = '',$filter_name = '') {
1740 1767
 		$query = "INSERT INTO stats_flight (stats_type,flight_date,cnt,stats_airline,filter_name) VALUES (:type,:flight_date,:cnt,:stats_airline,:filter_name)";
1741 1768
 		$query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt, ':stats_airline' => $stats_airline,':filter_name' => $filter_name);
@@ -1746,6 +1773,10 @@  discard block
 block discarded – undo
1746 1773
 			return "error : ".$e->getMessage();
1747 1774
 		}
1748 1775
 	}
1776
+
1777
+	/**
1778
+	 * @param string $type
1779
+	 */
1749 1780
 	public function addStatMarine($type,$date_name,$cnt,$filter_name = '') {
1750 1781
 		$query = "INSERT INTO stats_marine (stats_type,marine_date,cnt,filter_name) VALUES (:type,:flight_date,:cnt,:filter_name)";
1751 1782
 		$query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt,':filter_name' => $filter_name);
@@ -1756,6 +1787,10 @@  discard block
 block discarded – undo
1756 1787
 			return "error : ".$e->getMessage();
1757 1788
 		}
1758 1789
 	}
1790
+
1791
+	/**
1792
+	 * @param string $type
1793
+	 */
1759 1794
 	public function addStatTracker($type,$date_name,$cnt,$filter_name = '') {
1760 1795
 		$query = "INSERT INTO stats_tracker (stats_type,tracker_date,cnt,filter_name) VALUES (:type,:flight_date,:cnt,:filter_name)";
1761 1796
 		$query_values = array(':type' => $type,':flight_date' => $date_name,':cnt' => $cnt,':filter_name' => $filter_name);
@@ -2068,6 +2103,10 @@  discard block
 block discarded – undo
2068 2103
 			return "error : ".$e->getMessage();
2069 2104
 		}
2070 2105
 	}
2106
+
2107
+	/**
2108
+	 * @param string $type
2109
+	 */
2071 2110
 	public function deleteStatFlight($type) {
2072 2111
 		$query = "DELETE FROM stats_flight WHERE stats_type = :type";
2073 2112
 		$query_values = array(':type' => $type);
@@ -2078,6 +2117,10 @@  discard block
 block discarded – undo
2078 2117
 			return "error : ".$e->getMessage();
2079 2118
 		}
2080 2119
 	}
2120
+
2121
+	/**
2122
+	 * @param string $type
2123
+	 */
2081 2124
 	public function deleteStatMarine($type) {
2082 2125
 		$query = "DELETE FROM stats_marine WHERE stats_type = :type";
2083 2126
 		$query_values = array(':type' => $type);
@@ -2088,6 +2131,10 @@  discard block
 block discarded – undo
2088 2131
 			return "error : ".$e->getMessage();
2089 2132
 		}
2090 2133
 	}
2134
+
2135
+	/**
2136
+	 * @param string $type
2137
+	 */
2091 2138
 	public function deleteStatTracker($type) {
2092 2139
 		$query = "DELETE FROM stats_tracker WHERE stats_type = :type";
2093 2140
 		$query_values = array(':type' => $type);
@@ -2098,6 +2145,10 @@  discard block
 block discarded – undo
2098 2145
 			return "error : ".$e->getMessage();
2099 2146
 		}
2100 2147
 	}
2148
+
2149
+	/**
2150
+	 * @param string $type
2151
+	 */
2101 2152
 	public function deleteStatAirport($type) {
2102 2153
 		$query = "DELETE FROM stats_airport WHERE stats_type = :type";
2103 2154
 		$query_values = array(':type' => $type);
Please login to merge, or discard this patch.
require/libs/SimplePie.compiled.php 1 patch
Doc Comments   +75 added lines, -21 removed lines patch added patch discarded remove patch
@@ -2760,7 +2760,7 @@  discard block
 block discarded – undo
2760 2760
 	 * @since 1.0
2761 2761
 	 * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo
2762 2762
 	 * @link http://www.georss.org/ GeoRSS
2763
-	 * @return string|null
2763
+	 * @return double|null
2764 2764
 	 */
2765 2765
 	public function get_latitude()
2766 2766
 	{
@@ -2789,7 +2789,7 @@  discard block
 block discarded – undo
2789 2789
 	 * @since 1.0
2790 2790
 	 * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo
2791 2791
 	 * @link http://www.georss.org/ GeoRSS
2792
-	 * @return string|null
2792
+	 * @return double|null
2793 2793
 	 */
2794 2794
 	public function get_longitude()
2795 2795
 	{
@@ -2930,7 +2930,7 @@  discard block
 block discarded – undo
2930 2930
 	 * Uses `<image><width>` or defaults to 88.0 if no width is specified and
2931 2931
 	 * the feed is an RSS 2.0 feed.
2932 2932
 	 *
2933
-	 * @return int|float|null
2933
+	 * @return double|null
2934 2934
 	 */
2935 2935
 	public function get_image_width()
2936 2936
 	{
@@ -2956,7 +2956,7 @@  discard block
 block discarded – undo
2956 2956
 	 * Uses `<image><height>` or defaults to 31.0 if no height is specified and
2957 2957
 	 * the feed is an RSS 2.0 feed.
2958 2958
 	 *
2959
-	 * @return int|float|null
2959
+	 * @return double|null
2960 2960
 	 */
2961 2961
 	public function get_image_height()
2962 2962
 	{
@@ -3185,7 +3185,7 @@  discard block
 block discarded – undo
3185 3185
 	 * @access private
3186 3186
 	 * @param SimplePie $a
3187 3187
 	 * @param SimplePie $b
3188
-	 * @return boolean
3188
+	 * @return integer
3189 3189
 	 */
3190 3190
 	public static function sort_items($a, $b)
3191 3191
 	{
@@ -4384,7 +4384,7 @@  discard block
 block discarded – undo
4384 4384
 	/**
4385 4385
 	 * Retrieve the last modified time for the cache
4386 4386
 	 *
4387
-	 * @return int Timestamp
4387
+	 * @return false|string Timestamp
4388 4388
 	 */
4389 4389
 	public function mtime()
4390 4390
 	{
@@ -4504,7 +4504,6 @@  discard block
 block discarded – undo
4504 4504
      *
4505 4505
      * @param string $location Location string (from SimplePie::$cache_location)
4506 4506
      * @param string $name Unique ID for the cache
4507
-     * @param string $type Either TYPE_FEED for SimplePie data, or TYPE_IMAGE for image data
4508 4507
      */
4509 4508
     public function __construct($location, $name, $options = null) {
4510 4509
         //$this->cache = \flow\simple\cache\Redis::getRedisClientInstance();
@@ -5461,7 +5460,7 @@  discard block
 block discarded – undo
5461 5460
 	 * Consume the next byte
5462 5461
 	 *
5463 5462
 	 * @access private
5464
-	 * @return mixed The next byte, or false, if there is no more data
5463
+	 * @return string|false The next byte, or false, if there is no more data
5465 5464
 	 */
5466 5465
 	public function consume()
5467 5466
 	{
@@ -5481,7 +5480,7 @@  discard block
 block discarded – undo
5481 5480
 	 *
5482 5481
 	 * @access private
5483 5482
 	 * @param string $chars Characters to consume
5484
-	 * @return mixed A series of characters that match the range, or false
5483
+	 * @return string|false A series of characters that match the range, or false
5485 5484
 	 */
5486 5485
 	public function consume_range($chars)
5487 5486
 	{
@@ -6571,7 +6570,7 @@  discard block
 block discarded – undo
6571 6570
 	/**
6572 6571
 	 * Get length
6573 6572
 	 *
6574
-	 * @return float Length in bytes
6573
+	 * @return string|null Length in bytes
6575 6574
 	 */
6576 6575
 	public function get_length()
6577 6576
 	{
@@ -8279,7 +8278,7 @@  discard block
 block discarded – undo
8279 8278
 	 *
8280 8279
 	 * Returns false if $base is not absolute, otherwise an IRI.
8281 8280
 	 *
8282
-	 * @param IRI|string $base (Absolute) Base IRI
8281
+	 * @param SimplePie_IRI $base (Absolute) Base IRI
8283 8282
 	 * @param IRI|string $relative Relative IRI
8284 8283
 	 * @return IRI|false
8285 8284
 	 */
@@ -9068,7 +9067,7 @@  discard block
 block discarded – undo
9068 9067
 	 * Set the ipath.
9069 9068
 	 *
9070 9069
 	 * @param string $ipath
9071
-	 * @return bool
9070
+	 * @return null|boolean
9072 9071
 	 */
9073 9072
 	public function set_path($ipath, $clear_cache = false)
9074 9073
 	{
@@ -9145,6 +9144,7 @@  discard block
 block discarded – undo
9145 9144
 	/**
9146 9145
 	 * Convert an IRI to a URI (or parts thereof)
9147 9146
 	 *
9147
+	 * @param false|string $string
9148 9148
 	 * @return string
9149 9149
 	 */
9150 9150
 	public function to_uri($string)
@@ -10114,7 +10114,7 @@  discard block
 block discarded – undo
10114 10114
 	 * @since 1.0
10115 10115
 	 *
10116 10116
 	 * @param string $date_format Supports any PHP date format from {@see http://php.net/strftime} (empty for the raw data)
10117
-	 * @return int|string|null
10117
+	 * @return string|null
10118 10118
 	 */
10119 10119
 	public function get_local_date($date_format = '%c')
10120 10120
 	{
@@ -10137,7 +10137,7 @@  discard block
 block discarded – undo
10137 10137
 	 *
10138 10138
 	 * @see get_date
10139 10139
 	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
10140
-	 * @return int|string|null
10140
+	 * @return null|string
10141 10141
 	 */
10142 10142
 	public function get_gmdate($date_format = 'j F Y, g:i a')
10143 10143
 	{
@@ -10155,7 +10155,7 @@  discard block
 block discarded – undo
10155 10155
 	 *
10156 10156
 	 * @see get_updated_date
10157 10157
 	 * @param string $date_format Supports any PHP date format from {@see http://php.net/date}
10158
-	 * @return int|string|null
10158
+	 * @return null|string
10159 10159
 	 */
10160 10160
 	public function get_updated_gmdate($date_format = 'j F Y, g:i a')
10161 10161
 	{
@@ -12159,7 +12159,7 @@  discard block
 block discarded – undo
12159 12159
 	 * @since 1.0
12160 12160
 	 * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo
12161 12161
 	 * @link http://www.georss.org/ GeoRSS
12162
-	 * @return string|null
12162
+	 * @return double|null
12163 12163
 	 */
12164 12164
 	public function get_latitude()
12165 12165
 	{
@@ -12187,7 +12187,7 @@  discard block
 block discarded – undo
12187 12187
 	 * @since 1.0
12188 12188
 	 * @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo
12189 12189
 	 * @link http://www.georss.org/ GeoRSS
12190
-	 * @return string|null
12190
+	 * @return double|null
12191 12191
 	 */
12192 12192
 	public function get_longitude()
12193 12193
 	{
@@ -12403,6 +12403,9 @@  discard block
 block discarded – undo
12403 12403
 		}
12404 12404
 	}
12405 12405
 
12406
+	/**
12407
+	 * @param string $name
12408
+	 */
12406 12409
 	protected function search_elements_by_tag($name, &$done, $feeds)
12407 12410
 	{
12408 12411
 		if ($this->dom === null)
@@ -12621,6 +12624,9 @@  discard block
 block discarded – undo
12621 12624
  */
12622 12625
 class SimplePie_Misc
12623 12626
 {
12627
+	/**
12628
+	 * @param integer $seconds
12629
+	 */
12624 12630
 	public static function time_hms($seconds)
12625 12631
 	{
12626 12632
 		$time = '';
@@ -12923,6 +12929,11 @@  discard block
 block discarded – undo
12923 12929
 		}
12924 12930
 	}
12925 12931
 
12932
+	/**
12933
+	 * @param string $data
12934
+	 * @param string $input
12935
+	 * @param string $output
12936
+	 */
12926 12937
 	protected static function change_encoding_mbstring($data, $input, $output)
12927 12938
 	{
12928 12939
 		if ($input === 'windows-949')
@@ -12961,6 +12972,11 @@  discard block
 block discarded – undo
12961 12972
 		return false;
12962 12973
 	}
12963 12974
 
12975
+	/**
12976
+	 * @param string $data
12977
+	 * @param string $input
12978
+	 * @param string $output
12979
+	 */
12964 12980
 	protected static function change_encoding_iconv($data, $input, $output)
12965 12981
 	{
12966 12982
 		return @iconv($input, $output, $data);
@@ -14301,6 +14317,9 @@  discard block
 block discarded – undo
14301 14317
 		}
14302 14318
 	}
14303 14319
 
14320
+	/**
14321
+	 * @return string
14322
+	 */
14304 14323
 	public static function get_curl_version()
14305 14324
 	{
14306 14325
 		if (is_array($curl = curl_version()))
@@ -14368,7 +14387,6 @@  discard block
 block discarded – undo
14368 14387
 	/**
14369 14388
 	 * Remove RFC822 comments
14370 14389
 	 *
14371
-	 * @param string $data Data to strip comments from
14372 14390
 	 * @return string Comment stripped string
14373 14391
 	 */
14374 14392
 	public static function uncomment_rfc822($string)
@@ -14624,7 +14642,7 @@  discard block
 block discarded – undo
14624 14642
 	 * @todo Add support for EBCDIC
14625 14643
 	 * @param string $data XML data
14626 14644
 	 * @param SimplePie_Registry $registry Class registry
14627
-	 * @return array Possible encodings
14645
+	 * @return string[] Possible encodings
14628 14646
 	 */
14629 14647
 	public static function xml_encoding($data, $registry)
14630 14648
 	{
@@ -14997,7 +15015,7 @@  discard block
 block discarded – undo
14997 15015
 	 *           0:0:0:0:0:FFFF:129.144.52.38
14998 15016
 	 *
14999 15017
 	 * @param string $ip An IPv6 address
15000
-	 * @return array [0] contains the IPv6 represented part, and [1] the IPv4 represented part
15018
+	 * @return string[] [0] contains the IPv6 represented part, and [1] the IPv4 represented part
15001 15019
 	 */
15002 15020
 	private static function split_v6_v4($ip)
15003 15021
 	{
@@ -15744,7 +15762,6 @@  discard block
 block discarded – undo
15744 15762
 	 * Remove RFC822 comments
15745 15763
 	 *
15746 15764
 	 * @access protected
15747
-	 * @param string $data Data to strip comments from
15748 15765
 	 * @return string Comment stripped string
15749 15766
 	 */
15750 15767
 	public function remove_rfc2822_comments($string)
@@ -16258,6 +16275,9 @@  discard block
 block discarded – undo
16258 16275
 		return $this->data;
16259 16276
 	}
16260 16277
 
16278
+	/**
16279
+	 * @param string $tag
16280
+	 */
16261 16281
 	public function tag_open($parser, $tag, $attributes)
16262 16282
 	{
16263 16283
 		list($this->namespace[], $this->element[]) = $this->split_ns($tag);
@@ -16325,6 +16345,9 @@  discard block
 block discarded – undo
16325 16345
 		}
16326 16346
 	}
16327 16347
 
16348
+	/**
16349
+	 * @param string $cdata
16350
+	 */
16328 16351
 	public function cdata($parser, $cdata)
16329 16352
 	{
16330 16353
 		if ($this->current_xhtml_construct >= 0)
@@ -16337,6 +16360,9 @@  discard block
 block discarded – undo
16337 16360
 		}
16338 16361
 	}
16339 16362
 
16363
+	/**
16364
+	 * @param string $tag
16365
+	 */
16340 16366
 	public function tag_close($parser, $tag)
16341 16367
 	{
16342 16368
 		if ($this->current_xhtml_construct >= 0)
@@ -16422,6 +16448,9 @@  discard block
 block discarded – undo
16422 16448
 		return isset($data['value']) ? $data['value'] : '';
16423 16449
 	}
16424 16450
 
16451
+	/**
16452
+	 * @param string $url
16453
+	 */
16425 16454
 	private function parse_microformats(&$data, $url) {
16426 16455
 		$feed_title = '';
16427 16456
 		$feed_author = NULL;
@@ -16953,6 +16982,8 @@  discard block
 block discarded – undo
16953 16982
 	 *
16954 16983
 	 * For documentation on all the parameters, see the corresponding
16955 16984
 	 * properties and their accessors
16985
+	 * @param string $relationship
16986
+	 * @param string $value
16956 16987
 	 */
16957 16988
 	public function __construct($relationship = null, $type = null, $value = null)
16958 16989
 	{
@@ -17390,6 +17421,9 @@  discard block
 block discarded – undo
17390 17421
 		return $data;
17391 17422
 	}
17392 17423
 
17424
+	/**
17425
+	 * @param string $html
17426
+	 */
17393 17427
 	protected function preprocess($html, $type)
17394 17428
 	{
17395 17429
 		$ret = '';
@@ -17414,6 +17448,9 @@  discard block
 block discarded – undo
17414 17448
 		return $ret;
17415 17449
 	}
17416 17450
 
17451
+	/**
17452
+	 * @param DOMDocument $document
17453
+	 */
17417 17454
 	public function replace_urls($document, $tag, $attributes)
17418 17455
 	{
17419 17456
 		if (!is_array($attributes))
@@ -17466,6 +17503,10 @@  discard block
 block discarded – undo
17466 17503
 		}
17467 17504
 	}
17468 17505
 
17506
+	/**
17507
+	 * @param DOMDocument $document
17508
+	 * @param DOMXPath $xpath
17509
+	 */
17469 17510
 	protected function strip_tag($tag, $document, $xpath, $type)
17470 17511
 	{
17471 17512
 		$elements = $xpath->query('body//' . $tag);
@@ -17550,6 +17591,9 @@  discard block
 block discarded – undo
17550 17591
 		}
17551 17592
 	}
17552 17593
 
17594
+	/**
17595
+	 * @param DOMXPath $xpath
17596
+	 */
17553 17597
 	protected function strip_attr($attrib, $xpath)
17554 17598
 	{
17555 17599
 		$elements = $xpath->query('//*[@' . $attrib . ']');
@@ -17560,6 +17604,9 @@  discard block
 block discarded – undo
17560 17604
 		}
17561 17605
 	}
17562 17606
 
17607
+	/**
17608
+	 * @param DOMDocument $document
17609
+	 */
17563 17610
 	protected function add_attr($tag, $valuePairs, $document)
17564 17611
 	{
17565 17612
 		$elements = $document->getElementsByTagName($tag);
@@ -17605,6 +17652,10 @@  discard block
 block discarded – undo
17605 17652
 		return md5(serialize($this->data));
17606 17653
 	}
17607 17654
 
17655
+	/**
17656
+	 * @param string $namespace
17657
+	 * @param string $tag
17658
+	 */
17608 17659
 	public function get_source_tags($namespace, $tag)
17609 17660
 	{
17610 17661
 		if (isset($this->data['child'][$namespace][$tag]))
@@ -17617,6 +17668,9 @@  discard block
 block discarded – undo
17617 17668
 		}
17618 17669
 	}
17619 17670
 
17671
+	/**
17672
+	 * @return string
17673
+	 */
17620 17674
 	public function get_base($element = array())
17621 17675
 	{
17622 17676
 		return $this->item->get_base($element);
Please login to merge, or discard this patch.
require/class.APRS.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -174,6 +174,10 @@
 block discarded – undo
174 174
 		'\|' => 'TNC Stream SW',
175 175
 		'\~' => 'TNC Stream SW');
176 176
 
177
+	/**
178
+	 * @param integer $n
179
+	 * @param integer $s
180
+	 */
177 181
 	private function urshift($n, $s) {
178 182
 		return ($n >= 0) ? ($n >> $s) :
179 183
 		    (($n & 0x7fffffff) >> $s) | 
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
@@ -190,12 +190,20 @@
 block discarded – undo
190 190
 		return 1;
191 191
 	}
192 192
 
193
+	/**
194
+	 * @param double $lat
195
+	 * @param integer $isodd
196
+	 */
193 197
 	private function cprN($lat,$isodd) {
194 198
 		$nl = $this->cprNL($lat) - $isodd;
195 199
 		if ($nl > 1) return $nl;
196 200
 		else return 1;
197 201
 	}
198 202
 
203
+	/**
204
+	 * @param string $msg
205
+	 * @param string $bin
206
+	 */
199 207
 	private function parityCheck($msg, $bin) {
200 208
 		$modes_checksum_table = array(
201 209
 		    0x3935ea, 0x1c9af5, 0xf1b77e, 0x78dbbf, 0xc397db, 0x9e31e9, 0xb0e2f0, 0x587178,
Please login to merge, or discard this patch.
require/class.AIS.php 1 patch
Doc Comments   +25 added lines patch added patch discarded remove patch
@@ -156,6 +156,10 @@  discard block
 block discarded – undo
156 156
        't', 'u', 'v', 'w' // 119
157 157
     ); // char 64
158 158
     */
159
+
160
+	/**
161
+	 * @param integer $ascii
162
+	 */
159 163
 	private function asciidec_2_8bit($ascii) {
160 164
 		//only process in the following range: 48-87, 96-119
161 165
 		if ($ascii < 48) { }
@@ -181,6 +185,10 @@  discard block
 block discarded – undo
181 185
 		return(substr($bin, -6)); 
182 186
 	}
183 187
 
188
+	/**
189
+	 * @param integer $_start
190
+	 * @param integer $_size
191
+	 */
184 192
 	private function binchar($_str, $_start, $_size) {
185 193
 		//  ' ' --- '?', // 0x20 - 0x3F
186 194
 		//  '@' --- '_', // 0x40 - 0x5F
@@ -206,6 +214,10 @@  discard block
 block discarded – undo
206 214
 	}
207 215
 
208 216
 	// function for decoding the AIS Message ITU Payload
217
+
218
+	/**
219
+	 * @param string $_aisdata
220
+	 */
209 221
 	private function decode_ais($_aisdata) {
210 222
 		$ro = new stdClass(); // return object
211 223
 		$ro->cls = 0; // AIS class undefined, also indicate unparsed msg
@@ -378,6 +390,12 @@  discard block
 block discarded – undo
378 390
 		else return 0;
379 391
 	}
380 392
 
393
+	/**
394
+	 * @param string $_itu
395
+	 * @param integer $_len
396
+	 * @param integer $_filler
397
+	 * @param string $aux
398
+	 */
381 399
 	public function process_ais_itu($_itu, $_len, $_filler, $aux /*, $ais_ch*/) {
382 400
 		global $port; // tcpip port...
383 401
 		static $debug_counter = 0;
@@ -397,6 +415,10 @@  discard block
 block discarded – undo
397 415
 
398 416
 	// char* - AIS \r terminated string
399 417
 	// TCP based streams which send messages in full can use this instead of calling process_ais_buf
418
+
419
+	/**
420
+	 * @param string $rawdata
421
+	 */
400 422
 	public function process_ais_raw($rawdata, $aux = '') { // return int
401 423
 		static $num_seq; // 1 to 9
402 424
 		static $seq; // 1 to 9
@@ -622,6 +644,9 @@  discard block
 block discarded – undo
622 644
 		return $result;
623 645
 	}
624 646
 
647
+	/**
648
+	 * @param string $mmsi
649
+	 */
625 650
 	public function mmsitype($mmsi) {
626 651
 		if (strlen($mmsi) == 9) {
627 652
 			if (substr($mmsi,0,3) == '974') return 'EPIRB (Emergency Position Indicating Radio Beacon) AIS';
Please login to merge, or discard this patch.
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.