-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
41 lines (37 loc) · 1.32 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
35
36
37
38
39
40
41
<?php
$headerComment = <<<DOC
This file is part of the cvc/twig-documentor package.
(c) CARL von CHIARI GmbH <opensource@cvc.digital>
This source file is subject to the MIT license that is bundled
with this source code in the file LICENSE.
DOC;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_unsets' => true,
'general_phpdoc_annotation_remove' => ['@author', '@package', '@subpackage'],
'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'mb_str_functions' => true,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'phpdoc_to_comment' => false,
'semicolon_after_instruction' => true,
'simplified_null_return' => true,
'header_comment' => [
'header' => $headerComment,
],
'yoda_style' => false,
])
->setRiskyAllowed(true)
->setFinder(PhpCsFixer\Finder::create()->in('.'))
->setUsingCache(true)
;