Skip to content

Commit 9a23e29

Browse files
committed
Improve php cs fixer
1 parent 47e4384 commit 9a23e29

File tree

4 files changed

+21
-18
lines changed

4 files changed

+21
-18
lines changed

.gitattributes

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
.editorconfig export-ignore
1+
.editorconfig export-ignore
22
.gitattributes export-ignore
33
/.github/ export-ignore
44
.gitignore export-ignore
5-
/.php_cs export-ignore
5+
/.php_cs.dist export-ignore
66
/.scrutinizer.yml export-ignore
77
/.styleci.yml export-ignore
88
/.travis.yml export-ignore
9-
/behat.yml.dist export-ignore
10-
/features/ export-ignore
119
/phpspec.ci.yml export-ignore
1210
/phpspec.yml.dist export-ignore
1311
/phpunit.xml.dist export-ignore

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/behat.yml
1+
.php_cs
2+
.php_cs.cache
23
/build/
34
/composer.lock
45
/phpspec.yml

.php_cs

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

.php_cs.dist

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
$config = PhpCsFixer\Config::create()
4+
->setRiskyAllowed(true)
5+
->setRules([
6+
'@Symfony' => true,
7+
'array_syntax' => ['syntax' => 'short'],
8+
'single_line_throw' => false,
9+
])
10+
->setFinder(
11+
PhpCsFixer\Finder::create()
12+
->in(__DIR__.'/src')
13+
->name('*.php')
14+
)
15+
;
16+
17+
return $config;

0 commit comments

Comments
 (0)