-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
48 lines (46 loc) · 1.54 KB
/
Copy path.php-cs-fixer.dist.php
File metadata and controls
48 lines (46 loc) · 1.54 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('var')
->exclude('vendor')
// Standalone runtime probe script, not part of the analysed/styled test suite.
->notPath('tests/smoke/without-messenger.php')
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_unused_imports' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays', 'arguments', 'parameters']],
'phpdoc_order' => true,
'phpdoc_separation' => true,
'phpdoc_trim' => true,
'phpdoc_align' => ['align' => 'left'],
'phpdoc_summary' => false,
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'strict_param' => true,
'strict_comparison' => true,
'yoda_style' => true,
'single_line_throw' => false,
'blank_line_before_statement' => [
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
],
'class_attributes_separation' => [
'elements' => [
'const' => 'one',
'method' => 'one',
'property' => 'one',
],
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => false,
'import_functions' => false,
],
])
->setRiskyAllowed(true)
->setFinder($finder)
;