Skip to content

Commit

Permalink
No need to ignore here apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Sep 5, 2022
1 parent d4de3ac commit f997e4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers/MarkdownTestHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ protected static function normalizeElementContent($element, $whitespace_preserve
if ($element->firstChild) {
if ($element->firstChild->nodeType == XML_TEXT_NODE) {
$element->firstChild->data = // @phpstan-ignore-line
preg_replace('{^\s+}', "\n", $element->firstChild->data ?? ''); // @phpstan-ignore-line
preg_replace('{^\s+}', "\n", $element->firstChild->data ?? '');
}
else {
$element->insertBefore(new DOMText("\n"), $element->firstChild);
Expand All @@ -233,7 +233,7 @@ protected static function normalizeElementContent($element, $whitespace_preserve
if ($element->lastChild) {
if ($element->lastChild->nodeType == XML_TEXT_NODE) {
$element->lastChild->data = // @phpstan-ignore-line
preg_replace('{\s+$}', "\n", $element->lastChild->data ?? ''); // @phpstan-ignore-line
preg_replace('{\s+$}', "\n", $element->lastChild->data ?? '');
}
else {
$element->insertBefore(new DOMText("\n"), null);
Expand Down

0 comments on commit f997e4b

Please sign in to comment.