Skip to content

Commit 5c3e952

Browse files
authored
Merge pull request #10 from php-http/GaryPEGEOT-patch-1
Update rules to match other repos
2 parents 2ff502f + fc38615 commit 5c3e952

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

.php_cs.dist

Lines changed: 11 additions & 13 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,
167
'@Symfony:risky' => true,
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;

.styleci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@ finder:
44
path:
55
- "src"
66
- "tests"
7-
8-
enabled:
9-
- short_array_syntax

0 commit comments

Comments
 (0)