-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
27 lines (26 loc) · 876 Bytes
/
.php-cs-fixer.php
File metadata and controls
27 lines (26 loc) · 876 Bytes
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
return (new PhpCsFixer\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',
],
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . "/src")
);