PHP code example of supportpal / phpcpd2sarb
1. Go to this page and download the library: Download supportpal/phpcpd2sarb library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
supportpal / phpcpd2sarb example snippets
cat /tmp/sarb-output.json | php vendor/bin/sarb create --input-format="sarb-json" phpcpd.baseline
php vendor/bin/sarb create-baseline /tmp/sarb-output.json phpcpd.baseline sarb-json