-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
27 lines (24 loc) · 801 Bytes
/
.php-cs-fixer.php
File metadata and controls
27 lines (24 loc) · 801 Bytes
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
<?php
use PhpCsFixer\Config;
$finder = PhpCsFixer\Finder::create()
->exclude('CodeGeneration/Fixtures')
->in(__DIR__.'/src/');
return (new Config())
->setRules([
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'no_alias_functions' => true,
'not_operator_with_space' => true,
'return_type_declaration' => true,
'phpdoc_to_return_type' => true,
'binary_operator_spaces' => false,
'php_unit_method_casing' => ['case' => 'snake_case'],
'void_return' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['const', 'class', 'function'],
],
])
->setRiskyAllowed(true)
->setFinder($finder);