mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
ternaries should not do more than assign a value
This commit is contained in:
parent
250ba80356
commit
8f6495ce86
@ -141,9 +141,14 @@ class Parsedown
|
|||||||
|
|
||||||
if (strpos($line, $block['end']) !== false) # closing tag
|
if (strpos($line, $block['end']) !== false) # closing tag
|
||||||
{
|
{
|
||||||
$block['depth'] > 0
|
if ($block['depth'] > 0)
|
||||||
? $block['depth']--
|
{
|
||||||
: $block['closed'] = true;
|
$block['depth']--;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$block['closed'] = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$block['text'] .= "\n".$line;
|
$block['text'] .= "\n".$line;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user