Converted code style to PRS-1, PSR-2

Converted code style to standards [PSR-1](http://www.php-fig.org/psr/psr-1/), [PSR-2](http://www.php-fig.org/psr/psr-2/)