Skip to content

Commit 7fcc3b7

Browse files
committed
ci(config): Update config files
1 parent d03c47a commit 7fcc3b7

68 files changed

Lines changed: 78 additions & 72 deletions

Some content is hidden

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

.php-cs-fixer-custom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
declare(strict_types=1);
77

88
/**
9-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
9+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
1010
*
1111
* For the full copyright and license information, please view
1212
* the LICENSE file that was distributed with this source code.

.php-cs-fixer.dist.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
6+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.
@@ -52,6 +52,9 @@
5252
})()
5353
)
5454
->withCustomFixers(Fixers::fromFixers($forceFQCNFixer = new ForceFQCNFixer))
55+
->withRules(Rules::fromArray([
56+
$forceFQCNFixer->getName() => true,
57+
]))
5558
->withCustomFixers(Fixers::fromFixers(...$erickSkrauchFixers = array_filter(
5659
iterator_to_array(new ErickSkrauch\PhpCsFixer\Fixers),
5760
static fn (FixerInterface $fixer): bool => !$fixer instanceof DeprecatedFixerInterface
@@ -130,7 +133,6 @@ static function (array $carry, FixerInterface $fixer): array {
130133
'@PHPUnit10x0Migration:risky' => true,
131134
]))
132135
->withRules(Rules::fromArray([
133-
$forceFQCNFixer->getName() => true,
134136
'align_multiline_comment' => [
135137
'comment_type' => 'phpdocs_only',
136138
],

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
3+
Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
66
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the

_ide_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
6+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

composer-bump

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
declare(strict_types=1);
55

66
/**
7-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
7+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
88
*
99
* For the full copyright and license information, please view
1010
* the LICENSE file that was distributed with this source code.

composer-dependency-analyser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
6+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

composer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@
219219
"@jack:breakpoint",
220220
"@jack:open-versions-dry-run",
221221
"@jack:raise-to-installed-dry-run",
222-
"@php-cs-fixer:custom-fix-dry-run",
223222
"@phpmnd",
224223
"@phpstan:analyse",
225224
"@rector:process-dry-run",
@@ -235,6 +234,8 @@
235234
"@gitleaks",
236235
"@lint-md",
237236
"@peck",
237+
"@php-cs-fixer:custom-fix-dry-run",
238+
"@php-cs-fixer:custom-ln-config",
238239
"@zhlint"
239240
],
240241
"checks:required": [
@@ -365,7 +366,10 @@
365366
"@php-cs-fixer:custom-fix --dry-run"
366367
],
367368
"php-cs-fixer:custom-list-files": "@php-cs-fixer:custom list-files",
368-
"php-cs-fixer:custom-ln-config": "ln -f vendor/guanguans/php-cs-fixer-custom-fixers/.php-cs-fixer-custom.php .php-cs-fixer-custom.php",
369+
"php-cs-fixer:custom-ln-config": [
370+
"ln -f vendor/guanguans/php-cs-fixer-custom-fixers/.php-cs-fixer-custom.php .php-cs-fixer-custom.php",
371+
"YEAR=$(date +%Y); sed -i '' -e 's|guanguans/php-cs-fixer-custom-fixers|guanguans/laravel-soar|g' -e \"s|2025-$YEAR|2020-$YEAR|g\" -e \"s|2025|2020-$YEAR|g\" .php-cs-fixer-custom.php"
372+
],
369373
"php-cs-fixer:fix": "@php-cs-fixer fix --show-progress=dots --diff",
370374
"php-cs-fixer:fix-dry-run": "@php-cs-fixer:fix --dry-run",
371375
"php-cs-fixer:list-files": "@php-cs-fixer list-files",
@@ -420,8 +424,8 @@
420424
"@putenv:php",
421425
"$PHP82 rule-doc-generator --ansi -vv"
422426
],
423-
"rule-doc-generator:rector-generate": "@rule-doc-generator generate src/Support/Rectors/ --output-file=src/Support/Rectors/rector-rules-overview.md --categorize=rector",
424-
"rule-doc-generator:rector-validate": "@rule-doc-generator validate src/Support/Rectors/",
427+
"rule-doc-generator:generate": "@rule-doc-generator generate src/Support/Rectors/ --output-file=src/Support/Rectors/rules-overview.md",
428+
"rule-doc-generator:validate": "@rule-doc-generator validate src/Support/Rectors/",
425429
"sk": "@php vendor/bin/swiss-knife --ansi -vv",
426430
"sk:alice-yaml-fixtures-to-php": "@sk alice-yaml-fixtures-to-php --help",
427431
"sk:check-commented-code": "@sk check-commented-code src/ --line-limit=5 --skip-file=src/Support/Utils.php",

config/soar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
declare(strict_types=1);
44

55
/**
6-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
6+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
77
*
88
* For the full copyright and license information, please view
99
* the LICENSE file that was distributed with this source code.

monorepo-builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
declare(strict_types=1);
66

77
/**
8-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
8+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
99
*
1010
* For the full copyright and license information, please view
1111
* the LICENSE file that was distributed with this source code.

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
declare(strict_types=1);
77

88
/**
9-
* Copyright (c) 2020-2025 guanguans<ityaozm@gmail.com>
9+
* Copyright (c) 2020-2026 guanguans<ityaozm@gmail.com>
1010
*
1111
* For the full copyright and license information, please view
1212
* the LICENSE file that was distributed with this source code.

0 commit comments

Comments
 (0)