-
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
44 lines (41 loc) · 1.26 KB
/
.php-cs-fixer.dist.php
File metadata and controls
44 lines (41 loc) · 1.26 KB
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
37
38
39
40
41
42
43
44
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->exclude('vendor')
->exclude('node_modules')
->exclude('storage')
->exclude('bootstrap/cache')
->notPath(['public/adminer.php', '_ide_helper.php'])
->in(__DIR__);
return new Config()
->setRules([
'@PSR12' => true,
'@PHP84Migration' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => false,
'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => ['=>' => 'single_space'],
],
'trim_array_spaces' => true,
'no_whitespace_before_comma_in_array' => true,
'whitespace_after_comma_in_array' => true,
'no_unneeded_control_parentheses' => true,
'trailing_comma_in_multiline' => [
'elements' => [
'arrays',
'arguments',
'parameters',
],
'after_heredoc' => true,
],
'single_quote' => [
'strings_containing_single_quote_chars' => false,
],
'single_trait_insert_per_statement' => false,
])
->setFinder($finder)
->setRiskyAllowed(true)
->setUsingCache(true);