PHP code example of suin / php-cs-fixer-rules
1. Go to this page and download the library: Download suin/php-cs-fixer-rules 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/ */
suin / php-cs-fixer-rules example snippets
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(Suin\PhpCsFixer\Rules::create([
// If you want to overwrite default rules
// add rules here.
'declare_strict_types' => false,
]))
->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
);