Skip to content

Commit 754e84c

Browse files
committed
AC-659: Create phpcs static check for ModuleXMLTest
1 parent aca6b41 commit 754e84c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Magento2/Sniffs/Legacy/ModuleXMLSniff.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ private function elementIsCurrentlySniffedLine(SimpleXMLElement $element, int $s
9797
}
9898

9999
/**
100+
* We need to format the incoming XML to avoid tags split into several lines. In that case, PHP's DOMElement
101+
* returns the position of the closing /> as the position of the tag.
102+
*
100103
* @param File $phpcsFile
101104
* @return false|string
102105
*/

0 commit comments

Comments
 (0)