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 3a9d1d6 commit b755ed6Copy full SHA for b755ed6
Magento2/Sniffs/Html/HtmlCollapsibleAttributeSniff.php
@@ -43,7 +43,7 @@ public function process(File $phpcsFile, $stackPtr)
43
}
44
45
$pattern = '$<\w+.*?\s*(?=.*?\s*data-toggle="collapse")[^>]*?>.*?$';
46
- if (preg_match_all($pattern , $html, $matches, PREG_SET_ORDER)) {
+ if (preg_match_all($pattern, $html, $matches, PREG_SET_ORDER)) {
47
foreach ($matches as $match) {
48
$phpcsFile->addError(
49
'Collapsible attributes data-toggle and data-target need to be updated to ' .
0 commit comments