Skip to content

Commit

Permalink
Make HtmlDocument::remove() fluent
Browse files Browse the repository at this point in the history
  • Loading branch information
lippserd committed Mar 12, 2020
1 parent 3829a48 commit 1299ef4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/HtmlDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ public function prepend($content)
* Remove content
*
* @param ValidHtml $html
*
* @return $this
*/
public function remove(ValidHtml $html)
{
Expand All @@ -181,6 +183,8 @@ public function remove(ValidHtml $html)
$this->content = array_values($this->content);

$this->reIndexContent();

return $this;
}

/**
Expand Down

0 comments on commit 1299ef4

Please sign in to comment.