-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.php_cs
34 lines (32 loc) · 971 Bytes
/
.php_cs
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
<?php
$finder = Symfony\Component\Finder\Finder::create()
->notPath('wp-content')
->notPath('vendor')
->notPath('node_modules')
->in(__DIR__)
->in('./config')
->name('*.php')
->notName('*.blade.php');
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'array_syntax' => [
'syntax' => 'short',
],
'ordered_imports' => [
'sortAlgorithm' => 'alpha',
],
'no_unused_imports' => true,
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true,
],
'full_opening_tag' => true,
'yoda_style' => [
'always_move_variable' => true,
'equal' => true,
'identical' => true,
'less_and_greater' => true,
],
])
->setFinder($finder);