A
A
Alexey Trofimov2013-05-28 17:57:24
Refactoring
Alexey Trofimov, 2013-05-28 17:57:24

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

3 answer(s)
V
Vyacheslav Plisko, 2013-05-28
@AmdY

github.com/sebastianbergmann/phpcpd
or rather go through a set of all utilities as in CI jenkins-php.org/

J
joneleth, 2013-05-29
@joneleth

3-4 by 4-5 is not so much, you can do it with your hands

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question