When toggling single line comments in either a php or js file there is a new line inserted at the end of the line (or last line if multiple lines are selected).
The line is inserted when toggling on AND off the comment. So toggling a comment then toggling it off would result in 2 extra lines inserted at the end of the line.
Steps to Reproduce:
1. Create a php file with the following code:
2. Place the cursor on line 2
3. Toggle comment (Ctrl+/)
Line is commented correctly
Line is commented but a newline is added to the file.