forked from code-pilots/helpers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
26 lines (24 loc) · 866 Bytes
/
.php-cs-fixer.php
File metadata and controls
26 lines (24 loc) · 866 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
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('vendor')
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'@PhpCsFixer' => true,
'no_superfluous_phpdoc_tags' => true,
'concat_space' => ['spacing' => 'one'],
'cast_spaces' => ['space' => 'none'],
'array_syntax' => ['syntax' => 'short'],
'protected_to_private' => false,
'native_function_invocation' => false,
'native_constant_invocation' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'function_declaration' => ['closure_function_spacing' => 'none', 'closure_fn_spacing' => 'none'],
'ordered_imports' => ['imports_order' => ['const', 'class', 'function']],
'blank_line_between_import_groups' => false,
])
->setFinder($finder)
;