Skip to content

Commit 2193f70

Browse files
committed
Apply php-cs-fixer
1 parent 4f5cac4 commit 2193f70

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.php_cs.cache
2+
cs_fixer_tmp_*
13
.idea/
24
vendor/
35
.composer.json

.php_cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
// see https://github.com/FriendsOfPHP/PHP-CS-Fixerù
4+
5+
$finder = PhpCsFixer\Finder::create()
6+
->in(array(__DIR__.'/bin', __DIR__.'/src', __DIR__.'/tests', __DIR__.'/tools'))
7+
;
8+
9+
return PhpCsFixer\Config::create()
10+
->setRules(array(
11+
'@PSR1' => true,
12+
'@PSR2' => true,
13+
'@Symfony' => true,
14+
'array_syntax' => array('syntax' => 'long'),
15+
'phpdoc_order' => true,
16+
))
17+
->setFinder($finder)
18+
;

0 commit comments

Comments
 (0)