Skip to content

Commit 85de47c

Browse files
committed
AC-659: Create phpcs static check for ModuleXMLTest
1 parent 135630e commit 85de47c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Magento2/Sniffs/Legacy/ModuleXMLSniff.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public function process(File $phpcsFile, $stackPtr)
6464

6565
if (property_exists($element->attributes(), 'active')) {
6666
$phpcsFile->addWarning(
67-
'The "active" attribute is obsolete. The list of active modules is defined in deployment configuration.',
67+
'The "active" attribute is obsolete. The list of active modules '.
68+
'is defined in deployment configuration.',
6869
$stackPtr,
6970
$this->warningCode
7071
);
@@ -73,6 +74,8 @@ public function process(File $phpcsFile, $stackPtr)
7374
}
7475

7576
/**
77+
* Check if the element passed is in the currently sniffed line
78+
*
7679
* @param SimpleXMLElement $element
7780
* @param int $stackPtr
7881
* @return bool

0 commit comments

Comments
 (0)