-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
32 lines (31 loc) · 1.08 KB
/
.php-cs-fixer.php
File metadata and controls
32 lines (31 loc) · 1.08 KB
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
<?php
return (new PhpCsFixer\Config())
->setRules([
'@PER-CS' => true,
'braces_position' => [
'functions_opening_brace' => 'same_line',
'classes_opening_brace' => 'same_line',
'control_structures_opening_brace' => 'same_line',
'anonymous_functions_opening_brace' => 'same_line',
'anonymous_classes_opening_brace' => 'same_line',
],
'single_quote' => true,
'visibility_required' => false,
'trailing_comma_in_multiline' => [
'elements' => ['arrays'],
],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline',
],
'no_trailing_comma_in_singleline' => true,
])
->setIndent(' ') // 4 spaces
->setLineEnding("\n") // LF line endings
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->exclude('node_modules')
->exclude('packages/tableberg/includes/freemius')
->exclude('packages/pro/includes/freemius')
);