Skip to content

Commit dae463b

Browse files
PHP-CS-Fixer 3.0 configuration
1 parent 926e792 commit dae463b

File tree

3 files changed

+31
-30
lines changed

3 files changed

+31
-30
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/.php-cs-fixer.cache
12
/composer.lock
23
/var/
34
/vendor/

.php-cs-fixer.dist.php

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return Camelot\CsFixer\Config::create()
6+
->addRules(
7+
Camelot\CsFixer\Rules::create()
8+
->risky()
9+
->php73()
10+
->phpUnit75()
11+
)
12+
->addRules([
13+
'@PhpCsFixer:risky' => true,
14+
'header_comment' => [
15+
'header' => <<<'EOD'
16+
This file is part of a Camelot Project package.
17+
18+
(c) The Camelot Project
19+
20+
For the full copyright and license information, please view the LICENSE file
21+
that was distributed with this source code.
22+
EOD
23+
],
24+
'native_function_invocation' => [
25+
'include' => ['@compiler_optimized']
26+
],
27+
])
28+
->in('src')
29+
->in('tests')
30+
;

.php_cs.dist

-30
This file was deleted.

0 commit comments

Comments
 (0)