Skip to content

Commit

Permalink
Message: replace ob_get_contents() & ob_end_clean() by ob_get_clean()
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkotek committed Oct 6, 2016
1 parent a95cb49 commit 78c34ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ private function captureCallbackOutput($callback)
throw new \RuntimeException('Cannot start output buffering');
}
$callback();
$content = ob_get_contents();
ob_end_clean();
return $content;
return ob_get_clean();
}
}

0 comments on commit 78c34ba

Please sign in to comment.