mirror of
https://github.com/wiosna-dev/common-library.git
synced 2026-03-12 09:31:51 +01:00
54 lines
1.6 KiB
PHP
54 lines
1.6 KiB
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
->in(__DIR__)
|
|
->exclude([
|
|
'build',
|
|
'vendor',
|
|
])
|
|
->notPath([
|
|
'tests/Resources/var/',
|
|
])
|
|
;
|
|
|
|
return PhpCsFixer\Config::create()
|
|
->setRules([
|
|
'@Symfony' => true,
|
|
'@PhpCsFixer' => true,
|
|
'@PHP71Migration' => true,
|
|
'array_syntax' => ['syntax' => 'short'],
|
|
'binary_operator_spaces' => [
|
|
'align_double_arrow' => true,
|
|
],
|
|
'blank_line_before_return' => false,
|
|
'cast_spaces' => false,
|
|
'concat_space' => [
|
|
'spacing' => 'one',
|
|
],
|
|
'ordered_class_elements' => [
|
|
'order' => [
|
|
'use_trait',
|
|
'constant_public',
|
|
'constant_protected',
|
|
'constant_private',
|
|
'property_public',
|
|
'property_protected',
|
|
'property_private',
|
|
'construct',
|
|
'destruct',
|
|
'magic',
|
|
'method_public',
|
|
'method_protected',
|
|
'method_private',
|
|
],
|
|
],
|
|
'phpdoc_add_missing_param_annotation' => true,
|
|
'phpdoc_align' => false,
|
|
'phpdoc_order' => true,
|
|
'phpdoc_separation' => false,
|
|
'phpdoc_summary' => false,
|
|
'trim_array_spaces' => false,
|
|
])
|
|
->setFinder($finder)
|
|
;
|