forked from mlocati/my_boats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
34 lines (32 loc) · 1.03 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
<?php
if (!class_exists('PhpCsFixer\Config', true)) {
fwrite(STDERR, "Your php-cs-version is outdated: please upgrade it.\n");
die(16);
}
return PhpCsFixer\Config::create()
->setCacheFile(__DIR__ . '/.php_cs.cache')
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'dir_constant' => true,
'function_to_constant' => true,
'is_null' => true,
'linebreak_after_opening_tag' => true,
'modernize_types_casting' => true,
'no_alias_functions' => true,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_return' => true,
'non_printable_character' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_align' => false,
'phpdoc_order' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;