-
-
Notifications
You must be signed in to change notification settings - Fork 143
/
Copy path.php-cs-fixer.php
34 lines (34 loc) · 987 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
33
34
<?php
$config = new PhpCsFixer\Config();
return $config
->setIndent(' ')
->setRules([
'single_quote' => true,
'indentation_type' => true,
'array_indentation' => true,
'array_syntax' => true,
'braces' => true,
'doctrine_annotation_indentation' => true,
'heredoc_indentation' => true,
'indentation_type' => true,
'method_argument_space' => true,
'method_chaining_indentation' => true,
'phpdoc_indent' => true,
'single_quote' => true,
'statement_indentation' => true,
'no_spaces_after_function_name' => true,
'no_spaces_around_offset' => true,
'cast_spaces' => true,
'spaces_inside_parentheses' => true,
'trim_array_spaces' => true,
'single_line_empty_body' => true,
'function_declaration' => false,
'braces_position' => [
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
);