mirror of
https://gitee.com/yansongda/pay.git
synced 2024-12-02 04:08:21 +08:00
25 lines
641 B
PHP
25 lines
641 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->exclude('tests')
|
|
->exclude('vendor')
|
|
->in(__DIR__);
|
|
|
|
return (new PhpCsFixer\Config())
|
|
->setUsingCache(false)
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'class_attributes_separation' => true,
|
|
'ordered_class_elements' => true,
|
|
'ordered_imports' => ['sort_algorithm' => 'alpha'],
|
|
'line_ending' => true,
|
|
'single_quote' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'general_phpdoc_annotation_remove' => [
|
|
'annotations' => [
|
|
'author'
|
|
],
|
|
],
|
|
])
|
|
->setFinder($finder);
|