-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.php_cs.php
More file actions
24 lines (21 loc) · 812 Bytes
/
.php_cs.php
File metadata and controls
24 lines (21 loc) · 812 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
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'class_definition' => ['multi_line_extends_each_single_line' => true],
'no_useless_else' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'list_syntax' => ['syntax' => 'short'],
'linebreak_after_opening_tag' => true,
'multiline_whitespace_before_semicolons' => ['strategy' => 'new_line_for_chained_calls'],
'visibility_required' => ['elements' => ['property', 'method', 'const']],
])
->setFinder($finder)
->setCacheFile(__DIR__ . '/.php-cs-fixer.cache')
;