-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
35 lines (33 loc) · 1.06 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
<?php
$conf = new PhpCsFixer\Config;
$conf->setRules([
'@PhpCsFixer' => true,
'blank_line_before_statement' => ['statements' => [
'continue',
'declare',
'return',
'throw',
'try',
]],
'cast_spaces' => ['space' => 'none'],
'concat_space' => ['spacing' => 'one'],
'increment_style' => ['style' => 'post'],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'no_leading_import_slash' => true,
'no_superfluous_phpdoc_tags' => false,
'ordered_class_elements' => false,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_to_comment' => false,
'yoda_style' => false,
'no_alias_functions' => true,
'non_printable_character' => ['use_escape_sequences_in_strings' => true],
'no_unused_imports' => true,
'php_unit_test_class_requires_covers' => false,
]);
$conf->setFinder(
PhpCsFixer\Finder::create()
->exclude('tests/Fixtures')
->in(__DIR__)
);
$conf->setUsingCache(false);
return $conf;