Answer the question
In order to leave comments, you need to log in
Group similar files in a project?
There is an ancient PHP project that I am refactoring.
One of the problems with this code is that in order to implement similar features in different places, it was practiced to copy the file and finish it “on the spot”.
As a result, the code has 3-4 groups of 4-5 files with similar functionality
. Is there a utility (based on diff, for example), for example, that can find groups of similar files?
Answer the question
In order to leave comments, you need to log in
github.com/sebastianbergmann/phpcpd
or rather go through a set of all utilities as in CI jenkins-php.org/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question