Added phpmd as a required dev package and followed up on some phpmd hints
phpmd violations are not critical for Makefile
Run php-cs-fixer to follow PSR-1 and PSR-2 coding guidelines
Changed indentation from 2 spaces to 4 spaces
Added php_codesniffer as a --dev dependency