forked from Bottelet/translation-checker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
35 lines (33 loc) · 1019 Bytes
/
.php-cs-fixer.php
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
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/config',
__DIR__ . '/tests',
]);
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR12' => true,
'new_with_parentheses' => false,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => [
'statements' => ['return'],
],
'no_extra_blank_lines' => true,
'no_trailing_whitespace' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'single_quote' => true,
'trailing_comma_in_multiline' => true,
'no_empty_phpdoc' => true,
'single_blank_line_at_eof' => true,
'ternary_operator_spaces' => true,
'no_useless_return' => true,
'braces' => true,
'cast_spaces' => true,
'no_unused_imports' => true,
'fully_qualified_strict_types' => true,
'ordered_class_elements' => true,
])->setFinder($finder);