Added tests for checking extra semicolon appended after the closing brace before a closing PHP tag.
Updated fix method to check for closing brace before inserting semicolon.
bug #625 Extra semicolon is appended after the closing brace that happens to be at EOF with a PHP closing tag (jian-wu)

This PR was merged into the 1.0.x-dev branch.

Discussion
----------

Extra semicolon is appended after the closing brace that happens to be at EOF with a PHP closing tag

Hi @fabpot and @keradus,

I added 3 more cases to the provideCasesWithFullOpenTag test to show that an extra semicolon is appended after the closing brace if that happens to be at EOF with a PHP closing tag.

If these cases are not appropriate to be in this test, I'll be more than happy to move them to a new test.

This is in regards to issues #294. #455.

I will patch up this PR with the fix if this is deemed valid and worthy.

Thanks.

Commits
-------

f5c325c Added tests for checking extra semicolon appended after the closing brace before a closing PHP tag. Updated fix method to check for closing brace before inserting semicolon.