PHP thing I did not know:

The closing tag of a PHP block (?>) at the end of a file is optional, and in some cases omitting it is helpful when using include() or require(), so unwanted whitespace will not occur at the end of files

(thanks Nate!)