forked from dev-community-de/code-formatter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
35 lines (33 loc) · 1.12 KB
/
.php_cs
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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setFinder($finder)
->setIndent(' ')
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'no_superfluous_phpdoc_tags' => false,
'blank_line_before_statement' => [
'statements' => [],
],
'single_blank_line_before_namespace' => false,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'fully_qualified_strict_types' => true,
'method_chaining_indentation' => true,
'ordered_class_elements' => false,
'ordered_imports' => true,
'concat_space' => ['spacing' => 'one'],
'native_function_invocation' => [
'include' => ['@compiler_optimized'],
'scope' => 'namespaced',
],
'single_line_throw' => false,
]);