-
Notifications
You must be signed in to change notification settings - Fork 47
/
.php-cs-fixer.dist.php
53 lines (49 loc) · 1.33 KB
/
.php-cs-fixer.dist.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
43
44
45
46
47
48
49
50
51
52
53
<?php
$finder = PhpCsFixer\Finder::create()
->ignoreDotFiles(false)
->ignoreVCS(true)
->exclude([
'vendor',
])
->in([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/api-samples',
]);
$rules = [
'@Symfony' => true,
'align_multiline_comment' => [
'comment_type' => 'phpdocs_like',
],
'array_indentation' => true,
'compact_nullable_typehint' => true,
'multiline_comment_opening_closing' => true,
'new_with_braces' => false,
'phpdoc_to_comment' => false,
'single_import_per_statement' => false,
'concat_space' => ['spacing' => 'one'],
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => true,
'blank_line_after_opening_tag' => false,
'linebreak_after_opening_tag' => false,
'global_namespace_import' => [
'import_classes' => false,
'import_constants' => false,
'import_functions' => false,
],
'phpdoc_separation' => true,
'yoda_style' => false,
'native_function_invocation' => [
'exclude' => [],
'include' => ['@internal'],
'scope' => 'all',
'strict' => false,
],
'types_spaces' => ['space' => 'single'],
];
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules($rules)
->setFinder($finder)
;