-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
41 lines (39 loc) · 1.36 KB
/
.php-cs-fixer.php
File metadata and controls
41 lines (39 loc) · 1.36 KB
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
<?php
$finder = PhpCsFixer\Finder::create()->in([
__DIR__.'/src',
])
->append([__DIR__.'/awcontentfeed.php'])
->notPath([
'Unit/Resources/config/params.php',
'Unit/Resources/config/params_modified.php',
]);
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'blank_line_after_opening_tag' => false,
'array_indentation' => true,
'cast_spaces' => ['space' => 'single'],
'combine_consecutive_issets' => true,
'concat_space' => ['spacing' => 'one'],
'error_suppression' => [
'mute_deprecation_error' => false,
'noise_remaining_usages' => false,
'noise_remaining_usages_exclude' => [],
],
'function_to_constant' => false,
'method_chaining_indentation' => true,
'no_alias_functions' => false,
'no_superfluous_phpdoc_tags' => false,
'non_printable_character' => ['use_escape_sequences_in_strings' => true],
'phpdoc_align' => ['align' => 'left'],
'phpdoc_summary' => false,
'protected_to_private' => false,
'psr_autoloading' => false,
'self_accessor' => false,
'yoda_style' => false,
'single_line_throw' => false,
'no_alias_language_construct_call' => false,
])
->setFinder($finder)
->setCacheFile(__DIR__.'/.php_cs.cache');