-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.php
32 lines (29 loc) · 897 Bytes
/
.php-cs-fixer.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
29
30
31
32
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('tests')
->exclude('plugins/ContentAreas/vendor')
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'concat_space' => false,
'phpdoc_no_alias_tag' => false,
'yoda_style' => false,
'array_syntax' => false,
'no_superfluous_phpdoc_tags' => false,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
'imports_order' => ['class', 'function', 'const'],
],
'blank_line_after_namespace' => true,
'single_line_comment_style' => false,
'visibility_required' => false,
'phpdoc_to_comment' => false,
'function_typehint_space' => false,
'global_namespace_import' => false,
])
->setFinder($finder)
;