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