-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
33 lines (31 loc) · 843 Bytes
/
.php-cs-fixer.php
File metadata and controls
33 lines (31 loc) · 843 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
<?php
$finder = PhpCsFixer\Finder::create()
->notPath('node_modules')
->notPath('vendor')
->notPath('wp-content')
->in(__DIR__)
->in('./config')
->name('*.php')
->notName('*.blade.php')
->ignoreDotFiles(true)
->ignoreVCS(true);
return (new PhpCsFixer\Config)
->setRules([
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short',
],
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'no_unused_imports' => true,
'binary_operator_spaces' => [
'default' => 'single_space',
'operators' => [
'=>' => null,
'|' => 'no_space',
]
],
'full_opening_tag' => true,
])
->setFinder($finder);