According to PSR2 standard :

The closing ?> tag should be omitted from files containing only PHP.