update: markdown helper

- adopt the string functions like - str_contains, str_starts_with, str_ends_with - available in PHP 8.
This commit is contained in:
HDVinnie
2021-07-12 20:46:03 -04:00
parent 69fc0f7f40
commit 3e6bf69f97

View File

@@ -829,7 +829,7 @@ class Markdown
$alignment = 'left';
}
if (\substr($dividerCell, -1) === ':') {
if (\str_ends_with($dividerCell, ':')) {
$alignment = $alignment === 'left' ? 'center' : 'right';
}