We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c2ac84 commit c115001Copy full SHA for c115001
Magento2/Sniffs/Legacy/ParseXMLTrait.php
@@ -13,8 +13,6 @@
13
14
trait ParseXMLTrait
15
{
16
- private const ERROR_CODE_XML = 'WrongXML';
17
-
18
/**
19
* Format the incoming XML to avoid tags split into several lines.
20
*
@@ -33,7 +31,7 @@ private function getFormattedXML(File $phpcsFile)
33
31
$phpcsFile->addError(
34
32
"Couldn't parse contents of '%s', check that they are in valid XML format.",
35
0,
36
- self::ERROR_CODE_XML,
+ 'WrongXML',
37
[
38
Common::stripBasepath($phpcsFile->getFilename(), $phpcsFile->config->basepath),
39
]
0 commit comments