diff --git a/check_cs b/check_cs index e6056a9108..284196b77d 100755 --- a/check_cs +++ b/check_cs @@ -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++;