core: Fix pmd issues.
halo: Fix pmd issues.
network: Fix pmd issues.
buildsystem: Adjust settings for phpmd checks.
dataacess: Don't check for unused formal parameters in mysql mocks.