forked from janephp/janephp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
31 lines (29 loc) · 1.06 KB
/
.php_cs
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
<?php
$dirs = PhpCsFixer\Finder::create()
->exclude('Component/JsonSchema/JsonSchema')
->exclude('Component/JsonSchema/Tests/fixtures')
->exclude('Component/JsonSchema/Tests/generated')
->exclude('Component/OpenApi2/JsonSchema')
->exclude('Component/OpenApi2/Tests/fixtures')
->exclude('Component/OpenApi2/Tests/client/generated')
->exclude('Component/OpenApi3/JsonSchema')
->exclude('Component/OpenApi3/Tests/fixtures')
->exclude('Component/OpenApi3/Tests/client/generated')
->exclude('Component/AutoMapper/Tests/cache')
->exclude('Bundle/AutoMapperBundle/Tests/Resources')
->exclude('Bundle/JsonSchemaBundle/Tests/Resources')
->exclude('Bundle/OpenApiBundle/Tests/Resources')
->exclude('cache')
->in(__DIR__ . '/src')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'yoda_style' => null,
])
->setFinder($dirs)
;