-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
35 lines (33 loc) · 1.07 KB
/
.php-cs-fixer.php
File metadata and controls
35 lines (33 loc) · 1.07 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
33
34
35
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return (new Config())
->setRules([
'@PSR12' => true,
'@PhpCsFixer' => true,
'array_indentation' => true,
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
'no_whitespace_before_comma_in_array' => true,
'whitespace_after_comma_in_array' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => ['=>' => null],
],
'multiline_whitespace_before_semicolons' => false,
'phpdoc_trim' => false,
'phpdoc_no_empty_return' => false,
'phpdoc_types_order' => [
'null_adjustment' => 'always_last',
'sort_algorithm' => 'none',
],
'single_line_comment_style' => false,
'explicit_string_variable' => false,
'return_assignment' => [
'skip_named_var_tags' => true,
],
])
->setFinder(
Finder::create()
->in([__DIR__.'/src', __DIR__.'/test'])
);