Explorar o código

added a rule to check_cs

Fabien Potencier %!s(int64=13) %!d(string=hai) anos
pai
achega
8d7a6e598d
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      check_cs

+ 3 - 0
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++;