forked from grommunio/grommunio-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.phpcs
27 lines (26 loc) · 894 Bytes
/
.phpcs
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
<?php
/*
* PHPCsFixer code style configuration file
*/
$config = new PhpCsFixer\Config();
return $config->
setIndent("\t")->
setRules([
'@PhpCsFixer' => true,
'blank_line_before_statement' => ['statements' => ['case', 'continue', 'declare', 'default', 'exit', 'goto', 'phpdoc', 'return', 'switch', 'throw', 'try', 'yield']],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'concat_space' => ['spacing' => 'one'],
'control_structure_continuation_position' => ['position' => 'next_line'],
'indentation_type' => true,
'operator_linebreak' => ['position' => 'end'],
'ordered_class_elements' => false,
'single_line_comment_style' => false,
'single_quote' => false,
'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false],
])->
setFinder(
PhpCsFixer\Finder::create()->
exclude('vendor')->
in(__DIR__)
)
;