-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp-cs-fixer.php
36 lines (32 loc) · 973 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
36
<?php
declare(strict_types=1);
// phpcs:ignoreFile
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = (new Finder())
->in(__DIR__);
return (new Config())
->setRules(
[
'@PSR12' => true,
'@PhpCsFixer' => true,
'@PHP83Migration' => true,
'yoda_style' => true,
'modernize_strpos' => true,
'no_useless_concat_operator' => true,
'numeric_literal_seperator' => true,
'header_comment' => [
'header' => '',
],
'no_superfluous_phpdoc_tags' => false,
'phpdoc_to_comment' => false,
'trailing_comma_in_multiline' => false,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'phpdoc_no_package' => false,
'phpdoc_order' => true,
'phpdoc_summary' => false
]
)
->setFinder($finder);