forked from webinarium/DataTablesBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.dist.php
33 lines (29 loc) · 1.07 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 = (new PhpCsFixer\Finder())
->in(realpath(__DIR__ . '/src'))
->in(realpath(__DIR__ . '/tests'))
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
//--------------------------------------------------------------
// Rule sets
//--------------------------------------------------------------
'@PSR1' => true,
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@DoctrineAnnotation' => true,
'@PHP70Migration' => true,
//--------------------------------------------------------------
// Rules override
//--------------------------------------------------------------
'binary_operator_spaces' => ['default' => 'align'],
'native_function_invocation' => false,
'self_static_accessor' => true,
'single_line_comment_spacing' => false,
])
->setFinder($finder)
;