apply php-fig's coding rules

http://www.php-fig.org/