PHP code example of xenforo-ltd / xf-cs-fixer
1. Go to this page and download the library: Download xenforo-ltd/xf-cs-fixer 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/ */
xenforo-ltd / xf-cs-fixer example snippets
declare(strict_types=1);
use PhpCsFixer\Finder;
use XFCsFixer\ConfigHelper;
$finder = Finder::create()
->in(__DIR__)
->ignoreVCSIgnored(true)
->notPath([
// you may set paths or path patterns to exclude here
]);
$helper = new ConfigHelper($finder);
// you may customize the rules or configuration further here
return $helper->getConfig();