1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Better name for testing safe mode and strict mode state

Add a nice named constructor
This commit is contained in:
Aidan Woods
2019-01-22 21:19:26 +00:00
parent bb424e606f
commit 3d41f270c2
9 changed files with 22 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ final class Header implements Block
$StrictMode = $State->getOrDefault(StrictMode::class);
if ($StrictMode->enabled() && isset($text[0]) and $text[0] !== ' ') {
if ($StrictMode->isEnabled() && isset($text[0]) and $text[0] !== ' ') {
return null;
}