Skip to content

Commit 51a14ba

Browse files
authored
Merge pull request #1112 from alexander-schranz/feature/php-cs-fixer-shim
Add recipe for php-cs-fixer/shim
2 parents 3af4f6b + 8a868a8 commit 51a14ba

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$finder = (new PhpCsFixer\Finder())
4+
->in(__DIR__)
5+
->exclude('var')
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@Symfony' => true,
11+
])
12+
->setFinder($finder)
13+
;

php-cs-fixer/shim/3.0/manifest.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"aliases": ["cs-fixer-shim", "php-cs-fixer-shim"],
3+
"copy-from-recipe": {
4+
".php-cs-fixer.dist.php": ".php-cs-fixer.dist.php"
5+
},
6+
"gitignore": [
7+
"/.php-cs-fixer.php",
8+
"/.php-cs-fixer.cache"
9+
]
10+
}

0 commit comments

Comments
 (0)