Repository Analysis

PHP-CS-Fixer/PHP-CS-Fixer

A tool to automatically fix PHP Coding Standards issues

4.2 Likely human-written View on GitHub
4.2
Adjusted Score
4.2
Raw Score
100%
Time Factor
2026-05-30
Last Push
13,522
Stars
PHP
Language
319,256
Lines of Code
1501
Files
1348
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 0LOW 1348

Pattern Findings

1348 matches across 5 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1306 hits · 1284 pts
SeverityFileLineSnippet
LOWtests/ToolInfoTest.php43 public function testIsInstalledByComposer(): void
LOWtests/ToolInfoTest.php49 public function testGetComposerVersionThrowsExceptionIfOutsideComposerScope(): void
LOWtests/FixerFactoryTest.php100 public function testRegisterBuiltInFixers(): void
LOWtests/FixerFactoryTest.php156 public function testThatCanRegisterAndGetFixers(): void
LOWtests/FixerFactoryTest.php175 public function testRegisterFixerWithOccupiedName(): void
LOWtests/FixerFactoryTest.php213 public function testUseRuleSetWithNonExistingRule(): void
LOWtests/FixerFactoryTest.php229 public function testUseRuleSetWithInvalidConfigForRule(): void
LOWtests/FixerFactoryTest.php294 public function testHasRuleWithChangedRuleSet(): void
LOWtests/FixerFactoryTest.php328 public static function provideConflictingFixersCases(): iterable
LOWtests/FixerFactoryTest.php335 public function testNoDoubleConflictReporting(): void
LOWtests/FixerFactoryTest.php412 public function testRegisterFixerInvalidName(): void
LOWtests/FixerFactoryTest.php424 public function testConfigureNonConfigurableFixer(): void
LOWtests/FixerFactoryTest.php446 public function testConfigureFixerWithNonArray($value): void
LOWtests/FixerFactoryTest.php456 public function getConfigurationDefinition(): FixerConfigurationResolverInterface
LOWtests/FixerFactoryTest.php513 public static function provideConfigureFixerWithNonArrayCases(): iterable
LOWtests/FixerFactoryTest.php524 public function testConfigurableFixerIsConfigured(): void
LOWtests/FixerFactoryTest.php532 public function getConfigurationDefinition(): FixerConfigurationResolverInterface
LOWtests/FileRemovalTest.php57 public function testCleanRemovesObservedFiles(): void
LOWtests/FileRemovalTest.php73 public function testDestructRemovesObservedFiles(): void
LOWtests/FileRemovalTest.php104 public function testDeleteNonObservedFile(): void
LOWtests/FileRemovalTest.php145 public function testShutdownRemovesObservedFilesSetup(): void
LOWtests/FileRemovalTest.php164 public function testShutdownRemovesObservedFiles(): void
LOWtests/FutureTest.php56 public function testTriggerDeprecationWhenFutureModeIsOff(): void
LOWtests/FutureTest.php69 public function testTriggerDeprecationWhenFutureModeIsOn(): void
LOWtests/AbstractDoctrineAnnotationFixerTestCase.php40 public function testConfigureWithInvalidConfiguration(array $configuration): void
LOWtests/AbstractDoctrineAnnotationFixerTestCase.php50 public static function provideConfigureWithInvalidConfigurationCases(): iterable
LOWtests/UtilsTest.php48 public function testCamelCaseToUnderscore(string $expected, ?string $input = null): void
LOWtests/UtilsTest.php60 public static function provideCamelCaseToUnderscoreCases(): iterable
LOWtests/UtilsTest.php133 public function testCalculateTrailingWhitespaceIndent(string $spaces, $input): void
LOWtests/UtilsTest.php143 public static function provideCalculateTrailingWhitespaceIndentCases(): iterable
LOWtests/UtilsTest.php158 public function testCalculateTrailingWhitespaceIndentFail(): void
LOWtests/UtilsTest.php241 public function testNaturalLanguageJoinThrowsInvalidArgumentExceptionForEmptyArray(): void
LOWtests/UtilsTest.php249 public function testNaturalLanguageJoinThrowsInvalidArgumentExceptionForMoreThanOneCharWrapper(): void
LOWtests/UtilsTest.php271 public static function provideNaturalLanguageJoinCases(): iterable
LOWtests/UtilsTest.php364 public function testNaturalLanguageJoinWithBackticksThrowsInvalidArgumentExceptionForEmptyArray(): void
LOWtests/UtilsTest.php377 public function testNaturalLanguageJoinWithBackticks(string $joined, array $names, ?string $lastJoin = null): void
LOWtests/UtilsTest.php385 public static function provideNaturalLanguageJoinWithBackticksCases(): iterable
LOWtests/AbstractFunctionReferenceFixerTest.php39 public function testAbstractFunctionReferenceFixer(
LOWtests/AbstractFunctionReferenceFixerTest.php68 public static function provideAbstractFunctionReferenceFixerCases(): iterable
LOWtests/AbstractFunctionReferenceFixerTest.php135 private function createAbstractFunctionReferenceFixerDouble(): AbstractFunctionReferenceFixer
LOWtests/TextDiffTest.php44 public function testDiffReportingDecorated(string $expected, string $format, bool $isDecorated): void
LOWtests/TextDiffTest.php79 public static function provideDiffReportingDecoratedCases(): iterable
LOWtests/PregTest.php145 public static function providePatternValidationCases(): iterable
LOWtests/PregTest.php209 public function testReplaceCallbackFailing(): void
LOWtests/FileReaderTest.php74 public function testThrowsExceptionOnFail(): void
LOWtests/AbstractFixerTest.php42 public function testSetWhitespacesConfigUnconfigurable(): void
LOWtests/AbstractFixerTest.php52 public function testGetWhitespacesFixerConfig(): void
LOWtests/AbstractFixerTest.php71 private function createWhitespacesAwareFixerDouble(): WhitespacesAwareFixerInterface
LOWtests/AbstractFixerTest.php91 private function createUnconfigurableFixerDouble(): AbstractFixer
LOWtests/FinderTest.php31 public function testThatDefaultFinderDoesNotSpecifyAnyDirectory(): void
LOWtests/FinderTest.php40 public function testThatFinderFindsDotFilesWhenConfigured(): void
LOWtests/AbstractProxyFixerTest.php95 public function testPriorityMultipleFixersNotSet(): void
LOWtests/AbstractProxyFixerTest.php128 public function testApplyFixInPriorityOrder(): void
LOWtests/AbstractProxyFixerTest.php204 private function createWhitespacesAwareFixerDouble(): WhitespacesAwareFixerInterface
LOWtests/PharCheckerTest.php36 public function testPharCheckerInvalidFile(): void
LOWtests/TestCase.php60 final public function testNotDefiningConstructor(): void
LOWtests/TestCase.php96 final protected static function createSerializedStringOfClassName(string $className): string
LOWtests/IntegrationTest.php49 protected static function createIntegrationCaseFactory(): IntegrationCaseFactoryInterface
LOWtests/IntegrationTest.php54 protected static function assertRevertedOrderFixing(IntegrationCase $case, string $fixedInputCode, string $fixedInpu
LOWtests/ConfigTest.php59 public function testConfigRulesUsingSeparateMethod(): void
1246 more matches not shown…
Fake / Example Data22 hits · 38 pts
SeverityFileLineSnippet
LOWtests/Fixer/FunctionNotation/ImplodeCallFixerTest.php75 '<?php implode("Lorem ipsum dolor sit amet", $foo);',
LOWtests/Fixer/FunctionNotation/ImplodeCallFixerTest.php75 '<?php implode("Lorem ipsum dolor sit amet", $foo);',
LOWtests/Fixer/FunctionNotation/ImplodeCallFixerTest.php76 '<?php implode($foo, "Lorem ipsum dolor sit amet");',
LOWtests/Fixer/FunctionNotation/ImplodeCallFixerTest.php76 '<?php implode($foo, "Lorem ipsum dolor sit amet");',
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php360 * @param bool $param2 lorem ipsum
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php361 * @param string $param3 lorem ipsum
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php362 * @return int lorem ipsum
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php369 * @param bool $param2 lorem ipsum
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php370 * @param string $param3 lorem ipsum
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php371 * @return int lorem ipsum
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php1502 * @property string $bar Foo-Bar lorem ipsum
LOWtests/Fixer/Phpdoc/PhpdocAlignFixerTest.php1521 * @property string $bar Foo-Bar lorem ipsum
LOWtests/Fixer/Operator/OperatorLinebreakFixerTest.php127return $foo/* Lorem ipsum */
LOWtests/Fixer/Operator/OperatorLinebreakFixerTest.php131return $foo ?/* Lorem ipsum */:
LOWtests/Fixer/Operator/OperatorLinebreakFixerTest.php139 /* Lorem ipsum */$bar;
LOWtests/Fixer/Operator/OperatorLinebreakFixerTest.php143 ?/* Lorem ipsum */: $bar;
LOWtests/Documentation/RstUtilsTest.php35 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
LOWtests/Documentation/RstUtilsTest.php35 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
LOWtests/Documentation/RstUtilsTest.php41 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
LOWtests/Documentation/RstUtilsTest.php41 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et
LOWtests/Tokenizer/Analyzer/CommentsAnalyzerTest.php503 * @deprecated Lorem ipsum
LOWsrc/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php58 "<?php if (\$condition): ?>\nLorem ipsum.\n<?php endif; ?>\n",
Over-Commented Block16 hits · 16 pts
SeverityFileLineSnippet
LOWtests/Fixer/Comment/NoEmptyCommentFixerTest.php201 //
LOW…sts/Fixer/ReturnNotation/ReturnAssignmentFixerTest.php261 ];
LOW…Fixer/AttributeNotation/OrderedAttributesFixerTest.php121 #[BarAlias(3)]
LOW…Fixer/AttributeNotation/OrderedAttributesFixerTest.php141 }
LOW…Fixer/AttributeNotation/OrderedAttributesFixerTest.php181 #[BarAlias(3)]
LOW…Fixer/AttributeNotation/OrderedAttributesFixerTest.php201 #[Corge]
LOW…Fixer/AttributeNotation/OrderedAttributesFixerTest.php441 #[ AB\Baz (prop: \'baz\') ]
LOW…tributeNotation/AttributeEmptyParenthesesFixerTest.php81 #[\Bar ]
LOW…tributeNotation/AttributeEmptyParenthesesFixerTest.php101 #[A\B\Qux(prop1: [1, 2, 4], prop2: true, prop3: \'foo bar\')]
LOW…tributeNotation/AttributeEmptyParenthesesFixerTest.php201 #[Baz]
LOW…tributeNotation/AttributeEmptyParenthesesFixerTest.php321 #[\A\B\Foo()]
LOW…tributeNotation/AttributeEmptyParenthesesFixerTest.php341 #[\Bar(), Baz()]
LOW…tributeNotation/AttributeEmptyParenthesesFixerTest.php381 #[A\B\Qux(prop1: [1, 2, 4], prop2: true, prop3: \'foo bar\')]
LOW…tributeNotation/AttributeEmptyParenthesesFixerTest.php441 #[\A\B\Foo()]
LOW…er/Transformer/ConstructorPromotionTransformerTest.php101
LOWdev-tools/install.sh1#!/bin/sh
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWsrc/Fixer/Whitespace/StatementIndentationFixer.php490 // ^^ we need to check if there is a control group afterwards, and in that case don'
LOWsrc/Runner/Runner.php688 // We need to check if content was changed and then applied changes.
LOWsrc/Runner/Runner.php691 // Therefore we need to check if code hashes changed.
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOW…sts/Fixer/ReturnNotation/ReturnAssignmentFixerTest.php1274 # Print the result anyway