Minor changes to style

Made some changes to the code style, so it uses the http://www.php-fig.org/psr/psr-2/ standard.