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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user