[Check CS] don't replace 'else if' on twig files (closes #2961)
This commit is contained in:
parent
f458e96f93
commit
0797564208
2
check_cs
2
check_cs
@ -94,7 +94,9 @@ foreach ($finder as $file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// [Structure] elseif, not else if
|
// [Structure] elseif, not else if
|
||||||
|
if ('twig' !== $file->getExtension()) {
|
||||||
$new = preg_replace('/} else if \(/', '} elseif (', $new);
|
$new = preg_replace('/} else if \(/', '} elseif (', $new);
|
||||||
|
}
|
||||||
|
|
||||||
if ($new != $old) {
|
if ($new != $old) {
|
||||||
$count++;
|
$count++;
|
||||||
|
Reference in New Issue
Block a user