php-dry detects duplicated behaviour in your application, even if the duplicated passages are implemented completely different to each other. Likely you should read a bit about the theoretical background for a better understanding.
docker run -v {path_to_project}:/project leovie/php-dry -h
Install via composer
composer require --dev leovie/php-dry
After installation, you can run php-dry via
vendor/bin/php-dry {path_to_project} -h
see here
Special thank you belongs to queo GmbH for sponsoring the development and maintenance of php-dry.