As per the code standards, trailing whitespace should be trimmed - most code editors have this as an option, and it should be enabled for PHP files.