-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.php_cs.dist
More file actions
37 lines (35 loc) · 1.32 KB
/
.php_cs.dist
File metadata and controls
37 lines (35 loc) · 1.32 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
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('build')
->notPath('vendor')
->in(__DIR__)
->name('*.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
//'@PHP71Migration' => true,
'array_syntax' => ['syntax' => 'short'],
// 'heredoc_to_nowdoc' => true,
'linebreak_after_opening_tag' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
'phpdoc_order' => true,
'doctrine_annotation_braces' => true,
'doctrine_annotation_indentation' => true,
'doctrine_annotation_spaces' => true,
'no_short_echo_tag' => true,
'semicolon_after_instruction' => true,
'align_multiline_comment' => true,
'doctrine_annotation_array_assignment' => true,
'general_phpdoc_annotation_remove' => ['annotations' => ['package']],
'list_syntax' => ['syntax' => 'short'],
'phpdoc_types_order' => ['null_adjustment' => 'always_last'],
'single_line_comment_style' => true,
])
->setFinder($finder);