Completed
Branch master (37eb21)
by
unknown
25:17
created
includes/tidy/Balancer.php 1 patch
Doc Comments   +18 added lines, -3 removed lines patch added patch discarded remove patch
@@ -800,7 +800,7 @@  discard block
 block discarded – undo
800 800
 
801 801
 	/**
802 802
 	 * Determine if the stack has $tag in button scope.
803
-	 * @param BalanceElement|array|string $tag
803
+	 * @param string $tag
804 804
 	 * @return bool
805 805
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-button-scope
806 806
 	 */
@@ -890,6 +890,7 @@  discard block
 block discarded – undo
890 890
 
891 891
 	/**
892 892
 	 * Return the adjusted current node.
893
+	 * @param BalanceElement|null $fragmentContext
893 894
 	 */
894 895
 	public function adjustedCurrentNode( $fragmentContext ) {
895 896
 		return ( $fragmentContext && count( $this->elements ) === 1 ) ?
@@ -899,7 +900,7 @@  discard block
 block discarded – undo
899 900
 	/**
900 901
 	 * Return an iterator over this stack which visits the current node
901 902
 	 * first, and the root node last.
902
-	 * @return Iterator
903
+	 * @return ReverseArrayIterator
903 904
 	 */
904 905
 	public function getIterator() {
905 906
 		return new ReverseArrayIterator( $this->elements );
@@ -1133,7 +1134,7 @@  discard block
 block discarded – undo
1133 1134
 	 * @param string $tag The subject tag name.
1134 1135
 	 * @param BalanceActiveFormattingElements $afe The current
1135 1136
 	 *   active formatting elements list.
1136
-	 * @return true if the adoption agency algorithm "did something", false
1137
+	 * @return boolean if the adoption agency algorithm "did something", false
1137 1138
 	 *   if more processing is required by the caller.
1138 1139
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#adoption-agency-algorithm
1139 1140
 	 */
@@ -1499,6 +1500,7 @@  discard block
 block discarded – undo
1499 1500
 	 * Find and return the last element with the specified tag between the
1500 1501
 	 * end of the list and the last marker on the list.
1501 1502
 	 * Used when parsing <a> "in body mode".
1503
+	 * @param string $tag
1502 1504
 	 */
1503 1505
 	public function findElementByTag( $tag ) {
1504 1506
 		$elt = $this->tail;
@@ -1646,6 +1648,10 @@  discard block
 block discarded – undo
1646 1648
 	 * @see https://html.spec.whatwg.org/multipage/syntax.html#reconstruct-the-active-formatting-elements
1647 1649
 	 */
1648 1650
 	// @codingStandardsIgnoreEnd
1651
+
1652
+	/**
1653
+	 * @param BalanceStack|null $stack
1654
+	 */
1649 1655
 	public function reconstruct( $stack ) {
1650 1656
 		$entry = $this->tail;
1651 1657
 		// If there are no entries in the list of active formatting elements,
@@ -2214,6 +2220,10 @@  discard block
 block discarded – undo
2214 2220
 		return $oldMode;
2215 2221
 	}
2216 2222
 
2223
+	/**
2224
+	 * @param string $mode
2225
+	 * @param boolean $selfClose
2226
+	 */
2217 2227
 	private function switchModeAndReprocess( $mode, $token, $value, $attribs, $selfClose ) {
2218 2228
 		$this->switchMode( $mode );
2219 2229
 		return $this->insertToken( $token, $value, $attribs, $selfClose );
@@ -3299,6 +3309,11 @@  discard block
 block discarded – undo
3299 3309
 			return false;
3300 3310
 		}
3301 3311
 	}
3312
+
3313
+	/**
3314
+	 * @param string $token
3315
+	 * @param string $value
3316
+	 */
3302 3317
 	private function inCellMode( $token, $value, $attribs = null, $selfClose = false ) {
3303 3318
 		if ( $token === 'tag' ) {
3304 3319
 			switch ( $value ) {
Please login to merge, or discard this patch.