-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
27 lines (23 loc) · 631 Bytes
/
.php-cs-fixer.php
File metadata and controls
27 lines (23 loc) · 631 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
$dirs = [
__DIR__ . '/src',
__DIR__ . '/tests',
];
$rules = [
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'single_line_comment_style' => true,
'single_line_comment_spacing' => true,
'control_structure_braces' => true,
'control_structure_continuation_position' => true,
'no_useless_else' => true,
'no_superfluous_elseif' => true,
'simplified_if_return' => true,
'single_quote' => true,
];
$finder = PhpCsFixer\Finder::create()
->in($dirs);
return (new PhpCsFixer\Config())
->setRules($rules)
->setFinder($finder);