Revize b6277a6b
Přidáno uživatelem Tomáš Ballák před téměř 5 roky(ů)
website/.php_cs | ||
---|---|---|
1 |
<?php |
|
2 |
|
|
3 |
return PhpCsFixer\Config::create() |
|
4 |
->setRules(array( |
|
5 |
'@PSR-12' => true, |
|
6 |
'array_indentation' => true, |
|
7 |
'array_syntax' => array('syntax' => 'short'), |
|
8 |
'combine_consecutive_unsets' => true, |
|
9 |
'method_separation' => true, |
|
10 |
'no_multiline_whitespace_before_semicolons' => true, |
|
11 |
'single_quote' => true, |
|
12 |
|
|
13 |
'binary_operator_spaces' => array( |
|
14 |
'align_double_arrow' => false, |
|
15 |
'align_equals' => false, |
|
16 |
), |
|
17 |
'braces' => array( |
|
18 |
'allow_single_line_closure' => true, |
|
19 |
'position_after_functions_and_oop_constructs' => 'same' |
|
20 |
), |
|
21 |
'class_definition' => array('singleLine' => true), |
|
22 |
'concat_space' => array('spacing' => 'one'), |
|
23 |
'hash_to_slash_comment' => true, |
|
24 |
'no_extra_consecutive_blank_lines' => array( |
|
25 |
'curly_brace_block', |
|
26 |
'extra', |
|
27 |
'break', |
|
28 |
'continue', |
|
29 |
'parenthesis_brace_block', |
|
30 |
'return', |
|
31 |
'square_brace_block', |
|
32 |
'throw', |
|
33 |
'use', |
|
34 |
), |
|
35 |
'no_whitespace_before_comma_in_array' => true, |
|
36 |
)) |
|
37 |
//->setIndent("\t") |
|
38 |
->setLineEnding("\n") |
|
39 |
; |
website/symfony.code-workspace | ||
---|---|---|
1 |
{ |
|
2 |
"folders": [ |
|
3 |
{ |
|
4 |
"path": "." |
|
5 |
} |
|
6 |
], |
|
7 |
"settings": { |
|
8 |
"php-cs-fixer.onsave": true, |
|
9 |
"php-cs-fixer.rules":"@PSR-12", |
|
10 |
"php-cs-fixer.config": ".php_cs;.php_cs.dist" |
|
11 |
}, |
|
12 |
"extensions": { |
|
13 |
"recommendations": [ |
|
14 |
"vscode-icons-team.vscode-icons", |
|
15 |
"felixfbecker.php-intellisense", |
|
16 |
"ikappas.phpcs", |
|
17 |
"junstyle.php-cs-fixer" |
|
18 |
] |
|
19 |
} |
|
20 |
} |
Také k dispozici: Unified diff
wip