Skip to content

Commit fe8fec4

Browse files
authored
Update rules to match other repos
1 parent 2ff502f commit fe8fec4

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.php_cs.dist

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
<?php
22

3-
/*
4-
* Configuration for friendsofphp/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('tests')
12-
;
13-
return PhpCsFixer\Config::create()
3+
$config = PhpCsFixer\Config::create()
4+
->setRiskyAllowed(true)
145
->setRules([
156
'@Symfony' => true,
16-
'@Symfony:risky' => true,
7+
'array_syntax' => ['syntax' => 'short'],
178
])
18-
->setRiskyAllowed(true)
19-
->setFinder($finder);
9+
->setFinder(
10+
PhpCsFixer\Finder::create()
11+
->in(__DIR__.'/src')
12+
->in(__DIR__.'/tests')
13+
->name('*.php')
14+
)
15+
;
16+
17+
return $config;

0 commit comments

Comments
 (0)