-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
26 lines (24 loc) · 907 Bytes
/
.php_cs
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 = PhpCsFixer\Finder::create()
->exclude('somedir')
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
// 'blank_line_after_opening_tag' => true,
'concat_space' => ['spacing' => 'one'],
// 'elseif' => true,
'function_declaration' => ['closure_function_spacing' => 'one'],
// 'semicolon_after_instruction' => true,
'single_quote' => ['strings_containing_single_quote_chars' => true],
// 'strict_param' => true,
// 'whitespace_after_comma_in_array' => true,
])
->setFinder($finder)
;