Minor fixes

This commit is contained in:
Graham Campbell 2015-01-15 23:28:08 +00:00
parent 79d924040a
commit 409fbe966f

View File

@ -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;
}