-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.php-cs-fixer.dist.php
41 lines (38 loc) · 959 Bytes
/
.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
<?php
declare(strict_types = 1);
$finder = PhpCsFixer\Finder::create()
->in(__DIR__);
$config = new \PhpCsFixer\Config();
return $config->setRules([
'@PSR2' => true,
'@PhpCsFixer' => true,
'multiline_whitespace_before_semicolons' => [
'strategy' => 'no_multi_line'
],
'declare_equal_normalize' => [
'space' => 'single'
],
'method_argument_space' => [
'on_multiline' => 'ignore'
],
'trailing_comma_in_multiline' => [
'elements' => []
],
'blank_line_before_statement' => [
'statements' => []
],
'concat_space' => [
'spacing' => 'one'
],
'list_syntax' => [
'syntax' => 'short'
],
'echo_tag_syntax' => [
'format' => 'short'
],
'no_alternative_syntax' => false,
'php_unit_test_class_requires_covers' => false,
'phpdoc_to_comment' => false,
'phpdoc_var_without_name' => false,
])
->setFinder($finder);