forked from kalimatas/php-liquid
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.php_cs.dist
More file actions
31 lines (27 loc) · 728 Bytes
/
.php_cs.dist
File metadata and controls
31 lines (27 loc) · 728 Bytes
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
<?php
$header = <<<'EOF'
This file is part of the Liquid package.
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
@package Liquid
EOF;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'psr4' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'semicolon_after_instruction' => true,
'whitespace_after_comma_in_array' => true,
'header_comment' => ['header' => $header],
])
->setIndent("\t")
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;