-
Notifications
You must be signed in to change notification settings - Fork 8
/
.php-cs-fixer.php
33 lines (31 loc) · 1008 Bytes
/
.php-cs-fixer.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
<?php
// Exclude file inside external libs
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('externalLib')
->in(__DIR__)
;
$config = new PhpCsFixer\Config();
$config
->setRules([
'@PSR12' => true,
'@Symfony' => true,
'phpdoc_annotation_without_dot' => false,
'phpdoc_summary' => false,
'single_quote' => true,
'ordered_imports' => true,
'no_break_comment' => false,
'blank_line_before_statement' => false,
'increment_style' => false,
'yoda_style' => false,
'phpdoc_to_comment' => false, // Need to disable this to use single-line suppressions with Psalm
'array_syntax' => ['syntax' => 'short'],
'no_useless_else' => true,
'single_line_throw' => false,
'heredoc_to_nowdoc' => true,
'global_namespace_import' => true,
'fully_qualified_strict_types' => true,
])
->setUsingCache(true)
->setFinder($finder);
return $config;