Skip to content

Commit 8226626

Browse files
authored
Create .php-cs-fixer.php
1 parent a9ed9ec commit 8226626

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.php-cs-fixer.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
$dirs = [
4+
'src',
5+
'tests',
6+
];
7+
8+
return (new PhpCsFixer\Config())
9+
->setRiskyAllowed(true)
10+
->setRules([
11+
'@PSR2' => true,
12+
'@Symfony:risky' => true,
13+
'@PHP71Migration:risky' => true,
14+
'@PHP73Migration' => true,
15+
'blank_line_after_opening_tag' => true,
16+
'method_argument_space' => false,
17+
])
18+
->setFinder((new PhpCsFixer\Finder())
19+
->in(
20+
array_map(
21+
static fn (string $dir) => __DIR__ . '/' . $dir,
22+
$dirs,
23+
)
24+
),
25+
);

0 commit comments

Comments
 (0)