This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/.php-cs-fixer.dist.php
2024-08-31 17:06:39 +01:00

20 lines
484 B
PHP

<?php
$_phpcs_finder = PhpCsFixer\Finder::create()
->exclude('ext/amazon_s3/lib')
->exclude('vendor')
->exclude('data')
->in(__DIR__)
;
$_phpcs_config = new PhpCsFixer\Config();
return $_phpcs_config
->setRules([
'@PSR12' => true,
//'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($_phpcs_finder)
->setCacheFile("data/php-cs-fixer.cache")
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
;