-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
42 lines (38 loc) · 1.27 KB
/
.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
37
38
39
40
41
42
<?php
$header = <<<HEADER
This file is part of PHP API Test Server, a PHP Experts, Inc., Project.
Copyright © 2024 PHP Experts, Inc.
Author: Theodore R. Smith <theodore@phpexperts.pro>
GPG Fingerprint: 4BF8 2613 1C34 87AC D28F 2AD8 EB24 A91D D612 5690
https://www.phpexperts.pro/
https://github.com/PHPExpertsInc/php-test-server
This file is licensed under the MIT License.
HEADER;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'elseif' => false,
'yoda_style' => false,
'list_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'binary_operator_spaces' => [
'operators' => [
'=' => 'align',
'=>' => 'align',
],
],
'phpdoc_no_alias_tag' => false,
'declare_strict_types' => true,
'no_superfluous_elseif' => true,
'blank_line_after_opening_tag' => false,
'header_comment' => [
'header' => $header,
'location' => 'after_declare_strict',
'comment_type' => 'PHPDoc',
]
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
);