And are you able to motivate why should be removed?
I can explain instead why are there. It is always a good idea to code with an extra line at the end of the file for compatibility reasons.
That extra linefeed is printed to the browser when you require()/include() the file and can lead to well known headers already sent
problem.
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, and you will still be able to add headers to the response later.
http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
http://stackoverflow.com/questions/8028957/headers-already-sent-by-php
http://stackoverflow.com/questions/4410704/php-closing-tag
Seriously, is this causing you any issues? If not then I am not gonna remove them.
All WordPress files seem having extra line at the end, what they don’t is closing the php tag.
No closing php tag = no output of any extra linefeed “after the end-marker of php-code”.
Why are they doing this? It’s explained in detail in above links…
So I prefer to remove the last php tag rather than removing the last empty line, which is useful for many other things.
Fixed in trunk, will be in v2.3.11