Added the closing brace for consistency. But as mentioned in this blog it is optional. May want to read it more for better understanding:
http://www.sitepoint.com/should-you-close-your-php-code-tags/