-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
28 lines (25 loc) · 1.45 KB
/
.php-cs-fixer.dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
$finder = (new PhpCsFixer\Finder())->in(__DIR__);
return (new PhpCsFixer\Config())
->setRules(
[
'@PSR12' => true,
'@Symfony' => true,
// Only allowed if risky rules are enabled: 'strict_param' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space_minimal']],
'concat_space' => ['spacing' => 'one'],
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
'method_chaining_indentation' => true,
'no_alias_language_construct_call' => false,
'no_unneeded_control_parentheses' => false,
'nullable_type_declaration_for_default_null_value' => ['use_nullable_type_declaration' => true],
'phpdoc_annotation_without_dot' => true,
'phpdoc_summary' => false,
'simplified_if_return' => true,
],
)
->setFinder($finder)
;