forked from eusonlito/Password-Manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
29 lines (26 loc) · 993 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
<?php declare(strict_types=1);
use PhpCsFixer\Finder;
use PhpCsFixer\Config;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@PHP80Migration' => true,
'@PSR2' => true,
'blank_line_after_opening_tag' => false,
'cast_spaces' => false,
'class_definition' => false,
'linebreak_after_opening_tag' => false,
'no_superfluous_phpdoc_tags' => false,
'no_unused_imports' => true,
'not_operator_with_successor_space' => false,
'nullable_type_declaration_for_default_null_value' => true,
'ordered_imports' => false,
'phpdoc_order' => true,
'phpdoc_separation' => true,
'single_line_comment_style' => false,
'curly_braces_position' => [
'allow_single_line_empty_anonymous_classes' => true,
'anonymous_functions_opening_brace' => 'same_line',
],
])
->setFinder(Finder::create()->in(['app', 'config', 'database', 'tests']));