Fixed phpmd errors