Fixed command in travis.yml
Removed code smell from code climate