added a rule to check_cs

This commit is contained in:
Fabien Potencier 2011-12-18 14:42:56 +01:00
parent 3ba767703a
commit 8d7a6e598d
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ foreach ($finder as $file) {
$new .= "\n";
}
// [Structure] elseif, not else if
$new = preg_replace('/} else if \(/', '} elseif (', $new);
if ($new != $old) {
$count++;