-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
33 lines (31 loc) · 1015 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
<?php
$finder = PhpCsFixer\Finder::create()
// ->exclude('somedir')
// ->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'full_opening_tag' => false,
'@PSR2' => true,
'align_multiline_comment' => ['comment_type' => 'phpdocs_only'],
'array_indentation' => true,
'whitespace_after_comma_in_array' => true,
'braces' => [
'allow_single_line_closure' => true,
'position_after_functions_and_oop_constructs' => 'same'
],
'control_structure_continuation_position' => false,
'linebreak_after_opening_tag' => false,
'no_blank_lines_after_class_opening' => false,
'no_empty_comment' => true,
'single_line_comment_spacing' => true,
'strict_param' => false,
'trim_array_spaces' => true,
'normalize_index_brace' => true,
'increment_style' => ['style' => 'post'],
])
->setIndent(" ")
->setLineEnding("\n")
->setFinder($finder)
;