From 409fbe966fae10b29e5db197649f8d80c777ef20 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 15 Jan 2015 23:28:08 +0000 Subject: [PATCH] Minor fixes --- Parsedown.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Parsedown.php b/Parsedown.php index 4292712..aed6585 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -653,7 +653,7 @@ class Parsedown protected function blockSetextHeader($Line, array $Block = null) { - if ( ! isset($Block) or isset($Block['type']) or isset($Block['interrupted'])) + if ( ! isset($Block) || isset($Block['type']) || isset($Block['interrupted'])) { return; } @@ -1212,7 +1212,7 @@ class Parsedown protected function inlineTag($excerpt) { - if ($this->markupEscaped or strpos($excerpt, '>') === false) + if ($this->markupEscaped === false || strpos($excerpt, '>') === false) { return; } @@ -1256,7 +1256,7 @@ class Parsedown protected function inlineImage($excerpt) { - if ( ! isset($excerpt[1]) or $excerpt[1] !== '[') + if ( ! isset($excerpt[1]) || $excerpt[1] !== '[') { return; }