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

21 lines
484 B
PHP
Raw Normal View History

2021-12-14 18:33:53 +00:00
<?php
2023-01-10 22:37:35 +00:00
$_phpcs_finder = PhpCsFixer\Finder::create()
2021-12-14 18:33:53 +00:00
->exclude('ext/amazon_s3/lib')
->exclude('vendor')
->exclude('data')
->in(__DIR__)
;
2023-01-10 22:37:35 +00:00
$_phpcs_config = new PhpCsFixer\Config();
2024-08-31 16:05:18 +00:00
return $_phpcs_config
->setRules([
'@PSR12' => true,
//'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
])
->setFinder($_phpcs_finder)
2023-12-31 17:42:04 +00:00
->setCacheFile("data/php-cs-fixer.cache")
2024-08-31 16:05:18 +00:00
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
2023-12-31 17:42:04 +00:00
;