Skip to content

Commit 2ed6754

Browse files
Merge pull request #9035 from Sesquipedalian/3.0/misc
[3.0] Composer and PHP-CS-Fixer updates
2 parents 1638545 + a4e1a10 commit 2ed6754

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
new SMF\Fixer\ClassNotation\SectionComments(),
3636
])
3737
->setRules([
38-
'@PER-CS2.0' => true,
38+
'@PER-CS2x0' => true,
3939

4040
// PSR12 overrides.
4141
'no_break_comment' => false, // A bit buggy with comments.

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@
1919
"friendsofphp/php-cs-fixer": "^3.40"
2020
},
2121
"scripts": {
22-
"lint": "php-cs-fixer --quiet check --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") || php-cs-fixer check --diff --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes",
23-
"lint-fix": "php-cs-fixer fix -v --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes"
22+
"lint": "php-cs-fixer --quiet check --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes || php-cs-fixer check --diff --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes",
23+
"lint-fix": "php-cs-fixer fix -v --config .php-cs-fixer.dist.php --path-mode=intersection $(git diff --name-only \"*.php\") --allow-risky=yes",
24+
"post-install-cmd": "php ./vendor/simplemachines/build-tools/secure-vendor-dir.php",
25+
"post-update-cmd": "php ./vendor/simplemachines/build-tools/secure-vendor-dir.php"
2426
},
2527
"config": {
2628
"platform": {

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)