Skip to content

Commit be52db2

Browse files
committed
Add php-cs-fixer
1 parent 2e7c7f4 commit be52db2

File tree

4 files changed

+15
-54
lines changed

4 files changed

+15
-54
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
.php_cs.cache
2+
.php-cs-fixer.cache
33
.phpunit.result.cache
44
composer.phar
55
composer.lock

.php-cs-fixer.dist.php

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('src')
5+
->in('tests')
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@PSR12' => true,
11+
])
12+
->setFinder($finder)
13+
;

.php_cs.dist

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

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"php": "^7.4 || ^8.0"
1717
},
1818
"require-dev": {
19+
"friendsofphp/php-cs-fixer": "^3.2",
1920
"phpstan/phpstan": "^0.12.99",
2021
"phpunit/phpunit": "^9"
2122
},

0 commit comments

Comments
 (0)