Fix PHPMD violations
Add phpmd testing to travis