More expensive statement last

This commit is contained in:
Aidan Woods 2018-04-09 02:32:01 +01:00
parent 7e15d99d90
commit 450a74fedf
No known key found for this signature in database
GPG Key ID: 9A6A8EFAA512BBB9

View File

@ -773,10 +773,8 @@ class Parsedown
return; return;
} }
if ( if ($Line['indent'] < 4 and chop(chop($Line['text'], ' '), $Line['text'][0]) === '')
chop(chop($Line['text'], ' '), $Line['text'][0]) === '' {
and $Line['indent'] < 4
) {
$Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2'; $Block['element']['name'] = $Line['text'][0] === '=' ? 'h1' : 'h2';
return $Block; return $Block;