mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 17:52:45 +01:00
parent
00822074fe
commit
76364ab2cc
@ -16,7 +16,6 @@ use function array_merge;
|
|||||||
use function array_reduce;
|
use function array_reduce;
|
||||||
use function array_values;
|
use function array_values;
|
||||||
use function get_loaded_extensions;
|
use function get_loaded_extensions;
|
||||||
use function htmlspecialchars;
|
|
||||||
use function implode;
|
use function implode;
|
||||||
use function ksort;
|
use function ksort;
|
||||||
use function min;
|
use function min;
|
||||||
@ -268,11 +267,7 @@ final class ErrorBaseline
|
|||||||
foreach ($existingIssueType['s'] as $selection) {
|
foreach ($existingIssueType['s'] as $selection) {
|
||||||
$codeNode = $baselineDoc->createElement('code');
|
$codeNode = $baselineDoc->createElement('code');
|
||||||
$textContent = trim($selection);
|
$textContent = trim($selection);
|
||||||
if ($textContent !== htmlspecialchars($textContent)) {
|
|
||||||
$codeNode->appendChild($baselineDoc->createCDATASection($textContent));
|
$codeNode->appendChild($baselineDoc->createCDATASection($textContent));
|
||||||
} else {
|
|
||||||
$codeNode->textContent = trim($textContent);
|
|
||||||
}
|
|
||||||
$issueNode->appendChild($codeNode);
|
$issueNode->appendChild($codeNode);
|
||||||
}
|
}
|
||||||
$fileNode->appendChild($issueNode);
|
$fileNode->appendChild($issueNode);
|
||||||
|
Loading…
Reference in New Issue
Block a user