-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.php_cs.dist
44 lines (40 loc) · 1.38 KB
/
.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
38
39
40
41
42
43
44
<?php
$fileHeaderComment = <<<COMMENT
This file is part of the pd-admin pd-menu package.
@package pd-menu
@license LICENSE
@author Ramazan APAYDIN <[email protected]>
@link https://github.com/appaydin/pd-menu
COMMENT;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => ['syntax' => 'short'],
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both', 'commentType' => 'PHPDoc'],
'linebreak_after_opening_tag' => true,
'mb_str_functions' => true,
'no_php4_constructor' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'php_unit_strict' => true,
'phpdoc_order' => true,
'semicolon_after_instruction' => true,
'strict_comparison' => true,
'strict_param' => true,
'blank_line_after_namespace' => true,
'class_definition' => true,
'multiline_comment_opening_closing' => true,
'single_line_comment_style' => true,
'single_blank_line_before_namespace' => true,
'phpdoc_trim' => true,
'no_extra_consecutive_blank_lines' => true
])
->setFinder($finder)
->setCacheFile(__DIR__.'.php_cs.cache')
;