Reducing allowed PHPMD errors