Removed closing php tag and trailing white space

Removed the closing php tags and trailing white space from a number of php files.