Skip to content

Commit 69bc8b1

Browse files
committed
.githooks maintenance
1 parent ae212e8 commit 69bc8b1

File tree

3 files changed

+16
-154
lines changed

3 files changed

+16
-154
lines changed

.githooks/pre-commit

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ else
3535
exit 1
3636
fi
3737

38-
$PHP_CS_FIXER fix --config=.php_cs.dist ${FILES} >/dev/null 2>&1
38+
$PHP_CS_FIXER fix --config=.php-cs-fixer.dist.php ${FILES} >/dev/null 2>&1
3939
git add ${FILES}
4040

4141
# output=`$PSALM --report=psalmCommitErrors.txt --config=psalmCommit.xml ${FILES} >/dev/null 2>&1`

.php-cs-fixer.dist.php

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?php
2+
/*
3+
* This document has been generated with
4+
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.0.0-rc.1|configurator
5+
* you can change this configuration by importing this file.
6+
*
7+
*/
8+
9+
$config = include '../phpfui/PhpCsFixer.php';
10+
11+
return $config->setFinder(PhpCsFixer\Finder::create()
12+
->exclude('vendor')
13+
->in(__DIR__.'\src')
14+
->in(__DIR__.'\tests')
15+
);

.php_cs.dist

-153
This file was deleted.

0 commit comments

Comments
 (0)