forked from sampart/WhiteOctoberPagerfantaBundle
-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
.php-cs-fixer.php
26 lines (25 loc) · 936 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
<?php declare(strict_types=1);
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHP81Migration' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit84Migration: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' => ['use_nullable_type_declaration' => 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')
)
;