PHP code example of hill-98 / php-cs-fixer-config

1. Go to this page and download the library: Download hill-98/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/ */

    

hill-98 / php-cs-fixer-config example snippets




// Allow Risky rules
// const RISKY = true;

$finder = PhpCsFixer\Finder::create()
    ->exclude('somedir')
    ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
    ->in(__DIR__);

// These rules will be merged and set ($rules must be array)
$rules = [];

// Extended $config ($config must be \PhpCsFixer\ConfigInterface)
// $config = new PhpCsFixer\Config();

/** @var \PhpCsFixer\Config $config */
$config =