-
Notifications
You must be signed in to change notification settings - Fork 120
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
41 lines (34 loc) · 1.11 KB
/
.php-cs-fixer.dist.php
File metadata and controls
41 lines (34 loc) · 1.11 KB
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
<?php
/*
* This file is part of the official PHP MCP SDK.
*
* A collaboration between Symfony and the PHP Foundation.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
if (!file_exists(__DIR__.'/src')) {
exit(0);
}
$fileHeader = <<<'EOF'
This file is part of the official PHP MCP SDK.
A collaboration between Symfony and the PHP Foundation.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'protected_to_private' => false,
'declare_strict_types' => false,
'header_comment' => ['header' => $fileHeader],
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
])
->setRiskyAllowed(true)
->setFinder((new Finder())->in(__DIR__))
;