1) Added .gitignore
2) Added CodeSniffer config file
3) Adjusted the code to PSR-2