-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
45 lines (39 loc) · 1.04 KB
/
.php-cs-fixer.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
34
35
36
37
38
39
40
41
42
43
44
45
<?php
/**
* This file is part of the package demosplan.
*
* (c) 2010-present DEMOS E-Partizipation GmbH, for more information see the license file.
*
* All rights reserved
*/
require_once __DIR__.'/vendor/autoload.php';
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude([
'lib',
'node_modules',
'services',
'vendor',
]);
$config = new PhpCsFixer\Config();
$config
->setRiskyAllowed(true)
->setRules(
[
'array_syntax' => ['syntax' => 'short'],
'@PSR2' => true,
'@Symfony' => true,
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align',
],
],
'global_namespace_import' => true,
'phpdoc_no_alias_tag' => [
'replacements' => ['type' => 'var', 'link' => 'see'],
],
]
)
->setCacheFile('.php-cs-fixer.cache')
->setFinder($finder);
return $config;