Created
April 2, 2025 18:05
-
-
Save Yousha/d5e9945f2383ad0324a9cc30256a0bc0 to your computer and use it in GitHub Desktop.
Simple .php-cs-fixer.php config file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
use PhpCsFixer\Finder; | |
use PhpCsFixer\Config; | |
static $rules = [ | |
'@PSR1' => true, | |
'@PSR2' => true, | |
'@PSR12' => true, | |
]; | |
static $excludeFolders = [ | |
'vendor/', | |
'storage/', | |
]; | |
$finder = Finder::create() | |
->in(__DIR__) | |
->exclude($excludeFolders) | |
->ignoreDotFiles(true) | |
->ignoreVCS(true); | |
return (new Config()) | |
->setRules($rules) | |
->setFinder($finder); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment