Skip to content

Commit 3d0c128

Browse files
test(phpcsfixer): Change name of phpcs fixer config file
1 parent 5b22172 commit 3d0c128

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ vendor
77

88
#Tools
99
super-linter.log
10-
.php_cs.cache
10+
.php-cs-fixer.cache
11+
.php-cs-fixer.php
1112

1213
# App
1314
/var/

.php-cs-fixer.php renamed to .php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

33
if (!file_exists(__DIR__.'/src')) {
4-
exit(0);
4+
exit(1);
55
}
66

7-
$config = new PhpCsFixer\Config;
7+
$config = new PhpCsFixer\Config("crowdsec-php-lib");
88
return $config
99
->setRules([
1010
'@Symfony' => true,

docs/ddev.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ ddev composer update --working-dir=./my-own-modules/crowdsec-php-lib/tools/php-c
233233
And then:
234234

235235
```
236-
ddev exec PHP_CS_FIXER_IGNORE_ENV=1 ./my-own-modules/crowdsec-php-lib/tools/php-cs-fixer/vendor/bin/php-cs-fixer fix ./my-own-modules/crowdsec-php-lib
236+
ddev phpcsfixer my-own-modules/crowdsec-php-lib tools/php-cs-fixer
237237
238238
```
239239

0 commit comments

Comments
 (0)