PHP Code Similarity Analyzer

This page refers to Scrutinizer's old code similarity analysis. It is replaced by PHP Scrutinizer and not used anymore in new configurations.

The code similarity analyzer helps you detect duplicated code in your project. It is robust against code modifications and not only detects exact clones, but also similar code.

Increasing the Minimum Mass for Performance

Generally, you do not need to change any settings. If you have a very large code-base, you might want to increase the minimum mass which correlates to the minimum size of detected code fragments. This will help speed up the analysis at the cost of not detecting smaller clones:

tools:
    php_sim:
        min_mass: 30 # Defaults to 16