Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f10dd2a

Browse files
committedMay 11, 2024·
Migrate to php-cs-fixer
1 parent 3048351 commit f10dd2a

File tree

187 files changed

+2654
-1057
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+2654
-1057
lines changed
 

‎.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
program.php
44
.phpunit.result.cache
55
/build
6+
/vendor-bin/**/vendor/
7+
.php-cs-fixer.cache

‎.php-cs-fixer.php

+13
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('test/res')
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@PER-CS2.0' => true,
11+
'no_unused_imports' => true,
12+
])
13+
->setFinder($finder);

0 commit comments

Comments
 (0)
Please sign in to comment.