From bf6c9a6db22c7f8bb49bc72757bd0873d90dc1af Mon Sep 17 00:00:00 2001 From: Haralan Dobrev Date: Fri, 24 Jan 2014 00:41:45 +0200 Subject: [PATCH] Use imperative tense in comments --- Parsedown.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index cf0bcfd..1791ccd 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -41,7 +41,7 @@ class Parsedown private $breaks_enabled = false; # - # Enables GFM line breaks. + # Enable GFM line breaks. function set_breaks_enabled($breaks_enabled) { @@ -61,27 +61,27 @@ class Parsedown # # - # Converts Markdown to HTML. + # Convert Markdown to HTML. function parse($text) { - # standardizes line breaks + # standardize line breaks $text = str_replace("\r\n", "\n", $text); $text = str_replace("\r", "\n", $text); - # replaces tabs with spaces + # replace tabs with spaces $text = str_replace("\t", ' ', $text); - # removes surrounding line breaks + # remove surrounding line breaks $text = trim($text, "\n"); - # splits text into lines + # split text into lines $lines = explode("\n", $text); - # converts lines into html + # convert lines into html $text = $this->parse_block_elements($lines); - # removes trailing line breaks + # remove trailing line breaks $text = chop($text, "\n"); return $text; @@ -1082,4 +1082,4 @@ class Parsedown '*' => '/^[*](.*?)[*]{2}(.+?)[*]{2}(.*?)[*]/s', '_' => '/^_(.*?)__(.+?)__(.*?)_/s', ); -} \ No newline at end of file +}