Completed
Push — master ( e13ec8...872339 )
by Todd
02:42
created
gan_node_html.php 1 patch
Doc Comments   +11 added lines, -12 removed lines patch added patch discarded remove patch
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
 	/**
362 362
 	 * Returns the node as string
363 363
 	 * @param bool $attributes Print attributes (of child tags)
364
-	 * @param bool|int $recursive How many sub-levels of child tags to print. True for all.
364
+	 * @param boolean $recursive How many sub-levels of child tags to print. True for all.
365 365
 	 * @param bool|int $content_only Only print text, false will print tags too.
366 366
 	 * @return string
367 367
 	 */
@@ -1021,7 +1021,6 @@  discard block
 block discarded – undo
1021 1021
 	/**
1022 1022
 	 * Insert childnode
1023 1023
 	 * @param string|DomNode $tag Tagname or object
1024
-	 * @param int $offset Position to insert node, negative to count from end, null to append
1025 1024
 	 * @return DomNode Added node
1026 1025
 	 * @see addChild();
1027 1026
 	 */
@@ -1040,6 +1039,10 @@  discard block
 block discarded – undo
1040 1039
 	#function &addText($text, &$offset) {
1041 1040
 	#php4e
1042 1041
 	#php5
1042
+
1043
+	/**
1044
+	 * @param string $text
1045
+	 */
1043 1046
 	function &addText($text, &$offset = null) {
1044 1047
 	#php5e
1045 1048
 		return $this->addChild(new $this->childClass_Text($this, $text), $offset);
@@ -1148,7 +1151,7 @@  discard block
 block discarded – undo
1148 1151
 
1149 1152
 	/**
1150 1153
 	 * Delete a child node
1151
-	 * @param int|DomNode $child Child(index) to delete, negative to count from end
1154
+	 * @param DomNode $child Child(index) to delete, negative to count from end
1152 1155
 	 * @param bool $soft_delete False to call {@link delete()} from child
1153 1156
 	 */
1154 1157
 	function deleteChild($child, $soft_delete = false) {
@@ -1458,7 +1461,7 @@  discard block
 block discarded – undo
1458 1461
 
1459 1462
 	/**
1460 1463
 	 * Add new class(es)
1461
-	 * @param string|array $className
1464
+	 * @param string $className
1462 1465
 	 */
1463 1466
 	function addClass($className) {
1464 1467
 		if (!is_array($className)) {
@@ -1475,7 +1478,7 @@  discard block
 block discarded – undo
1475 1478
 
1476 1479
 	/**
1477 1480
 	 * Remove clas(ses)
1478
-	 * @param string|array $className
1481
+	 * @param string $className
1479 1482
 	 */
1480 1483
 	function removeClass($className) {
1481 1484
 		if (!is_array($className)) {
@@ -1752,9 +1755,6 @@  discard block
 block discarded – undo
1752 1755
 
1753 1756
 	/**
1754 1757
 	 * Checks if node matches certain filters
1755
-	 * @param array $tags array(array(
1756
-	 *	'filter' => 'last-child',
1757
-	 *	'params' => '123'))
1758 1758
 	 * @param array $custom_filters Custom map next to {@link $filter_map}
1759 1759
 	 * @return bool
1760 1760
 	 * @internal Used by selector class
@@ -1783,7 +1783,6 @@  discard block
 block discarded – undo
1783 1783
 
1784 1784
 	/**
1785 1785
 	 * Checks if node matches certain conditions
1786
-	 * @param array $tags array('tags' => array(tag_conditions), 'attributes' => array(attr_conditions), 'filters' => array(filter_conditions))
1787 1786
 	 * @param array $match Should conditions evaluate to true?
1788 1787
 	 * @param array $custom_filters Custom map next to {@link $filter_map}
1789 1788
 	 * @return bool
@@ -1861,7 +1860,7 @@  discard block
 block discarded – undo
1861 1860
 	 * Finds children that match a certain tag
1862 1861
 	 * @param string $tag
1863 1862
 	 * @param string $compare "total"/"namespace"/"name"
1864
-	 * @param bool|int $recursive
1863
+	 * @param boolean $recursive
1865 1864
 	 * @return array
1866 1865
 	 */
1867 1866
 	function getChildrenByTag($tag, $compare = 'total', $recursive = true) {
@@ -1931,7 +1930,7 @@  discard block
 block discarded – undo
1931 1930
 	 * @param string $query
1932 1931
 	 * @param int|bool $index True to return node instead of array if only 1 match,
1933 1932
 	 * false to return array, int to return match at index, negative int to count from end
1934
-	 * @param bool|int $recursive
1933
+	 * @param boolean $recursive
1935 1934
 	 * @param bool $check_self Include this node in search or only search child nodes
1936 1935
 	 * @return DomNode[]|DomNode Returns an array of matching {@link DomNode} objects
1937 1936
      *  or a single {@link DomNode} if `$index` is not false.
@@ -2297,7 +2296,7 @@  discard block
 block discarded – undo
2297 2296
 
2298 2297
     /**
2299 2298
      * Create a {@link DomNode} from its string representation.
2300
-     * @param string|DomNode $content
2299
+     * @param string $content
2301 2300
      * @return DomNode
2302 2301
      */
2303 2302
     protected function createNode($content) {
Please login to merge, or discard this patch.