PHP code example of h1r0-2525 / php-cs-fixer-config
1. Go to this page and download the library: Download h1r0-2525/php-cs-fixer-config 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/ */
h1r0-2525 / php-cs-fixer-config example snippets
// .php_cs.dist
use H1r0\CS\Config\Rule;
use H1r0\CS\Finder\Finder;
return Rule::create()
->setFinder(Finder::create()->in(__DIR__));
// .php_cs.dist
use H1r0\CS\Config\Rule;
use H1r0\CS\Finder\Finder;
return Rule::create([
// add your rules
'combine_consecutive_unsets' => false,
])
->setFinder(Finder::create()
->exclude([
// add exclude path
'vender',
])
->in(__DIR__)
);