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