X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ftidy%2FBalancer.php;h=fbe92702df70d7b334b82ab4ce3f1d16d9973c35;hb=f739a8f368ab64d63a2f21d15caf2caa766d6fc5;hp=b29a3afbd4241e71b4c6072ed722ff0d06a2ad8a;hpb=d6276525455e6a00fffc90229ef81a1fc8feaa25;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/tidy/Balancer.php b/includes/tidy/Balancer.php index b29a3afbd4..fbe92702df 100644 --- a/includes/tidy/Balancer.php +++ b/includes/tidy/Balancer.php @@ -627,6 +627,7 @@ class BalanceElement { /** * Get a string key for the Noah's Ark algorithm + * @return string */ public function getNoahKey() { if ( $this->noahKey === null ) { @@ -710,6 +711,7 @@ class BalanceStack implements IteratorAggregate { /** * Insert a comment at the appropriate place for inserting a node. * @param string $value Content of the comment. + * @return string * @see https://html.spec.whatwg.org/multipage/syntax.html#insert-a-comment */ public function insertComment( $value ) { @@ -721,6 +723,7 @@ class BalanceStack implements IteratorAggregate { * Insert text at the appropriate place for inserting a node. * @param string $value * @param bool $isComment + * @return string * @see https://html.spec.whatwg.org/multipage/syntax.html#appropriate-place-for-inserting-a-node */ public function insertText( $value, $isComment = false ) { @@ -901,6 +904,8 @@ class BalanceStack implements IteratorAggregate { /** * Return the adjusted current node. + * @param string $fragmentContext + * @return string */ public function adjustedCurrentNode( $fragmentContext ) { return ( $fragmentContext && count( $this->elements ) === 1 ) ? @@ -1513,6 +1518,8 @@ class BalanceActiveFormattingElements { * Find and return the last element with the specified tag between the * end of the list and the last marker on the list. * Used when parsing <a> "in body mode". + * @param string $tag + * @return null|Node */ public function findElementByTag( $tag ) { $elt = $this->tail; @@ -1528,7 +1535,7 @@ class BalanceActiveFormattingElements { /** * Determine whether an element is in the list of formatting elements. * @param BalanceElement $elt - * @return boolean + * @return bool */ public function isInList( BalanceElement $elt ) { return $this->head === $elt || $elt->prevAFE;