fix phpcs and phpmd errors