Fix phpmd violations