forked from softberg/quantum-php-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
29 lines (25 loc) · 794 Bytes
/
.php-cs-fixer.php
File metadata and controls
29 lines (25 loc) · 794 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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
$finder = Finder::create()
->in(__DIR__)
->exclude(['vendor'])
->name('*.php');
return (new Config())
->setRiskyAllowed(false)
->setRules([
// Base standard
'@PSR12' => true,
// Syntax & consistency
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['default' => 'single_space'],
'cast_spaces' => ['space' => 'single'],
'concat_space' => ['spacing' => 'one'],
'single_quote' => true,
'trailing_comma_in_multiline' => true,
'no_unused_imports' => true,
'no_extra_blank_lines' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
])
->setFinder($finder);