-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
26 lines (25 loc) · 899 Bytes
/
.php-cs-fixer.php
File metadata and controls
26 lines (25 loc) · 899 Bytes
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
<?php declare(strict_types=1);
return new PhpCsFixer\Config()
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP8x4Migration' => true,
'@PHP8x4Migration:risky' => true,
'@PHPUnit10x0Migration:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'blank_line_after_opening_tag' => false,
'fopen_flags' => false,
'linebreak_after_opening_tag' => false,
'no_superfluous_phpdoc_tags' => ['remove_inheritdoc' => true],
'nullable_type_declaration_for_default_null_value' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'single_line_empty_body' => true,
])
->setRiskyAllowed(true)
->setFinder(
new PhpCsFixer\Finder()
->in(__DIR__.'/config')
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
)
;