-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
33 lines (31 loc) · 1.01 KB
/
.php-cs-fixer.dist.php
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()
->in(__DIR__)
->in('src/lib')
->exclude('src/client')
->exclude('src/vendor')
->exclude('src/cache')
->exclude('src/log')
->exclude('src/config/proxy')
->exclude('devTools/core/vendor')
->exclude('src/test/functional/node_modules')
->exclude('installer/client')
// TODO:: Remove bellow excluded dirs, files
->exclude('devTools/load')
->exclude('lib')
->exclude('src/plugins/orangehrmOpenidAuthenticationPlugin')
->exclude('src/plugins/orangehrmRESTPlugin');
$config = new PhpCsFixer\Config();
return $config->setRules(
[
'@PSR12' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
'doctrine_annotation_indentation' => true,
'doctrine_annotation_spaces' => [
'after_array_assignments_equals' => false,
'before_array_assignments_equals' => false
],
'simple_to_complex_string_variable' => true,
]
)->setFinder($finder);