forked from liip/LiipImagineBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
34 lines (30 loc) · 982 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
$header = <<<'EOF'
This file is part of the `liip/LiipImagineBundle` project.
(c) https://github.com/liip/LiipImagineBundle/graphs/contributors
For the full copyright and license information, please view the LICENSE.md
file that was distributed with this source code.
EOF;
$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'long'],
'combine_consecutive_unsets' => true,
'linebreak_after_opening_tag' => true,
'header_comment' => ['header' => $header],
'list_syntax' => ['syntax' => 'long'],
'no_short_echo_tag' => true,
'ordered_imports' => true,
'php_unit_construct' => true,
'php_unit_dedicate_assert' => true,
'phpdoc_order' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->name("*.php")
->name("*.twig")
->exclude('vendor/var')
->in(__DIR__)
)
;