-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
36 lines (33 loc) · 1001 Bytes
/
Copy path.php-cs-fixer.dist.php
File metadata and controls
36 lines (33 loc) · 1001 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
27
28
29
30
31
32
33
34
35
36
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in([__DIR__ . '/src', __DIR__ . '/tests'])
->name('*.php');
return new PhpCsFixer\Config()
->setRiskyAllowed(true)
->setRules([
'@PER-CS2.0' => true,
'@PER-CS2.0:risky' => true,
'@PHP84Migration' => true,
'@PSR12' => true,
'@PHP83Migration' => true,
'@PhpCsFixer:risky' => true,
'declare_strict_types' => true,
'native_function_invocation' => [
'include' => ['@all'],
'scope' => 'all',
'strict' => true,
],
'native_constant_invocation' => [
'fix_built_in' => true,
'exclude' => ['null', 'true', 'false'],
'scope' => 'all',
'strict' => true,
],
'no_unused_imports' => true,
'ordered_imports' => true,
'binary_operator_spaces' => [
'default' => 'single_space',
],
])
->setFinder($finder);