[Check CS] don't replace 'else if' on twig files (closes #2961)

This commit is contained in:
Julien Brochet 2011-12-27 16:10:32 +01:00
parent f458e96f93
commit 0797564208

View File

@ -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++;