forked from certificationy/certificationy-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
40 lines (38 loc) · 1.1 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
<?php
$finder = PhpCsFixer\Finder::create()->in([
__DIR__.'/src',
__DIR__.'/tests',
]);
$config = new PhpCsFixer\Config();
return $config
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'concat_space' => [
'spacing' => 'one',
],
'cast_spaces' => [
'space' => 'single',
],
'error_suppression' => [
'mute_deprecation_error' => false,
'noise_remaining_usages' => false,
'noise_remaining_usages_exclude' => [],
],
'function_to_constant' => false,
'no_alias_functions' => false,
'non_printable_character' => false,
'phpdoc_summary' => false,
'phpdoc_align' => [
'align' => 'left',
],
'protected_to_private' => false,
'self_accessor' => false,
'yoda_style' => false,
'non_printable_character' => true,
'phpdoc_no_empty_return' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
])
->setFinder($finder)
->setCacheFile(__DIR__.'/.php_cs.cache')
;