Skip to content

Commit 14a2a39

Browse files
committed
Update phpcs
1 parent 543b2a2 commit 14a2a39

File tree

3 files changed

+25
-23
lines changed

3 files changed

+25
-23
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
/.php_cs
2+
/.php_cs.cache
13
/behat.yml
24
/build/
35
/composer.lock
46
/phpspec.yml
57
/phpunit.xml
68
/vendor/
7-
/.php_cs.cache

.php_cs

Lines changed: 0 additions & 22 deletions
This file was deleted.

.php_cs.dist

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
/*
4+
* Configuration for fabpot/php-cs-fixer
5+
*
6+
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
7+
*/
8+
9+
$finder = PhpCsFixer\Finder::create()
10+
->in('src')
11+
->in('spec')
12+
;
13+
return PhpCsFixer\Config::create()
14+
->setRules([
15+
'@PSR2' => true,
16+
'@Symfony' => true,
17+
'array_syntax' => [
18+
'syntax' => 'short',
19+
],
20+
'no_empty_phpdoc' => true,
21+
'no_superfluous_phpdoc_tags' => true,
22+
])
23+
->setFinder($finder);

0 commit comments

Comments
 (0)