mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-29 08:00:28 +01:00
29 lines
990 B
Plaintext
29 lines
990 B
Plaintext
|
<?php
|
||
|
|
||
|
$finder = PhpCsFixer\Finder::create()->in([__DIR__ . '/src', __DIR__ . '/tests']);
|
||
|
|
||
|
return PhpCsFixer\Config::create()
|
||
|
->setRules([
|
||
|
'@PSR2' => true,
|
||
|
'array_syntax' => ['syntax' => 'short'],
|
||
|
'binary_operator_spaces' => true,
|
||
|
'blank_line_before_return' => true,
|
||
|
'cast_spaces' => true,
|
||
|
'concat_space' => ['spacing' => 'one'],
|
||
|
'no_singleline_whitespace_before_semicolons' => true,
|
||
|
'not_operator_with_space' => true,
|
||
|
'ordered_imports' => true,
|
||
|
'phpdoc_align' => true,
|
||
|
'phpdoc_indent' => true,
|
||
|
'phpdoc_no_access' => true,
|
||
|
'phpdoc_no_alias_tag' => true,
|
||
|
'phpdoc_no_package' => true,
|
||
|
'phpdoc_scalar' => true,
|
||
|
'phpdoc_separation' => true,
|
||
|
'phpdoc_summary' => true,
|
||
|
'phpdoc_to_comment' => true,
|
||
|
'phpdoc_trim' => true,
|
||
|
'single_blank_line_at_eof' => true,
|
||
|
'ternary_operator_spaces' => true,
|
||
|
])
|
||
|
->setFinder($finder);
|