mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
33 lines
950 B
PHP
33 lines
950 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'tests')
|
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'bin')
|
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'compiled')
|
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'scripts')
|
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'stubs')
|
|
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src')
|
|
->append(['.php_cs']);
|
|
|
|
$rules = [
|
|
'@Symfony' => true,
|
|
'phpdoc_no_empty_return' => false,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'yoda_style' => false,
|
|
'binary_operator_spaces' => [
|
|
'operators' => [
|
|
'=>' => 'align',
|
|
'=' => 'align',
|
|
],
|
|
],
|
|
'concat_space' => ['spacing' => 'one'],
|
|
'not_operator_with_space' => false,
|
|
];
|
|
|
|
$rules['increment_style'] = ['style' => 'post'];
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setUsingCache(true)
|
|
->setRules($rules)
|
|
->setFinder($finder);
|