forked from stwe/DatatablesBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
37 lines (31 loc) · 1016 Bytes
/
.php_cs.dist
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
<?php
$header = <<<'EOF'
This file is part of the SgDatatablesBundle package.
(c) stwe <https://github.com/stwe/DatatablesBundle>
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$finder = PhpCsFixer\Finder::create()
->exclude('vendor/')
->in(__DIR__)
->append([__DIR__.'/php-cs-fixer'])
;
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PHP56Migration' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'@PHPUnit60Migration:risky' => true,
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => ['header' => $header],
'list_syntax' => ['syntax' => 'long'],
'no_php4_constructor' => true,
'no_superfluous_phpdoc_tags' => true,
'no_useless_return' => true,
'not_operator_with_successor_space' => true,
])
->setFinder($finder)
;
return $config;