-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.php_cs.dist
36 lines (32 loc) · 1 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
<?php
$fileHeaderComment = <<<COMMENT
This file is part of the pdAdmin package.
@package pd-admin
@license LICENSE
@author Ramazan APAYDIN <apaydin541@gmail.com>
@link https://github.com/appaydin/pd-admin
COMMENT;
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('config')
->exclude('var')
->exclude('public')
->exclude('assets')
->exclude('templates')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit75Migration:risky' => true,
'php_unit_dedicate_assert' => ['target' => '5.6'],
'array_syntax' => ['syntax' => 'short'],
'fopen_flags' => false,
'protected_to_private' => false,
'combine_nested_dirname' => true,
'header_comment' => ['header' => $fileHeaderComment, 'separate' => 'both', 'commentType' => 'PHPDoc'],
])
->setFinder($finder)
->setCacheFile(__DIR__.'/var/cache/.php_cs.cache')
;