Always Omit Closing PHP Tags in WordPress Plugins →
We’ve been following this practice for quite some time in our WordPress themes and plugins, where it makes sense.
Spoiler: The reason is to avoid outputting whitespace after the closing PHP bracket, which will cause a PHP error.
