refactors PHP CPD integration