-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php_cs.dist
35 lines (34 loc) · 1.2 KB
/
.php_cs.dist
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
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->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,
'is_null' => ['use_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,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude('tests/Fixtures')
->in(__DIR__)
)
->setUsingCache(false);