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.