Skip to content

Commit

Permalink
added a rule to check_cs
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Dec 18, 2011
1 parent 3ba7677 commit 8d7a6e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions check_cs
Original file line number Diff line number Diff line change
Expand Up @@ -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++;

Expand Down

1 comment on commit 8d7a6e5

@stloyd
Copy link
Contributor

@stloyd stloyd commented on 8d7a6e5 Dec 19, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be noted in docs.

Please sign in to comment.