Removed trailing whitespace from PHP code until trailing whitespace is handled correctly by error detection