From cedf5bd62d974adddcd84521bde726dfa33dda80 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Thu, 8 Oct 2026 15:01:12 +0200 Subject: [PATCH] Apply blink formatting pass to repository sources --- blink/testdata/dirty.php | 12 ++++++------ build/config/config-downgrade.php | 2 +- .../tests-released/config/some_ecs.php | 2 +- .../src/Exception/ShouldNotHappenException.php | 4 +--- .../RemoveEventSubscriberDescriptionFixer.php | 4 ++-- .../Annotation/RemovePHPStormAnnotationFixer.php | 3 +-- .../ArrayNotation/ArrayListItemNewlineFixer.php | 3 +-- .../ArrayOpenerAndCloserNewlineFixer.php | 3 +-- .../StandaloneLineInMultilineArrayFixer.php | 3 +-- .../src/Fixer/Commenting/AbstractDocBlockFixer.php | 3 +-- .../src/Fixer/Commenting/AddMissingVarNameFixer.php | 2 +- .../Commenting/ParamReturnAndVarTagMalformsFixer.php | 4 +--- .../Commenting/RemoveParamNameReferenceFixer.php | 2 +- .../Commenting/RemoveUselessDefaultCommentFixer.php | 3 +-- .../src/Fixer/Commenting/TypeToVarTagFixer.php | 3 +-- .../src/Fixer/LineLength/LineLengthFixer.php | 3 +-- .../src/Fixer/Spacing/MethodChainingNewlineFixer.php | 3 +-- .../Spacing/StandaloneLineConstructorParamFixer.php | 3 +-- .../StandaloneLinePlainConstructorParamFixer.php | 3 +-- .../Spacing/StandaloneLinePromotedPropertyFixer.php | 3 +-- .../Spacing/StandaloneLineRequiredParamFixer.php | 3 +-- .../StandaloneLineSymfonyAttributeParamFixer.php | 3 +-- .../src/TokenAnalyzer/ChainMethodCallAnalyzer.php | 3 +-- .../src/TokenAnalyzer/ParamNewliner.php | 3 +-- .../Analyzer/FixerAnalyzer/ArrayAnalyzer.php | 3 +-- .../Analyzer/FixerAnalyzer/IndentDetector.php | 3 +-- .../Analyzer/FixerAnalyzer/TokenSkipper.php | 3 +-- .../src/TokenRunner/Arrays/ArrayItemNewliner.php | 3 +-- .../Exception/MissingImplementationException.php | 4 +--- .../FixerTransformer/FirstLineLengthResolver.php | 3 +-- .../FixerTransformer/LineLengthCloserTransformer.php | 3 +-- .../FixerTransformer/LineLengthOpenerTransformer.php | 3 +-- .../FixerTransformer/LineLengthTransformer.php | 3 +-- .../Transformer/FixerTransformer/TokensInliner.php | 3 +-- .../Transformer/FixerTransformer/TokensNewliner.php | 3 +-- .../TokenRunner/Traverser/ArrayBlockInfoFinder.php | 3 +-- .../src/TokenRunner/ValueObject/BlockInfo.php | 3 +-- .../ValueObject/LineLengthAndPosition.php | 3 +-- .../Wrapper/FixerWrapper/ArrayWrapper.php | 3 +-- .../src/TokenRunner/Whitespace/IndentResolver.php | 3 +-- .../Wrapper/FixerWrapper/ArrayWrapperFactory.php | 3 +-- .../src/ValueObject/BlockInfoMetadata.php | 3 +-- packages/coding-standard/tests/Utils/RegexTest.php | 2 +- scoper.php | 10 +++++----- src/Application/EasyCodingStandardApplication.php | 3 +-- src/Application/SingleFileProcessor.php | 3 +-- src/Blink/BlinkConfigDumper.php | 3 +-- src/Blink/BlinkRunner.php | 3 +-- src/Blink/EcsGoBinaryLocator.php | 3 +-- src/Blink/Exception/EcsGoBinaryNotFoundException.php | 4 +--- src/Caching/Cache.php | 3 +-- src/Caching/CacheFactory.php | 3 +-- src/Caching/ChangedFilesDetector.php | 3 +-- src/Caching/ValueObject/CacheFilePaths.php | 3 +-- src/Caching/ValueObject/CacheItem.php | 3 +-- src/Caching/ValueObject/Storage/FileCacheStorage.php | 3 +-- src/Config/ECSConfig.php | 6 +++--- src/Configuration/ConfigInitializer.php | 5 ++--- src/Configuration/ConfigurationFactory.php | 3 +-- src/Console/Command/CheckCommand.php | 3 +-- src/Console/Command/DumpConfigCommand.php | 3 +-- src/Console/Command/ListCheckersCommand.php | 5 ++--- src/Console/Command/WorkerCommand.php | 3 +-- src/Console/Output/ConsoleOutputFormatter.php | 3 +-- src/Console/Output/JsonOutputFormatter.php | 3 +-- src/Console/Reporter/CheckerListReporter.php | 3 +-- src/Console/Style/EasyCodingStandardStyle.php | 3 +-- src/DependencyInjection/ServiceContainerFactory.php | 2 +- src/Error/FileDiffFactory.php | 3 +-- .../ConflictingCheckersLoadedException.php | 4 +--- .../Configuration/FileNotFoundException.php | 4 +--- .../Configuration/InitializationException.php | 4 +--- .../OutputFormatterNotFoundException.php | 4 +--- .../Configuration/SourceNotFoundException.php | 4 +--- .../SuperfluousConfigurationException.php | 4 +--- .../WhitespaceConfigurationException.php | 4 +--- src/Exception/DeprecatedException.php | 4 +--- src/Exception/ShouldNotHappenException.php | 4 +--- src/Exception/VersionException.php | 4 +--- src/FileSystem/FileFilter.php | 3 +-- src/FileSystem/GitDirtyFilesResolver.php | 2 +- src/FixerRunner/Application/FixerFileProcessor.php | 2 +- src/Parallel/Application/ParallelFileProcessor.php | 3 +-- .../Exception/ParallelShouldNotHappenException.php | 4 +--- src/Parallel/ValueObject/ParallelProcess.php | 3 +-- src/Parallel/ValueObject/ProcessPool.php | 3 +-- src/Parallel/ValueObject/Schedule.php | 3 +-- src/Parallel/WorkerRunner.php | 3 +-- src/Reporter/ProcessedFileReporter.php | 3 +-- src/Skipper/Matcher/FileInfoMatcher.php | 5 ++--- .../SkipCriteriaResolver/SkippedCriteriaResolver.php | 3 +-- src/Skipper/Skipper/SkipSkipper.php | 3 +-- src/Skipper/Skipper/Skipper.php | 3 +-- src/SniffRunner/Application/SniffFileProcessor.php | 8 ++++---- src/SniffRunner/File/FileFactory.php | 3 +-- .../ValueObject/Error/CodingStandardError.php | 3 +-- src/SniffRunner/ValueObject/File.php | 4 ++-- src/Utils/ParametersMerger.php | 2 +- src/ValueObject/Configuration.php | 9 ++++----- src/ValueObject/Error/ErrorAndDiffResult.php | 4 ++-- src/ValueObject/Error/FileDiff.php | 3 +-- src/ValueObject/Error/SystemError.php | 3 +-- stubs/symfony-console-application.php | 4 +--- tests/Blink/BlinkConfigDumperTest.php | 2 +- tests/Blink/Fixture/input/Sample.php | 2 +- tests/Console/Command/CommandRegistrationTest.php | 2 +- tests/Console/Output/Source/RandomFile.php | 4 +--- .../Source/RandomFileWithEditsAndSimpleOffset.php | 2 -- .../Output/Source/RandomFileWithSimpleOffset.php | 6 +----- .../deprecated-closure-config.php | 3 +-- tests/Finder/SourceFinderSource/Source/SomeClass.php | 4 +--- .../Source/whatever/.some_dotfile.php | 3 +-- .../Skipper/Skip/Source/AnotherClassToSkip.php | 4 +--- .../Skipper/Skipper/Skip/Source/NotSkippedClass.php | 4 +--- .../Skipper/Skipper/Skip/Source/SomeClassToSkip.php | 4 +--- .../Skipper/Skipper/Fixture/Element/FifthElement.php | 4 +--- .../Skipper/Skipper/Fixture/Element/SixthSense.php | 4 +--- .../Skipper/Skipper/Fixture/Element/ThreeMan.php | 4 +--- tests/SniffRunner/DI/Source/AnotherSniff.php | 4 +--- 119 files changed, 141 insertions(+), 270 deletions(-) diff --git a/blink/testdata/dirty.php b/blink/testdata/dirty.php index 4c1a5f5aaa1..8fc74e626ed 100644 --- a/blink/testdata/dirty.php +++ b/blink/testdata/dirty.php @@ -1,12 +1,12 @@ withSkip([ '*/Tests/*', '*/tests/*', - '*/Fixtures/DirectoryExpansion/.hiddenAbove/*' + '*/Fixtures/DirectoryExpansion/.hiddenAbove/*', ]); diff --git a/build/target-repository/tests-released/config/some_ecs.php b/build/target-repository/tests-released/config/some_ecs.php index a7ffff8b0e5..ff7a6a2a542 100644 --- a/build/target-repository/tests-released/config/some_ecs.php +++ b/build/target-repository/tests-released/config/some_ecs.php @@ -7,5 +7,5 @@ return (ECSConfig::configure()) ->withSets([ // PHP 7.2+ compatible config, to enable PHP 7.2 tests - \Symplify\EasyCodingStandard\ValueObject\Set\SetList::PSR_12 + \Symplify\EasyCodingStandard\ValueObject\Set\SetList::PSR_12, ]); diff --git a/packages/coding-standard/src/Exception/ShouldNotHappenException.php b/packages/coding-standard/src/Exception/ShouldNotHappenException.php index 118c9cbd82d..975a79d662d 100644 --- a/packages/coding-standard/src/Exception/ShouldNotHappenException.php +++ b/packages/coding-standard/src/Exception/ShouldNotHappenException.php @@ -6,6 +6,4 @@ use Exception; -final class ShouldNotHappenException extends Exception -{ -} +final class ShouldNotHappenException extends Exception {} diff --git a/packages/coding-standard/src/Fixer/Annotation/RemoveEventSubscriberDescriptionFixer.php b/packages/coding-standard/src/Fixer/Annotation/RemoveEventSubscriberDescriptionFixer.php index f45a7eb5d81..f107410e6b8 100644 --- a/packages/coding-standard/src/Fixer/Annotation/RemoveEventSubscriberDescriptionFixer.php +++ b/packages/coding-standard/src/Fixer/Annotation/RemoveEventSubscriberDescriptionFixer.php @@ -139,7 +139,7 @@ private function isEventDescriptionLine(string $docblockLine, string $methodName $descriptionWords = array_filter( $descriptionWords, - static fn (string $word): bool => $word !== 'event' + static fn(string $word): bool => $word !== 'event' ); if ($descriptionWords === []) { @@ -149,7 +149,7 @@ private function isEventDescriptionLine(string $docblockLine, string $methodName $methodWords = array_filter( $this->resolveWords($methodName), // event subscriber handlers are commonly prefixed with "on" - static fn (string $word): bool => $word !== 'on' + static fn(string $word): bool => $word !== 'on' ); sort($descriptionWords); diff --git a/packages/coding-standard/src/Fixer/Annotation/RemovePHPStormAnnotationFixer.php b/packages/coding-standard/src/Fixer/Annotation/RemovePHPStormAnnotationFixer.php index 905415da6a8..88ff566f7f8 100644 --- a/packages/coding-standard/src/Fixer/Annotation/RemovePHPStormAnnotationFixer.php +++ b/packages/coding-standard/src/Fixer/Annotation/RemovePHPStormAnnotationFixer.php @@ -27,8 +27,7 @@ final class RemovePHPStormAnnotationFixer extends AbstractSymplifyFixer public function __construct( private readonly TokenReverser $tokenReverser - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/ArrayNotation/ArrayListItemNewlineFixer.php b/packages/coding-standard/src/Fixer/ArrayNotation/ArrayListItemNewlineFixer.php index 29cbb5dd0c2..55c9fc5d9f8 100644 --- a/packages/coding-standard/src/Fixer/ArrayNotation/ArrayListItemNewlineFixer.php +++ b/packages/coding-standard/src/Fixer/ArrayNotation/ArrayListItemNewlineFixer.php @@ -27,8 +27,7 @@ public function __construct( private readonly ArrayItemNewliner $arrayItemNewliner, private readonly ArrayAnalyzer $arrayAnalyzer, private readonly ArrayBlockInfoFinder $arrayBlockInfoFinder, - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/ArrayNotation/ArrayOpenerAndCloserNewlineFixer.php b/packages/coding-standard/src/Fixer/ArrayNotation/ArrayOpenerAndCloserNewlineFixer.php index 121c7770cf0..e716d08a766 100644 --- a/packages/coding-standard/src/Fixer/ArrayNotation/ArrayOpenerAndCloserNewlineFixer.php +++ b/packages/coding-standard/src/Fixer/ArrayNotation/ArrayOpenerAndCloserNewlineFixer.php @@ -29,8 +29,7 @@ public function __construct( private readonly ArrayBlockInfoFinder $arrayBlockInfoFinder, private readonly WhitespacesFixerConfig $whitespacesFixerConfig, private readonly ArrayAnalyzer $arrayAnalyzer - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/ArrayNotation/StandaloneLineInMultilineArrayFixer.php b/packages/coding-standard/src/Fixer/ArrayNotation/StandaloneLineInMultilineArrayFixer.php index 63b1c11d0e0..2eb5a8e4a41 100644 --- a/packages/coding-standard/src/Fixer/ArrayNotation/StandaloneLineInMultilineArrayFixer.php +++ b/packages/coding-standard/src/Fixer/ArrayNotation/StandaloneLineInMultilineArrayFixer.php @@ -29,8 +29,7 @@ public function __construct( private readonly ArrayWrapperFactory $arrayWrapperFactory, private readonly TokensNewliner $tokensNewliner, private readonly BlockFinder $blockFinder - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/Commenting/AbstractDocBlockFixer.php b/packages/coding-standard/src/Fixer/Commenting/AbstractDocBlockFixer.php index 42159c2a7a0..41c05bfa704 100644 --- a/packages/coding-standard/src/Fixer/Commenting/AbstractDocBlockFixer.php +++ b/packages/coding-standard/src/Fixer/Commenting/AbstractDocBlockFixer.php @@ -25,8 +25,7 @@ abstract class AbstractDocBlockFixer extends AbstractSymplifyFixer public function __construct( protected readonly TokenReverser $tokenReverser - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/Fixer/Commenting/AddMissingVarNameFixer.php b/packages/coding-standard/src/Fixer/Commenting/AddMissingVarNameFixer.php index 9e6ccd25487..240b50e3d3b 100644 --- a/packages/coding-standard/src/Fixer/Commenting/AddMissingVarNameFixer.php +++ b/packages/coding-standard/src/Fixer/Commenting/AddMissingVarNameFixer.php @@ -44,7 +44,7 @@ protected function processDocContent(string $docContent, Tokens $tokens, int $po return Regex::replace( $docContent, self::VAR_WITHOUT_NAME_REGEX, - static fn (array $match): string => $match['open'] . $match['type'] . ' ' . $nextVariableToken->getContent() . $match['close'] + static fn(array $match): string => $match['open'] . $match['type'] . ' ' . $nextVariableToken->getContent() . $match['close'] ); } diff --git a/packages/coding-standard/src/Fixer/Commenting/ParamReturnAndVarTagMalformsFixer.php b/packages/coding-standard/src/Fixer/Commenting/ParamReturnAndVarTagMalformsFixer.php index 3485e5bf742..603a090a553 100644 --- a/packages/coding-standard/src/Fixer/Commenting/ParamReturnAndVarTagMalformsFixer.php +++ b/packages/coding-standard/src/Fixer/Commenting/ParamReturnAndVarTagMalformsFixer.php @@ -36,9 +36,7 @@ public function isCandidate(Tokens $tokens): bool /** * @param Tokens $tokens */ - public function fix(SplFileInfo $fileInfo, Tokens $tokens): void - { - } + public function fix(SplFileInfo $fileInfo, Tokens $tokens): void {} /** * @return list diff --git a/packages/coding-standard/src/Fixer/Commenting/RemoveParamNameReferenceFixer.php b/packages/coding-standard/src/Fixer/Commenting/RemoveParamNameReferenceFixer.php index b911f89accf..b96e8049ee8 100644 --- a/packages/coding-standard/src/Fixer/Commenting/RemoveParamNameReferenceFixer.php +++ b/packages/coding-standard/src/Fixer/Commenting/RemoveParamNameReferenceFixer.php @@ -35,7 +35,7 @@ protected function processDocContent(string $docContent, Tokens $tokens, int $po return Regex::replace( $docContent, self::PARAM_NAME_REGEX, - static fn ($match): string => $match['param'] . $match['paramName'] + static fn($match): string => $match['param'] . $match['paramName'] ); } } diff --git a/packages/coding-standard/src/Fixer/Commenting/RemoveUselessDefaultCommentFixer.php b/packages/coding-standard/src/Fixer/Commenting/RemoveUselessDefaultCommentFixer.php index 730834775e8..e56d9aa99f9 100644 --- a/packages/coding-standard/src/Fixer/Commenting/RemoveUselessDefaultCommentFixer.php +++ b/packages/coding-standard/src/Fixer/Commenting/RemoveUselessDefaultCommentFixer.php @@ -26,8 +26,7 @@ public function __construct( private readonly UselessDocBlockCleaner $uselessDocBlockCleaner, private readonly TokenReverser $tokenReverser, private readonly ClassNameResolver $classNameResolver, - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/Commenting/TypeToVarTagFixer.php b/packages/coding-standard/src/Fixer/Commenting/TypeToVarTagFixer.php index 5b6cf3ddbef..32c4903cc99 100644 --- a/packages/coding-standard/src/Fixer/Commenting/TypeToVarTagFixer.php +++ b/packages/coding-standard/src/Fixer/Commenting/TypeToVarTagFixer.php @@ -34,8 +34,7 @@ final class TypeToVarTagFixer extends AbstractSymplifyFixer public function __construct( private readonly TokenReverser $tokenReverser - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/LineLength/LineLengthFixer.php b/packages/coding-standard/src/Fixer/LineLength/LineLengthFixer.php index 699d662308a..2f45b9dd02c 100644 --- a/packages/coding-standard/src/Fixer/LineLength/LineLengthFixer.php +++ b/packages/coding-standard/src/Fixer/LineLength/LineLengthFixer.php @@ -73,8 +73,7 @@ public function __construct( private readonly MethodNameResolver $methodNameResolver, private readonly HeredocAnalyzer $heredocAnalyzer, private readonly ?StandaloneLineConstructorParamFixer $standaloneLineConstructorParamFixer = null - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/Spacing/MethodChainingNewlineFixer.php b/packages/coding-standard/src/Fixer/Spacing/MethodChainingNewlineFixer.php index bec0b0323b8..7bcead88f03 100644 --- a/packages/coding-standard/src/Fixer/Spacing/MethodChainingNewlineFixer.php +++ b/packages/coding-standard/src/Fixer/Spacing/MethodChainingNewlineFixer.php @@ -28,8 +28,7 @@ public function __construct( private readonly WhitespacesFixerConfig $whitespacesFixerConfig, private readonly BlockFinder $blockFinder, private readonly ChainMethodCallAnalyzer $chainMethodCallAnalyzer - ) { - } + ) {} public function getDefinition(): FixerDefinitionInterface { diff --git a/packages/coding-standard/src/Fixer/Spacing/StandaloneLineConstructorParamFixer.php b/packages/coding-standard/src/Fixer/Spacing/StandaloneLineConstructorParamFixer.php index 8a92d706ef1..291d861435d 100644 --- a/packages/coding-standard/src/Fixer/Spacing/StandaloneLineConstructorParamFixer.php +++ b/packages/coding-standard/src/Fixer/Spacing/StandaloneLineConstructorParamFixer.php @@ -24,8 +24,7 @@ final class StandaloneLineConstructorParamFixer extends AbstractSymplifyFixer public function __construct( private readonly ParamNewliner $paramNewliner, private readonly MethodNameResolver $methodNameResolver - ) { - } + ) {} /** * Must run before diff --git a/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePlainConstructorParamFixer.php b/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePlainConstructorParamFixer.php index f20f19edd88..f06aff8ad8f 100644 --- a/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePlainConstructorParamFixer.php +++ b/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePlainConstructorParamFixer.php @@ -46,8 +46,7 @@ final class StandaloneLinePlainConstructorParamFixer extends AbstractSymplifyFix public function __construct( private readonly ParamNewliner $paramNewliner, private readonly MethodNameResolver $methodNameResolver - ) { - } + ) {} /** * Must run before diff --git a/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePromotedPropertyFixer.php b/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePromotedPropertyFixer.php index f21b1b6cefe..f8920aaac29 100644 --- a/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePromotedPropertyFixer.php +++ b/packages/coding-standard/src/Fixer/Spacing/StandaloneLinePromotedPropertyFixer.php @@ -25,8 +25,7 @@ final class StandaloneLinePromotedPropertyFixer extends AbstractSymplifyFixer public function __construct( private readonly ParamNewliner $paramNewliner, private readonly MethodNameResolver $methodNameResolver - ) { - } + ) {} /** * Must run before diff --git a/packages/coding-standard/src/Fixer/Spacing/StandaloneLineRequiredParamFixer.php b/packages/coding-standard/src/Fixer/Spacing/StandaloneLineRequiredParamFixer.php index 9a970adde47..498d2d226a3 100644 --- a/packages/coding-standard/src/Fixer/Spacing/StandaloneLineRequiredParamFixer.php +++ b/packages/coding-standard/src/Fixer/Spacing/StandaloneLineRequiredParamFixer.php @@ -46,8 +46,7 @@ final class StandaloneLineRequiredParamFixer extends AbstractSymplifyFixer public function __construct( private readonly ParamNewliner $paramNewliner - ) { - } + ) {} /** * Must run before diff --git a/packages/coding-standard/src/Fixer/Spacing/StandaloneLineSymfonyAttributeParamFixer.php b/packages/coding-standard/src/Fixer/Spacing/StandaloneLineSymfonyAttributeParamFixer.php index d19ac222e93..82873581237 100644 --- a/packages/coding-standard/src/Fixer/Spacing/StandaloneLineSymfonyAttributeParamFixer.php +++ b/packages/coding-standard/src/Fixer/Spacing/StandaloneLineSymfonyAttributeParamFixer.php @@ -60,8 +60,7 @@ final class StandaloneLineSymfonyAttributeParamFixer extends AbstractSymplifyFix public function __construct( private readonly TokensNewliner $tokensNewliner - ) { - } + ) {} /** * Must run before diff --git a/packages/coding-standard/src/TokenAnalyzer/ChainMethodCallAnalyzer.php b/packages/coding-standard/src/TokenAnalyzer/ChainMethodCallAnalyzer.php index 70302565405..618cde7a943 100644 --- a/packages/coding-standard/src/TokenAnalyzer/ChainMethodCallAnalyzer.php +++ b/packages/coding-standard/src/TokenAnalyzer/ChainMethodCallAnalyzer.php @@ -14,8 +14,7 @@ final class ChainMethodCallAnalyzer public function __construct( private readonly NewlineAnalyzer $newlineAnalyzer - ) { - } + ) {} /** * Matches e.g: return app()->some(), app()->some(), (clone app)->some() diff --git a/packages/coding-standard/src/TokenAnalyzer/ParamNewliner.php b/packages/coding-standard/src/TokenAnalyzer/ParamNewliner.php index f0aa6b3a0df..a161f9ae2a9 100644 --- a/packages/coding-standard/src/TokenAnalyzer/ParamNewliner.php +++ b/packages/coding-standard/src/TokenAnalyzer/ParamNewliner.php @@ -16,8 +16,7 @@ public function __construct( private BlockFinder $blockFinder, private TokensNewliner $tokensNewliner, - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/ArrayAnalyzer.php b/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/ArrayAnalyzer.php index 818c7d453f6..1ffaa84021f 100644 --- a/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/ArrayAnalyzer.php +++ b/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/ArrayAnalyzer.php @@ -13,8 +13,7 @@ { public function __construct( private TokenSkipper $tokenSkipper - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/IndentDetector.php b/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/IndentDetector.php index 5d4fd436d30..afe8885fca3 100644 --- a/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/IndentDetector.php +++ b/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/IndentDetector.php @@ -12,8 +12,7 @@ { public function __construct( private WhitespacesFixerConfig $whitespacesFixerConfig - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/TokenSkipper.php b/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/TokenSkipper.php index 4dc746cb7ce..ae59278aeda 100644 --- a/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/TokenSkipper.php +++ b/packages/coding-standard/src/TokenRunner/Analyzer/FixerAnalyzer/TokenSkipper.php @@ -15,8 +15,7 @@ { public function __construct( private BlockFinder $blockFinder - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Arrays/ArrayItemNewliner.php b/packages/coding-standard/src/TokenRunner/Arrays/ArrayItemNewliner.php index 2efaf7bee60..78896cea8e2 100644 --- a/packages/coding-standard/src/TokenRunner/Arrays/ArrayItemNewliner.php +++ b/packages/coding-standard/src/TokenRunner/Arrays/ArrayItemNewliner.php @@ -15,8 +15,7 @@ public function __construct( private ArrayAnalyzer $arrayAnalyzer, private WhitespacesFixerConfig $whitespacesFixerConfig - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Exception/MissingImplementationException.php b/packages/coding-standard/src/TokenRunner/Exception/MissingImplementationException.php index b3cbd8d2957..6bd2dc2b36a 100644 --- a/packages/coding-standard/src/TokenRunner/Exception/MissingImplementationException.php +++ b/packages/coding-standard/src/TokenRunner/Exception/MissingImplementationException.php @@ -6,6 +6,4 @@ use Exception; -final class MissingImplementationException extends Exception -{ -} +final class MissingImplementationException extends Exception {} diff --git a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/FirstLineLengthResolver.php b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/FirstLineLengthResolver.php index e0bc51a8ed8..935d7f19e2e 100644 --- a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/FirstLineLengthResolver.php +++ b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/FirstLineLengthResolver.php @@ -15,8 +15,7 @@ { public function __construct( private LineLengthAndPositionFactory $lineLengthAndPositionFactory - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthCloserTransformer.php b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthCloserTransformer.php index 4a6ff995b74..971aa0f3e06 100644 --- a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthCloserTransformer.php +++ b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthCloserTransformer.php @@ -17,8 +17,7 @@ public function __construct( private CallAnalyzer $callAnalyzer, private TokenFinder $tokenFinder - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthOpenerTransformer.php b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthOpenerTransformer.php index 01905ef1222..2e751906a7b 100644 --- a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthOpenerTransformer.php +++ b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthOpenerTransformer.php @@ -14,8 +14,7 @@ { public function __construct( private CallAnalyzer $callAnalyzer - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthTransformer.php b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthTransformer.php index 8cfb81649fd..ddb51616f61 100644 --- a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthTransformer.php +++ b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/LineLengthTransformer.php @@ -17,8 +17,7 @@ public function __construct( private TokensInliner $tokensInliner, private FirstLineLengthResolver $firstLineLengthResolver, private TokensNewliner $tokensNewliner - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensInliner.php b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensInliner.php index 9e2fc191a46..a4306f14f26 100644 --- a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensInliner.php +++ b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensInliner.php @@ -13,8 +13,7 @@ { public function __construct( private TokenSkipper $tokenSkipper - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensNewliner.php b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensNewliner.php index b89e9a747be..b5188672071 100644 --- a/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensNewliner.php +++ b/packages/coding-standard/src/TokenRunner/Transformer/FixerTransformer/TokensNewliner.php @@ -20,8 +20,7 @@ public function __construct( private LineLengthOpenerTransformer $lineLengthOpenerTransformer, private WhitespacesFixerConfig $whitespacesFixerConfig, private IndentResolver $indentResolver - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Traverser/ArrayBlockInfoFinder.php b/packages/coding-standard/src/TokenRunner/Traverser/ArrayBlockInfoFinder.php index 18069edf7de..288b6acbf29 100644 --- a/packages/coding-standard/src/TokenRunner/Traverser/ArrayBlockInfoFinder.php +++ b/packages/coding-standard/src/TokenRunner/Traverser/ArrayBlockInfoFinder.php @@ -14,8 +14,7 @@ { public function __construct( private BlockFinder $blockFinder - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/ValueObject/BlockInfo.php b/packages/coding-standard/src/TokenRunner/ValueObject/BlockInfo.php index c9a2ac9ea0d..45dd6b556dd 100644 --- a/packages/coding-standard/src/TokenRunner/ValueObject/BlockInfo.php +++ b/packages/coding-standard/src/TokenRunner/ValueObject/BlockInfo.php @@ -9,8 +9,7 @@ public function __construct( private int $start, private int $end - ) { - } + ) {} public function getStart(): int { diff --git a/packages/coding-standard/src/TokenRunner/ValueObject/LineLengthAndPosition.php b/packages/coding-standard/src/TokenRunner/ValueObject/LineLengthAndPosition.php index 04a1b84eede..65ad3de57ff 100644 --- a/packages/coding-standard/src/TokenRunner/ValueObject/LineLengthAndPosition.php +++ b/packages/coding-standard/src/TokenRunner/ValueObject/LineLengthAndPosition.php @@ -9,8 +9,7 @@ public function __construct( private int $lineLength, private int $currentPosition - ) { - } + ) {} public function getLineLength(): int { diff --git a/packages/coding-standard/src/TokenRunner/ValueObject/Wrapper/FixerWrapper/ArrayWrapper.php b/packages/coding-standard/src/TokenRunner/ValueObject/Wrapper/FixerWrapper/ArrayWrapper.php index 5ca048bdc81..a037e9b5264 100644 --- a/packages/coding-standard/src/TokenRunner/ValueObject/Wrapper/FixerWrapper/ArrayWrapper.php +++ b/packages/coding-standard/src/TokenRunner/ValueObject/Wrapper/FixerWrapper/ArrayWrapper.php @@ -24,8 +24,7 @@ public function __construct( private Tokens $tokens, private BlockInfo $blockInfo, private TokenSkipper $tokenSkipper - ) { - } + ) {} public function isAssociativeArray(): bool { diff --git a/packages/coding-standard/src/TokenRunner/Whitespace/IndentResolver.php b/packages/coding-standard/src/TokenRunner/Whitespace/IndentResolver.php index ad0bdf4073f..87521282074 100644 --- a/packages/coding-standard/src/TokenRunner/Whitespace/IndentResolver.php +++ b/packages/coding-standard/src/TokenRunner/Whitespace/IndentResolver.php @@ -14,8 +14,7 @@ public function __construct( private IndentDetector $indentDetector, private WhitespacesFixerConfig $whitespacesFixerConfig - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/TokenRunner/Wrapper/FixerWrapper/ArrayWrapperFactory.php b/packages/coding-standard/src/TokenRunner/Wrapper/FixerWrapper/ArrayWrapperFactory.php index 3c050cab792..1e281fd0157 100644 --- a/packages/coding-standard/src/TokenRunner/Wrapper/FixerWrapper/ArrayWrapperFactory.php +++ b/packages/coding-standard/src/TokenRunner/Wrapper/FixerWrapper/ArrayWrapperFactory.php @@ -14,8 +14,7 @@ { public function __construct( private TokenSkipper $tokenSkipper - ) { - } + ) {} /** * @param Tokens $tokens diff --git a/packages/coding-standard/src/ValueObject/BlockInfoMetadata.php b/packages/coding-standard/src/ValueObject/BlockInfoMetadata.php index 2450e86a7f8..d5a07a87afa 100644 --- a/packages/coding-standard/src/ValueObject/BlockInfoMetadata.php +++ b/packages/coding-standard/src/ValueObject/BlockInfoMetadata.php @@ -11,8 +11,7 @@ public function __construct( private string $blockType, private BlockInfo $blockInfo - ) { - } + ) {} public function getBlockType(): string { diff --git a/packages/coding-standard/tests/Utils/RegexTest.php b/packages/coding-standard/tests/Utils/RegexTest.php index eb9719471f7..61c9ba369a5 100644 --- a/packages/coding-standard/tests/Utils/RegexTest.php +++ b/packages/coding-standard/tests/Utils/RegexTest.php @@ -44,7 +44,7 @@ public function testReplaceWithDefaultRemovesMatch(): void public function testReplaceWithCallable(): void { - $result = Regex::replace('a1b', '#\d#', static fn (array $match): string => '[' . $match[0] . ']'); + $result = Regex::replace('a1b', '#\d#', static fn(array $match): string => '[' . $match[0] . ']'); $this->assertSame('a[1]b', $result); } diff --git a/scoper.php b/scoper.php index 37bd793e191..792de42cc1e 100644 --- a/scoper.php +++ b/scoper.php @@ -14,7 +14,7 @@ // @see https://github.com/humbug/php-scoper/blob/cb23986d9309a10eaa284242f2169723af4e4a7e/docs/further-reading.md#further-reading $polyfillsBootstraps = array_map( - static fn (SplFileInfo $fileInfo) => $fileInfo->getPathname(), + static fn(SplFileInfo $fileInfo) => $fileInfo->getPathname(), iterator_to_array( Finder::create() ->files() @@ -25,7 +25,7 @@ ); $polyfillsStubs = array_map( - static fn (SplFileInfo $fileInfo) => $fileInfo->getPathname(), + static fn(SplFileInfo $fileInfo) => $fileInfo->getPathname(), iterator_to_array( Finder::create() ->files() @@ -112,9 +112,9 @@ static function (string $filePath, string $prefix, string $content): string { // fixes https://github.com/easy-coding-standard/ecs-src/issues/4 function (string $filePath, string $prefix, string $content): string { if ( - ! str_ends_with($filePath, 'src/Testing/PHPUnit/AbstractCheckerTestCase.php') && - ! str_ends_with($filePath, 'src/Testing/PHPUnit/AbstractTestCase.php') && - ! str_ends_with($filePath, 'src/Fixer/PhpUnit/PhpUnitTestClassRequiresCoversFixer.php') + ! str_ends_with($filePath, 'src/Testing/PHPUnit/AbstractCheckerTestCase.php') + && ! str_ends_with($filePath, 'src/Testing/PHPUnit/AbstractTestCase.php') + && ! str_ends_with($filePath, 'src/Fixer/PhpUnit/PhpUnitTestClassRequiresCoversFixer.php') ) { return $content; } diff --git a/src/Application/EasyCodingStandardApplication.php b/src/Application/EasyCodingStandardApplication.php index 7a7c4cde794..a5be22d1622 100644 --- a/src/Application/EasyCodingStandardApplication.php +++ b/src/Application/EasyCodingStandardApplication.php @@ -39,8 +39,7 @@ public function __construct( private ParallelFileProcessor $parallelFileProcessor, private CpuCoreCountProvider $cpuCoreCountProvider, private ParametersMerger $parametersMerger - ) { - } + ) {} /** * @return array{coding_standard_errors?: CodingStandardError[], file_diffs?: FileDiff[], system_errors?: SystemError[]|string[], system_errors_count?: int, files_count?: int} diff --git a/src/Application/SingleFileProcessor.php b/src/Application/SingleFileProcessor.php index 1f2259981ab..8360b8914c8 100644 --- a/src/Application/SingleFileProcessor.php +++ b/src/Application/SingleFileProcessor.php @@ -16,8 +16,7 @@ public function __construct( private Skipper $skipper, private ChangedFilesDetector $changedFilesDetector, private FileProcessorCollector $fileProcessorCollector - ) { - } + ) {} /** * @return array{file_diffs?: FileDiff[], coding_standard_errors?: CodingStandardError[]} diff --git a/src/Blink/BlinkConfigDumper.php b/src/Blink/BlinkConfigDumper.php index 0941a1c57ff..8a64e9ec370 100644 --- a/src/Blink/BlinkConfigDumper.php +++ b/src/Blink/BlinkConfigDumper.php @@ -23,8 +23,7 @@ public function __construct( private SniffFileProcessor $sniffFileProcessor, private FixerFileProcessor $fixerFileProcessor, private SkippedCriteriaResolver $skippedCriteriaResolver, - ) { - } + ) {} /** * @param string[] $paths diff --git a/src/Blink/BlinkRunner.php b/src/Blink/BlinkRunner.php index 2df97fd23d6..70cdfaaa601 100644 --- a/src/Blink/BlinkRunner.php +++ b/src/Blink/BlinkRunner.php @@ -20,8 +20,7 @@ { public function __construct( private EcsGoBinaryLocator $ecsGoBinaryLocator, - ) { - } + ) {} /** * @param array{paths: string[], rules: array, skips: array} $configData diff --git a/src/Blink/EcsGoBinaryLocator.php b/src/Blink/EcsGoBinaryLocator.php index d10cbacd5d8..cf68ace1727 100644 --- a/src/Blink/EcsGoBinaryLocator.php +++ b/src/Blink/EcsGoBinaryLocator.php @@ -18,8 +18,7 @@ public function __construct( // filled with per-platform blink binaries by the release build, see .github/workflows/buid_release.yaml private string $bundledDirectory = __DIR__ . '/../../bin', - ) { - } + ) {} public function locate(): string { diff --git a/src/Blink/Exception/EcsGoBinaryNotFoundException.php b/src/Blink/Exception/EcsGoBinaryNotFoundException.php index 0f6f4daaedc..10d0e133a21 100644 --- a/src/Blink/Exception/EcsGoBinaryNotFoundException.php +++ b/src/Blink/Exception/EcsGoBinaryNotFoundException.php @@ -6,6 +6,4 @@ use Exception; -final class EcsGoBinaryNotFoundException extends Exception -{ -} +final class EcsGoBinaryNotFoundException extends Exception {} diff --git a/src/Caching/Cache.php b/src/Caching/Cache.php index 2381d77a67e..9f2df93449a 100644 --- a/src/Caching/Cache.php +++ b/src/Caching/Cache.php @@ -10,8 +10,7 @@ { public function __construct( private FileCacheStorage $fileCacheStorage - ) { - } + ) {} /** * @api diff --git a/src/Caching/CacheFactory.php b/src/Caching/CacheFactory.php index af0710aa8dd..51368bd519c 100644 --- a/src/Caching/CacheFactory.php +++ b/src/Caching/CacheFactory.php @@ -16,8 +16,7 @@ { public function __construct( private Filesystem $fileSystem - ) { - } + ) {} /** * @api diff --git a/src/Caching/ChangedFilesDetector.php b/src/Caching/ChangedFilesDetector.php index 3e703eb8fe1..e4345ac3d94 100644 --- a/src/Caching/ChangedFilesDetector.php +++ b/src/Caching/ChangedFilesDetector.php @@ -19,8 +19,7 @@ public function __construct( private FileHashComputer $fileHashComputer, private Cache $cache - ) { - } + ) {} /** * @api For tests diff --git a/src/Caching/ValueObject/CacheFilePaths.php b/src/Caching/ValueObject/CacheFilePaths.php index 73a933e1aef..e6a550ead37 100644 --- a/src/Caching/ValueObject/CacheFilePaths.php +++ b/src/Caching/ValueObject/CacheFilePaths.php @@ -10,8 +10,7 @@ public function __construct( private string $firstDirectory, private string $secondDirectory, private string $filePath - ) { - } + ) {} public function getFirstDirectory(): string { diff --git a/src/Caching/ValueObject/CacheItem.php b/src/Caching/ValueObject/CacheItem.php index f2bfbded578..ee2ad0423de 100644 --- a/src/Caching/ValueObject/CacheItem.php +++ b/src/Caching/ValueObject/CacheItem.php @@ -13,8 +13,7 @@ public function __construct( private string $variableKey, private mixed $data - ) { - } + ) {} /** * @param mixed[] $properties diff --git a/src/Caching/ValueObject/Storage/FileCacheStorage.php b/src/Caching/ValueObject/Storage/FileCacheStorage.php index 3d639d91b15..44e03110f2f 100644 --- a/src/Caching/ValueObject/Storage/FileCacheStorage.php +++ b/src/Caching/ValueObject/Storage/FileCacheStorage.php @@ -19,8 +19,7 @@ public function __construct( private string $directory, private Filesystem $fileSystem - ) { - } + ) {} public function load(string $key, string $variableKey): ?string { diff --git a/src/Config/ECSConfig.php b/src/Config/ECSConfig.php index 97d9cc92f11..c2854228586 100644 --- a/src/Config/ECSConfig.php +++ b/src/Config/ECSConfig.php @@ -309,7 +309,7 @@ public function findByContract(string $contractClass): array $matchingCheckers = array_filter( $checkerInstances, - static fn (object $instance): bool => $instance instanceof $contractClass + static fn(object $instance): bool => $instance instanceof $contractClass ); return [...$instances, ...array_values($matchingCheckers)]; @@ -324,7 +324,7 @@ public function getCheckerClasses(): array { return array_values(array_filter( array_keys($this->checkerConfiguration), - fn (string $checkerClass): bool => ! isset($this->removedCheckers[$checkerClass]) + fn(string $checkerClass): bool => ! isset($this->removedCheckers[$checkerClass]) )); } @@ -416,7 +416,7 @@ private function ensureCheckerClassesAreUnique(array $checkerClasses): void { // ensure all rules are registered exactly once $checkerClassToCount = array_count_values($checkerClasses); - $duplicatedCheckerClassToCount = array_filter($checkerClassToCount, static fn (int $count): bool => $count > 1); + $duplicatedCheckerClassToCount = array_filter($checkerClassToCount, static fn(int $count): bool => $count > 1); if ($duplicatedCheckerClassToCount === []) { return; diff --git a/src/Configuration/ConfigInitializer.php b/src/Configuration/ConfigInitializer.php index a7aad654a3c..1ef7eb095e6 100644 --- a/src/Configuration/ConfigInitializer.php +++ b/src/Configuration/ConfigInitializer.php @@ -16,13 +16,12 @@ public function __construct( private EasyCodingStandardStyle $easyCodingStandardStyle, private InitPathsResolver $initPathsResolver, private \Symfony\Component\Filesystem\Filesystem $filesystem, - ) { - } + ) {} public function areSomeCheckersRegistered(): bool { $fileProcessors = $this->fileProcessorCollector->getFileProcessors(); - return array_any($fileProcessors, fn (FileProcessorInterface $fileProcessor): bool => $fileProcessor->getCheckers() !== []); + return array_any($fileProcessors, fn(FileProcessorInterface $fileProcessor): bool => $fileProcessor->getCheckers() !== []); } public function createConfig(string $projectDirectory): void diff --git a/src/Configuration/ConfigurationFactory.php b/src/Configuration/ConfigurationFactory.php index 650b65e6150..3b4d3a07d77 100644 --- a/src/Configuration/ConfigurationFactory.php +++ b/src/Configuration/ConfigurationFactory.php @@ -14,8 +14,7 @@ { public function __construct( private OutputFormatterCollector $outputFormatterCollector - ) { - } + ) {} /** * Needs to run in the start of the life cycle, since the rest of workflow uses it. diff --git a/src/Console/Command/CheckCommand.php b/src/Console/Command/CheckCommand.php index bfb4ed92895..16bf0f26046 100644 --- a/src/Console/Command/CheckCommand.php +++ b/src/Console/Command/CheckCommand.php @@ -29,8 +29,7 @@ public function __construct( private BlinkRunner $blinkRunner, private BlinkConfigDumper $blinkConfigDumper, private EasyCodingStandardStyle $easyCodingStandardStyle, - ) { - } + ) {} public function getName(): string { diff --git a/src/Console/Command/DumpConfigCommand.php b/src/Console/Command/DumpConfigCommand.php index 9ee693f0910..bd0120c6bdd 100644 --- a/src/Console/Command/DumpConfigCommand.php +++ b/src/Console/Command/DumpConfigCommand.php @@ -20,8 +20,7 @@ public function __construct( private ConfigurationFactory $configurationFactory, private BlinkConfigDumper $blinkConfigDumper, - ) { - } + ) {} public function getName(): string { diff --git a/src/Console/Command/ListCheckersCommand.php b/src/Console/Command/ListCheckersCommand.php index 2a022c57427..d06ddb9a884 100644 --- a/src/Console/Command/ListCheckersCommand.php +++ b/src/Console/Command/ListCheckersCommand.php @@ -22,8 +22,7 @@ public function __construct( private FixerFileProcessor $fixerFileProcessor, private CheckerListReporter $checkerListReporter, private SkippedCriteriaResolver $skippedCriteriaResolver - ) { - } + ) {} public function getName(): string { @@ -95,7 +94,7 @@ private function getSniffClasses(): array */ private function getObjectClasses(array $checkers): array { - $objectClasses = array_map(static fn (object $fixer): string => $fixer::class, $checkers); + $objectClasses = array_map(static fn(object $fixer): string => $fixer::class, $checkers); sort($objectClasses); return $objectClasses; diff --git a/src/Console/Command/WorkerCommand.php b/src/Console/Command/WorkerCommand.php index eb914eeb90f..563c59b7cb8 100644 --- a/src/Console/Command/WorkerCommand.php +++ b/src/Console/Command/WorkerCommand.php @@ -32,8 +32,7 @@ public function __construct( private WorkerRunner $workerRunner, private MemoryLimitter $memoryLimitter, private ConfigurationFactory $configurationFactory, - ) { - } + ) {} public function getName(): string { diff --git a/src/Console/Output/ConsoleOutputFormatter.php b/src/Console/Output/ConsoleOutputFormatter.php index 978943459bb..75fac113345 100644 --- a/src/Console/Output/ConsoleOutputFormatter.php +++ b/src/Console/Output/ConsoleOutputFormatter.php @@ -19,8 +19,7 @@ public function __construct( private EasyCodingStandardStyle $easyCodingStandardStyle, private ExitCodeResolver $exitCodeResolver - ) { - } + ) {} /** * @return ExitCode::* diff --git a/src/Console/Output/JsonOutputFormatter.php b/src/Console/Output/JsonOutputFormatter.php index 60a221b7b6e..fe80bb3ad98 100644 --- a/src/Console/Output/JsonOutputFormatter.php +++ b/src/Console/Output/JsonOutputFormatter.php @@ -21,8 +21,7 @@ public function __construct( private EasyCodingStandardStyle $easyCodingStandardStyle, private ExitCodeResolver $exitCodeResolver - ) { - } + ) {} /** * @return ExitCode::* diff --git a/src/Console/Reporter/CheckerListReporter.php b/src/Console/Reporter/CheckerListReporter.php index cc3c629a50b..6dabd4216b0 100644 --- a/src/Console/Reporter/CheckerListReporter.php +++ b/src/Console/Reporter/CheckerListReporter.php @@ -10,8 +10,7 @@ { public function __construct( private EasyCodingStandardStyle $easyCodingStandardStyle - ) { - } + ) {} /** * @param string[] $checkerClasses diff --git a/src/Console/Style/EasyCodingStandardStyle.php b/src/Console/Style/EasyCodingStandardStyle.php index 2345eb4b3b1..e743c4d2ddf 100644 --- a/src/Console/Style/EasyCodingStandardStyle.php +++ b/src/Console/Style/EasyCodingStandardStyle.php @@ -21,8 +21,7 @@ public function __construct( private OutputPrinter $outputPrinter, private ProgressBar $progressBar, private bool $isDebug = false, - ) { - } + ) {} public function writeln(string $message): void { diff --git a/src/DependencyInjection/ServiceContainerFactory.php b/src/DependencyInjection/ServiceContainerFactory.php index 606df86ceea..91466e04de7 100644 --- a/src/DependencyInjection/ServiceContainerFactory.php +++ b/src/DependencyInjection/ServiceContainerFactory.php @@ -58,7 +58,7 @@ static function (Container $container): EasyCodingStandardStyle { }); // diffing - $ecsConfig->service(DifferInterface::class, static fn (): DifferInterface => new UnifiedDiffer()); + $ecsConfig->service(DifferInterface::class, static fn(): DifferInterface => new UnifiedDiffer()); // output formatters - autodiscovered, then collected by contract for OutputFormatterCollector $ecsConfig->autodiscover(__DIR__ . '/../Console/Output'); diff --git a/src/Error/FileDiffFactory.php b/src/Error/FileDiffFactory.php index 9f34a1bbae2..f391f6f62f0 100644 --- a/src/Error/FileDiffFactory.php +++ b/src/Error/FileDiffFactory.php @@ -14,8 +14,7 @@ { public function __construct( private ColorConsoleDiffFormatter $colorConsoleDiffFormatter - ) { - } + ) {} /** * @param array|string> $appliedCheckers diff --git a/src/Exception/Configuration/ConflictingCheckersLoadedException.php b/src/Exception/Configuration/ConflictingCheckersLoadedException.php index dc5e26b19a8..4ff797e0d71 100644 --- a/src/Exception/Configuration/ConflictingCheckersLoadedException.php +++ b/src/Exception/Configuration/ConflictingCheckersLoadedException.php @@ -6,6 +6,4 @@ use Exception; -final class ConflictingCheckersLoadedException extends Exception -{ -} +final class ConflictingCheckersLoadedException extends Exception {} diff --git a/src/Exception/Configuration/FileNotFoundException.php b/src/Exception/Configuration/FileNotFoundException.php index 1baf49ced2b..0edf9632b6f 100644 --- a/src/Exception/Configuration/FileNotFoundException.php +++ b/src/Exception/Configuration/FileNotFoundException.php @@ -6,6 +6,4 @@ use Exception; -final class FileNotFoundException extends Exception -{ -} +final class FileNotFoundException extends Exception {} diff --git a/src/Exception/Configuration/InitializationException.php b/src/Exception/Configuration/InitializationException.php index f21cc12d167..815d417ff06 100644 --- a/src/Exception/Configuration/InitializationException.php +++ b/src/Exception/Configuration/InitializationException.php @@ -6,6 +6,4 @@ use Exception; -final class InitializationException extends Exception -{ -} +final class InitializationException extends Exception {} diff --git a/src/Exception/Configuration/OutputFormatterNotFoundException.php b/src/Exception/Configuration/OutputFormatterNotFoundException.php index 520fd23e92d..97d681a326d 100644 --- a/src/Exception/Configuration/OutputFormatterNotFoundException.php +++ b/src/Exception/Configuration/OutputFormatterNotFoundException.php @@ -6,6 +6,4 @@ use Exception; -final class OutputFormatterNotFoundException extends Exception -{ -} +final class OutputFormatterNotFoundException extends Exception {} diff --git a/src/Exception/Configuration/SourceNotFoundException.php b/src/Exception/Configuration/SourceNotFoundException.php index 93687f26e28..e8624bb98b8 100644 --- a/src/Exception/Configuration/SourceNotFoundException.php +++ b/src/Exception/Configuration/SourceNotFoundException.php @@ -6,6 +6,4 @@ use Exception; -final class SourceNotFoundException extends Exception -{ -} +final class SourceNotFoundException extends Exception {} diff --git a/src/Exception/Configuration/SuperfluousConfigurationException.php b/src/Exception/Configuration/SuperfluousConfigurationException.php index 8ba0be56409..bac5dc5c9e4 100644 --- a/src/Exception/Configuration/SuperfluousConfigurationException.php +++ b/src/Exception/Configuration/SuperfluousConfigurationException.php @@ -6,6 +6,4 @@ use Exception; -final class SuperfluousConfigurationException extends Exception -{ -} +final class SuperfluousConfigurationException extends Exception {} diff --git a/src/Exception/Configuration/WhitespaceConfigurationException.php b/src/Exception/Configuration/WhitespaceConfigurationException.php index de0dd6e6bc8..0c3c30e6871 100644 --- a/src/Exception/Configuration/WhitespaceConfigurationException.php +++ b/src/Exception/Configuration/WhitespaceConfigurationException.php @@ -6,6 +6,4 @@ use Exception; -final class WhitespaceConfigurationException extends Exception -{ -} +final class WhitespaceConfigurationException extends Exception {} diff --git a/src/Exception/DeprecatedException.php b/src/Exception/DeprecatedException.php index 89d3c413f13..3e6563db83c 100644 --- a/src/Exception/DeprecatedException.php +++ b/src/Exception/DeprecatedException.php @@ -9,6 +9,4 @@ /** * @api to be used */ -final class DeprecatedException extends Exception -{ -} +final class DeprecatedException extends Exception {} diff --git a/src/Exception/ShouldNotHappenException.php b/src/Exception/ShouldNotHappenException.php index 6d1a49e98c1..9718e338111 100644 --- a/src/Exception/ShouldNotHappenException.php +++ b/src/Exception/ShouldNotHappenException.php @@ -6,6 +6,4 @@ use Exception; -final class ShouldNotHappenException extends Exception -{ -} +final class ShouldNotHappenException extends Exception {} diff --git a/src/Exception/VersionException.php b/src/Exception/VersionException.php index 496ae98afb4..2ca3b871235 100644 --- a/src/Exception/VersionException.php +++ b/src/Exception/VersionException.php @@ -6,6 +6,4 @@ use Exception; -final class VersionException extends Exception -{ -} +final class VersionException extends Exception {} diff --git a/src/FileSystem/FileFilter.php b/src/FileSystem/FileFilter.php index 2e13f21fc37..d3fd4b09824 100644 --- a/src/FileSystem/FileFilter.php +++ b/src/FileSystem/FileFilter.php @@ -10,8 +10,7 @@ { public function __construct( private ChangedFilesDetector $changedFilesDetector - ) { - } + ) {} /** * @param string[] $filePaths diff --git a/src/FileSystem/GitDirtyFilesResolver.php b/src/FileSystem/GitDirtyFilesResolver.php index 576974340df..71e2939965e 100644 --- a/src/FileSystem/GitDirtyFilesResolver.php +++ b/src/FileSystem/GitDirtyFilesResolver.php @@ -21,7 +21,7 @@ public function filterDirty(array $filePaths): array return array_values(array_filter( $filePaths, - static fn (string $filePath): bool => in_array(realpath($filePath) ?: $filePath, $dirtyFilePaths, true) + static fn(string $filePath): bool => in_array(realpath($filePath) ?: $filePath, $dirtyFilePaths, true) )); } diff --git a/src/FixerRunner/Application/FixerFileProcessor.php b/src/FixerRunner/Application/FixerFileProcessor.php index 4e285fb5d88..e24a6601484 100644 --- a/src/FixerRunner/Application/FixerFileProcessor.php +++ b/src/FixerRunner/Application/FixerFileProcessor.php @@ -108,7 +108,7 @@ private function sortFixers(array $fixers): array { usort( $fixers, - static fn (FixerInterface $firstFixer, FixerInterface $secondFixer): int => $secondFixer->getPriority() <=> $firstFixer->getPriority() + static fn(FixerInterface $firstFixer, FixerInterface $secondFixer): int => $secondFixer->getPriority() <=> $firstFixer->getPriority() ); return $fixers; diff --git a/src/Parallel/Application/ParallelFileProcessor.php b/src/Parallel/Application/ParallelFileProcessor.php index 6e6f76b8c2e..39f85901fcf 100644 --- a/src/Parallel/Application/ParallelFileProcessor.php +++ b/src/Parallel/Application/ParallelFileProcessor.php @@ -40,8 +40,7 @@ public function __construct( private WorkerCommandLineFactory $workerCommandLineFactory, - ) { - } + ) {} /** * @api diff --git a/src/Parallel/Exception/ParallelShouldNotHappenException.php b/src/Parallel/Exception/ParallelShouldNotHappenException.php index b43d8ca47d0..d55be31139c 100644 --- a/src/Parallel/Exception/ParallelShouldNotHappenException.php +++ b/src/Parallel/Exception/ParallelShouldNotHappenException.php @@ -6,6 +6,4 @@ use Exception; -final class ParallelShouldNotHappenException extends Exception -{ -} +final class ParallelShouldNotHappenException extends Exception {} diff --git a/src/Parallel/ValueObject/ParallelProcess.php b/src/Parallel/ValueObject/ParallelProcess.php index 2b71d87788b..0c9f84dc9b6 100644 --- a/src/Parallel/ValueObject/ParallelProcess.php +++ b/src/Parallel/ValueObject/ParallelProcess.php @@ -47,8 +47,7 @@ public function __construct( private readonly string $command, private readonly LoopInterface $loop, private readonly int $timetoutInSeconds - ) { - } + ) {} /** * @param callable(mixed[] $onData) : void $onData diff --git a/src/Parallel/ValueObject/ProcessPool.php b/src/Parallel/ValueObject/ProcessPool.php index 54794b2ef98..6699bc6cdf1 100644 --- a/src/Parallel/ValueObject/ProcessPool.php +++ b/src/Parallel/ValueObject/ProcessPool.php @@ -19,8 +19,7 @@ final class ProcessPool public function __construct( private readonly TcpServer $tcpServer - ) { - } + ) {} public function getProcess(string $identifier): ParallelProcess { diff --git a/src/Parallel/ValueObject/Schedule.php b/src/Parallel/ValueObject/Schedule.php index 2bf298fee9c..3a1cc704f12 100644 --- a/src/Parallel/ValueObject/Schedule.php +++ b/src/Parallel/ValueObject/Schedule.php @@ -16,8 +16,7 @@ public function __construct( private int $numberOfProcesses, private array $jobs - ) { - } + ) {} public function getNumberOfProcesses(): int { diff --git a/src/Parallel/WorkerRunner.php b/src/Parallel/WorkerRunner.php index e4c71a20fe1..b3553e006c1 100644 --- a/src/Parallel/WorkerRunner.php +++ b/src/Parallel/WorkerRunner.php @@ -22,8 +22,7 @@ public function __construct( private SingleFileProcessor $singleFileProcessor, private ParametersMerger $parametersMerger - ) { - } + ) {} public function run(Encoder $encoder, Decoder $decoder, Configuration $configuration): void { diff --git a/src/Reporter/ProcessedFileReporter.php b/src/Reporter/ProcessedFileReporter.php index e8c10ef96a1..95f16e811a6 100644 --- a/src/Reporter/ProcessedFileReporter.php +++ b/src/Reporter/ProcessedFileReporter.php @@ -17,8 +17,7 @@ { public function __construct( private OutputFormatterCollector $outputFormatterCollector, - ) { - } + ) {} /** * @param array{system_errors?: SystemError[]|string[], file_diffs?: FileDiff[], coding_standard_errors?: CodingStandardError[], system_errors_count?: int, files_count?: int} $errorsAndDiffs diff --git a/src/Skipper/Matcher/FileInfoMatcher.php b/src/Skipper/Matcher/FileInfoMatcher.php index f561b8798b7..972b98db3d5 100644 --- a/src/Skipper/Matcher/FileInfoMatcher.php +++ b/src/Skipper/Matcher/FileInfoMatcher.php @@ -11,8 +11,7 @@ { public function __construct( private FnMatchPathNormalizer $fnMatchPathNormalizer, - ) { - } + ) {} /** * @param string[] $filePatterns @@ -21,7 +20,7 @@ public function doesFileInfoMatchPatterns(SplFileInfo|string $fileInfo, array $f { return array_any( $filePatterns, - fn (string $filePattern): bool => $this->doesFileInfoMatchPattern($fileInfo, $filePattern) + fn(string $filePattern): bool => $this->doesFileInfoMatchPattern($fileInfo, $filePattern) ); } diff --git a/src/Skipper/SkipCriteriaResolver/SkippedCriteriaResolver.php b/src/Skipper/SkipCriteriaResolver/SkippedCriteriaResolver.php index 77d33fccad2..9f67a83c8f6 100644 --- a/src/Skipper/SkipCriteriaResolver/SkippedCriteriaResolver.php +++ b/src/Skipper/SkipCriteriaResolver/SkippedCriteriaResolver.php @@ -38,8 +38,7 @@ final class SkippedCriteriaResolver public function __construct( private readonly PathNormalizer $pathNormalizer - ) { - } + ) {} /** * @return string[] diff --git a/src/Skipper/Skipper/SkipSkipper.php b/src/Skipper/Skipper/SkipSkipper.php index fb40a766c50..30d4e7d55c6 100644 --- a/src/Skipper/Skipper/SkipSkipper.php +++ b/src/Skipper/Skipper/SkipSkipper.php @@ -14,8 +14,7 @@ { public function __construct( private FileInfoMatcher $fileInfoMatcher - ) { - } + ) {} /** * @param array $skippedClasses diff --git a/src/Skipper/Skipper/Skipper.php b/src/Skipper/Skipper/Skipper.php index f43e24c45f5..b7229478689 100644 --- a/src/Skipper/Skipper/Skipper.php +++ b/src/Skipper/Skipper/Skipper.php @@ -19,8 +19,7 @@ public function __construct( private SkippedCriteriaResolver $skippedCriteriaResolver, private SkipSkipper $skipSkipper, private FileInfoMatcher $fileInfoMatcher, - ) { - } + ) {} public function shouldSkipElement(string|object $element): bool { diff --git a/src/SniffRunner/Application/SniffFileProcessor.php b/src/SniffRunner/Application/SniffFileProcessor.php index dbc8a927ff0..7d6b0f58745 100644 --- a/src/SniffRunner/Application/SniffFileProcessor.php +++ b/src/SniffRunner/Application/SniffFileProcessor.php @@ -167,10 +167,10 @@ private function fixFile( $appliedCheckers = $this->sniffMetadataCollector->getAppliedSniffs(); throw new RuntimeException(sprintf( - "Contents of file \"%s\" did not stabilize after %d fix iterations.\nLast diff was:\n%s\n" . - "There are probably checkers that cancel changes of each other. Try to reconfigure the checkers.\n" . - "Applied checkers:\n" . - "- %s\n", + "Contents of file \"%s\" did not stabilize after %d fix iterations.\nLast diff was:\n%s\n" + . "There are probably checkers that cancel changes of each other. Try to reconfigure the checkers.\n" + . "Applied checkers:\n" + . "- %s\n", $filePath, $this->fixer->loops, $diff, diff --git a/src/SniffRunner/File/FileFactory.php b/src/SniffRunner/File/FileFactory.php index 1d14b93f722..fe81f6a72c9 100644 --- a/src/SniffRunner/File/FileFactory.php +++ b/src/SniffRunner/File/FileFactory.php @@ -21,8 +21,7 @@ public function __construct( private Skipper $skipper, private SniffMetadataCollector $sniffMetadataCollector, private EasyCodingStandardStyle $easyCodingStandardStyle - ) { - } + ) {} public function createFromFile(string $filePath): File { diff --git a/src/SniffRunner/ValueObject/Error/CodingStandardError.php b/src/SniffRunner/ValueObject/Error/CodingStandardError.php index c17aa4f1e08..9ca2e0ee85c 100644 --- a/src/SniffRunner/ValueObject/Error/CodingStandardError.php +++ b/src/SniffRunner/ValueObject/Error/CodingStandardError.php @@ -14,8 +14,7 @@ public function __construct( private string $message, private string $checkerClass, private string $relativeFilePath - ) { - } + ) {} public function getLine(): int { diff --git a/src/SniffRunner/ValueObject/File.php b/src/SniffRunner/ValueObject/File.php index 62271331f15..5fa47610554 100644 --- a/src/SniffRunner/ValueObject/File.php +++ b/src/SniffRunner/ValueObject/File.php @@ -24,9 +24,9 @@ final class File extends BaseFile { private string $relativePath; - private string|null $activeSniffClass = null; + private ?string $activeSniffClass = null; - private string|null $previousActiveSniffClass = null; + private ?string $previousActiveSniffClass = null; /** * @var array diff --git a/src/Utils/ParametersMerger.php b/src/Utils/ParametersMerger.php index f21a5a5b037..1ff2bc6f6e3 100644 --- a/src/Utils/ParametersMerger.php +++ b/src/Utils/ParametersMerger.php @@ -18,7 +18,7 @@ public function merge(mixed $left, mixed $right): mixed return $this->mergeLeftToRightWithCallable( $left, $right, - fn ($leftValue, $rightValue): mixed => $this->merge($leftValue, $rightValue) + fn($leftValue, $rightValue): mixed => $this->merge($leftValue, $rightValue) ); } diff --git a/src/ValueObject/Configuration.php b/src/ValueObject/Configuration.php index c40b881a1ed..9722ccbdf16 100644 --- a/src/ValueObject/Configuration.php +++ b/src/ValueObject/Configuration.php @@ -20,13 +20,12 @@ public function __construct( private string $outputFormat = ConsoleOutputFormatter::NAME, private bool $isParallel = false, private ?string $config = null, - private string|null $parallelPort = null, - private string|null $parallelIdentifier = null, - private string|null $memoryLimit = null, + private ?string $parallelPort = null, + private ?string $parallelIdentifier = null, + private ?string $memoryLimit = null, private bool $showDiffs = true, private bool $isDirty = false - ) { - } + ) {} public function isFixer(): bool { diff --git a/src/ValueObject/Error/ErrorAndDiffResult.php b/src/ValueObject/Error/ErrorAndDiffResult.php index 1a88eb2f58a..418454fed25 100644 --- a/src/ValueObject/Error/ErrorAndDiffResult.php +++ b/src/ValueObject/Error/ErrorAndDiffResult.php @@ -79,7 +79,7 @@ private function sortByFileAndLine(array $errorMessages): array { usort( $errorMessages, - static fn (CodingStandardError $firstCodingStandardError, CodingStandardError $secondCodingStandardError): int => [ + static fn(CodingStandardError $firstCodingStandardError, CodingStandardError $secondCodingStandardError): int => [ $firstCodingStandardError->getRelativeFilePath(), $firstCodingStandardError->getLine(), ] @@ -97,7 +97,7 @@ private function sortByFilePath(array $fileDiffs): array { uasort( $fileDiffs, - static fn (FileDiff $firstFileDiff, FileDiff $secondFileDiff): int => $firstFileDiff->getRelativeFilePath() <=> $secondFileDiff->getRelativeFilePath() + static fn(FileDiff $firstFileDiff, FileDiff $secondFileDiff): int => $firstFileDiff->getRelativeFilePath() <=> $secondFileDiff->getRelativeFilePath() ); return $fileDiffs; diff --git a/src/ValueObject/Error/FileDiff.php b/src/ValueObject/Error/FileDiff.php index dc72810fff2..2befdecced0 100644 --- a/src/ValueObject/Error/FileDiff.php +++ b/src/ValueObject/Error/FileDiff.php @@ -19,8 +19,7 @@ public function __construct( private readonly string $diff, private readonly string $consoleFormattedDiff, private array $appliedCheckers - ) { - } + ) {} public function getDiff(): string { diff --git a/src/ValueObject/Error/SystemError.php b/src/ValueObject/Error/SystemError.php index 122cec38d4c..603e445f7e0 100644 --- a/src/ValueObject/Error/SystemError.php +++ b/src/ValueObject/Error/SystemError.php @@ -13,8 +13,7 @@ public function __construct( private int $line, private string $message, private string $relativeFilePath - ) { - } + ) {} public function getMessage(): string { diff --git a/stubs/symfony-console-application.php b/stubs/symfony-console-application.php index ffd4b5700c9..059881b6a71 100644 --- a/stubs/symfony-console-application.php +++ b/stubs/symfony-console-application.php @@ -16,7 +16,5 @@ */ class Application { - public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN') - { - } + public function __construct(string $name = 'UNKNOWN', string $version = 'UNKNOWN') {} } diff --git a/tests/Blink/BlinkConfigDumperTest.php b/tests/Blink/BlinkConfigDumperTest.php index e41113da30f..1fa7c04e3ac 100644 --- a/tests/Blink/BlinkConfigDumperTest.php +++ b/tests/Blink/BlinkConfigDumperTest.php @@ -61,7 +61,7 @@ public function testDumpReportsPathSkipAndClassSkip(): void $this->assertContains(LowercaseKeywordsFixer::class, $skipClasses); - $matchedGlob = array_filter($skipPaths, static fn (string $path): bool => str_contains($path, 'legacy')); + $matchedGlob = array_filter($skipPaths, static fn(string $path): bool => str_contains($path, 'legacy')); $this->assertNotEmpty($matchedGlob, 'expected the legacy/* path skip to be dumped'); } } diff --git a/tests/Blink/Fixture/input/Sample.php b/tests/Blink/Fixture/input/Sample.php index d9f87a9d02b..061bd519b21 100644 --- a/tests/Blink/Fixture/input/Sample.php +++ b/tests/Blink/Fixture/input/Sample.php @@ -1,3 +1,3 @@ $command::class, + static fn(object $command): string => $command::class, $this->commandRegistry->getVisible() ); diff --git a/tests/Console/Output/Source/RandomFile.php b/tests/Console/Output/Source/RandomFile.php index d28237dae28..78d287ad173 100644 --- a/tests/Console/Output/Source/RandomFile.php +++ b/tests/Console/Output/Source/RandomFile.php @@ -4,6 +4,4 @@ namespace Symplify\EasyCodingStandard\Tests\Console\Output\Source; -final class RandomFile -{ -} +final class RandomFile {} diff --git a/tests/Console/Output/Source/RandomFileWithEditsAndSimpleOffset.php b/tests/Console/Output/Source/RandomFileWithEditsAndSimpleOffset.php index a7b30ecafb0..705d9d8af62 100644 --- a/tests/Console/Output/Source/RandomFileWithEditsAndSimpleOffset.php +++ b/tests/Console/Output/Source/RandomFileWithEditsAndSimpleOffset.php @@ -1,7 +1,5 @@