fixed code style according to PSR-2 and added phpsniffer to travis config