Change src code style  to PSR-1/2.
Change tests code style  to PSR-1/2.
Fixed IDE typo warnings.