A tool to automatically fix PHP Coding Standards issues
This report summarizes scanner evidence for PHP-CS-Fixer/PHP-CS-Fixer, a PHP project with 13,562 GitHub stars. SynthScan examined 321,732 lines of code across 1510 source files, recording 1361 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 4.2 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1339 finding(s).
Are imports declared and package/API names verified? 22 finding(s).
Are wrappers, guards, and repeated structures necessary? 1319 finding(s).
Which changes need focused human review? 1361 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1361 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/ToolInfoTest.php | 43 | public function testIsInstalledByComposer(): void | CODE |
| LOW | tests/ToolInfoTest.php | 49 | public function testGetComposerVersionThrowsExceptionIfOutsideComposerScope(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 100 | public function testRegisterBuiltInFixers(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 156 | public function testThatCanRegisterAndGetFixers(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 175 | public function testRegisterFixerWithOccupiedName(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 213 | public function testUseRuleSetWithNonExistingRule(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 229 | public function testUseRuleSetWithInvalidConfigForRule(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 294 | public function testHasRuleWithChangedRuleSet(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 328 | public static function provideConflictingFixersCases(): iterable | CODE |
| LOW | tests/FixerFactoryTest.php | 335 | public function testNoDoubleConflictReporting(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 412 | public function testRegisterFixerInvalidName(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 424 | public function testConfigureNonConfigurableFixer(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 446 | public function testConfigureFixerWithNonArray($value): void | CODE |
| LOW | tests/FixerFactoryTest.php | 456 | public function getConfigurationDefinition(): FixerConfigurationResolverInterface | CODE |
| LOW | tests/FixerFactoryTest.php | 513 | public static function provideConfigureFixerWithNonArrayCases(): iterable | CODE |
| LOW | tests/FixerFactoryTest.php | 524 | public function testConfigurableFixerIsConfigured(): void | CODE |
| LOW | tests/FixerFactoryTest.php | 532 | public function getConfigurationDefinition(): FixerConfigurationResolverInterface | CODE |
| LOW | tests/FileRemovalTest.php | 77 | public function testCleanRemovesObservedFiles(): void | CODE |
| LOW | tests/FileRemovalTest.php | 91 | public function testDestructRemovesObservedFiles(): void | CODE |
| LOW | tests/FileRemovalTest.php | 118 | public function testDeleteNonObservedFile(): void | CODE |
| LOW | tests/FileRemovalTest.php | 157 | public function testShutdownRemovesObservedFilesSetup(): void | CODE |
| LOW | tests/FileRemovalTest.php | 176 | public function testShutdownRemovesObservedFiles(): void | CODE |
| LOW | tests/FutureTest.php | 56 | public function testTriggerDeprecationWhenFutureModeIsOff(): void | CODE |
| LOW | tests/FutureTest.php | 69 | public function testTriggerDeprecationWhenFutureModeIsOn(): void | CODE |
| LOW | tests/AbstractDoctrineAnnotationFixerTestCase.php | 40 | public function testConfigureWithInvalidConfiguration(array $configuration): void | CODE |
| LOW | tests/AbstractDoctrineAnnotationFixerTestCase.php | 50 | public static function provideConfigureWithInvalidConfigurationCases(): iterable | CODE |
| LOW | tests/UtilsTest.php | 48 | public function testCamelCaseToUnderscore(string $expected, ?string $input = null): void | CODE |
| LOW | tests/UtilsTest.php | 60 | public static function provideCamelCaseToUnderscoreCases(): iterable | CODE |
| LOW | tests/UtilsTest.php | 133 | public function testCalculateTrailingWhitespaceIndent(string $spaces, $input): void | CODE |
| LOW | tests/UtilsTest.php | 143 | public static function provideCalculateTrailingWhitespaceIndentCases(): iterable | CODE |
| LOW | tests/UtilsTest.php | 158 | public function testCalculateTrailingWhitespaceIndentFail(): void | CODE |
| LOW | tests/UtilsTest.php | 248 | public function testNaturalLanguageJoinThrowsInvalidArgumentExceptionForEmptyArray(): void | CODE |
| LOW | tests/UtilsTest.php | 256 | public function testNaturalLanguageJoinThrowsInvalidArgumentExceptionForMoreThanOneCharWrapper(): void | CODE |
| LOW | tests/UtilsTest.php | 278 | public static function provideNaturalLanguageJoinCases(): iterable | CODE |
| LOW | tests/UtilsTest.php | 371 | public function testNaturalLanguageJoinWithBackticksThrowsInvalidArgumentExceptionForEmptyArray(): void | CODE |
| LOW | tests/UtilsTest.php | 384 | public function testNaturalLanguageJoinWithBackticks(string $joined, array $names, ?string $lastJoin = null): void | CODE |
| LOW | tests/UtilsTest.php | 392 | public static function provideNaturalLanguageJoinWithBackticksCases(): iterable | CODE |
| LOW | tests/AbstractFunctionReferenceFixerTest.php | 39 | public function testAbstractFunctionReferenceFixer( | CODE |
| LOW | tests/AbstractFunctionReferenceFixerTest.php | 68 | public static function provideAbstractFunctionReferenceFixerCases(): iterable | CODE |
| LOW | tests/AbstractFunctionReferenceFixerTest.php | 135 | private function createAbstractFunctionReferenceFixerDouble(): AbstractFunctionReferenceFixer | CODE |
| LOW | tests/TextDiffTest.php | 44 | public function testDiffReportingDecorated(string $expected, string $format, bool $isDecorated): void | CODE |
| LOW | tests/TextDiffTest.php | 79 | public static function provideDiffReportingDecoratedCases(): iterable | CODE |
| LOW | tests/PregTest.php | 145 | public static function providePatternValidationCases(): iterable | CODE |
| LOW | tests/PregTest.php | 209 | public function testReplaceCallbackFailing(): void | CODE |
| LOW | tests/FileReaderTest.php | 89 | public function testThrowsExceptionOnFail(): void | CODE |
| LOW | tests/AbstractFixerTest.php | 42 | public function testSetWhitespacesConfigUnconfigurable(): void | CODE |
| LOW | tests/AbstractFixerTest.php | 52 | public function testGetWhitespacesFixerConfig(): void | CODE |
| LOW | tests/AbstractFixerTest.php | 71 | private function createWhitespacesAwareFixerDouble(): WhitespacesAwareFixerInterface | CODE |
| LOW | tests/AbstractFixerTest.php | 91 | private function createUnconfigurableFixerDouble(): AbstractFixer | CODE |
| LOW | tests/FinderTest.php | 31 | public function testThatDefaultFinderDoesNotSpecifyAnyDirectory(): void | CODE |
| LOW | tests/FinderTest.php | 40 | public function testThatFinderFindsDotFilesWhenConfigured(): void | CODE |
| LOW | tests/AbstractProxyFixerTest.php | 95 | public function testPriorityMultipleFixersNotSet(): void | CODE |
| LOW | tests/AbstractProxyFixerTest.php | 128 | public function testApplyFixInPriorityOrder(): void | CODE |
| LOW | tests/AbstractProxyFixerTest.php | 204 | private function createWhitespacesAwareFixerDouble(): WhitespacesAwareFixerInterface | CODE |
| LOW | tests/PharCheckerTest.php | 36 | public function testPharCheckerInvalidFile(): void | CODE |
| LOW | tests/TestCase.php | 60 | final public function testNotDefiningConstructor(): void | CODE |
| LOW | tests/TestCase.php | 96 | final protected static function createSerializedStringOfClassName(string $className): string | CODE |
| LOW | tests/IntegrationTest.php | 49 | protected static function createIntegrationCaseFactory(): IntegrationCaseFactoryInterface | CODE |
| LOW | tests/IntegrationTest.php | 54 | protected static function assertRevertedOrderFixing(IntegrationCase $case, string $fixedInputCode, string $fixedInpu | CODE |
| LOW | tests/ConfigTest.php | 59 | public function testConfigRulesUsingSeparateMethod(): void | CODE |
| 1259 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/Fixer/FunctionNotation/ImplodeCallFixerTest.php | 75 | '<?php implode("Lorem ipsum dolor sit amet", $foo);', | CODE |
| LOW⚡ | tests/Fixer/FunctionNotation/ImplodeCallFixerTest.php | 75 | '<?php implode("Lorem ipsum dolor sit amet", $foo);', | CODE |
| LOW⚡ | tests/Fixer/FunctionNotation/ImplodeCallFixerTest.php | 76 | '<?php implode($foo, "Lorem ipsum dolor sit amet");', | CODE |
| LOW⚡ | tests/Fixer/FunctionNotation/ImplodeCallFixerTest.php | 76 | '<?php implode($foo, "Lorem ipsum dolor sit amet");', | CODE |
| LOW⚡ | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 360 | * @param bool $param2 lorem ipsum | COMMENT |
| LOW⚡ | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 361 | * @param string $param3 lorem ipsum | COMMENT |
| LOW⚡ | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 362 | * @return int lorem ipsum | COMMENT |
| LOW⚡ | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 369 | * @param bool $param2 lorem ipsum | COMMENT |
| LOW⚡ | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 370 | * @param string $param3 lorem ipsum | COMMENT |
| LOW⚡ | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 371 | * @return int lorem ipsum | COMMENT |
| LOW | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 1502 | * @property string $bar Foo-Bar lorem ipsum | COMMENT |
| LOW | tests/Fixer/Phpdoc/PhpdocAlignFixerTest.php | 1521 | * @property string $bar Foo-Bar lorem ipsum | COMMENT |
| LOW⚡ | tests/Fixer/Operator/OperatorLinebreakFixerTest.php | 127 | return $foo/* Lorem ipsum */ | CODE |
| LOW⚡ | tests/Fixer/Operator/OperatorLinebreakFixerTest.php | 131 | return $foo ?/* Lorem ipsum */: | CODE |
| LOW⚡ | tests/Fixer/Operator/OperatorLinebreakFixerTest.php | 139 | /* Lorem ipsum */$bar; | COMMENT |
| LOW⚡ | tests/Fixer/Operator/OperatorLinebreakFixerTest.php | 143 | ?/* Lorem ipsum */: $bar; | CODE |
| LOW⚡ | tests/Documentation/RstUtilsTest.php | 35 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | CODE |
| LOW⚡ | tests/Documentation/RstUtilsTest.php | 35 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod | CODE |
| LOW⚡ | tests/Documentation/RstUtilsTest.php | 41 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW⚡ | tests/Documentation/RstUtilsTest.php | 41 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et | CODE |
| LOW | tests/Tokenizer/Analyzer/CommentsAnalyzerTest.php | 503 | * @deprecated Lorem ipsum | COMMENT |
| LOW | src/Fixer/ControlStructure/NoAlternativeSyntaxFixer.php | 58 | "<?php if (\$condition): ?>\nLorem ipsum.\n<?php endif; ?>\n", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Fixer/Comment/NoEmptyCommentFixerTest.php | 201 | // | COMMENT |
| LOW | …sts/Fixer/ReturnNotation/ReturnAssignmentFixerTest.php | 261 | ]; | COMMENT |
| LOW | …Fixer/AttributeNotation/OrderedAttributesFixerTest.php | 121 | #[BarAlias(3)] | COMMENT |
| LOW | …Fixer/AttributeNotation/OrderedAttributesFixerTest.php | 141 | } | COMMENT |
| LOW | …Fixer/AttributeNotation/OrderedAttributesFixerTest.php | 181 | #[BarAlias(3)] | COMMENT |
| LOW | …Fixer/AttributeNotation/OrderedAttributesFixerTest.php | 201 | #[Corge] | COMMENT |
| LOW | …Fixer/AttributeNotation/OrderedAttributesFixerTest.php | 441 | #[ AB\Baz (prop: \'baz\') ] | COMMENT |
| LOW | …tributeNotation/AttributeEmptyParenthesesFixerTest.php | 81 | #[\Bar ] | COMMENT |
| LOW | …tributeNotation/AttributeEmptyParenthesesFixerTest.php | 101 | #[A\B\Qux(prop1: [1, 2, 4], prop2: true, prop3: \'foo bar\')] | COMMENT |
| LOW | …tributeNotation/AttributeEmptyParenthesesFixerTest.php | 201 | #[Baz] | COMMENT |
| LOW | …tributeNotation/AttributeEmptyParenthesesFixerTest.php | 321 | #[\A\B\Foo()] | COMMENT |
| LOW | …tributeNotation/AttributeEmptyParenthesesFixerTest.php | 341 | #[\Bar(), Baz()] | COMMENT |
| LOW | …tributeNotation/AttributeEmptyParenthesesFixerTest.php | 381 | #[A\B\Qux(prop1: [1, 2, 4], prop2: true, prop3: \'foo bar\')] | COMMENT |
| LOW | …tributeNotation/AttributeEmptyParenthesesFixerTest.php | 441 | #[\A\B\Foo()] | COMMENT |
| LOW | …er/Transformer/ConstructorPromotionTransformerTest.php | 101 | COMMENT | |
| LOW | dev-tools/install.sh | 1 | #!/bin/sh | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/Fixer/Whitespace/StatementIndentationFixer.php | 503 | // ^^ we need to check if there is a control group afterwards, and in that case don' | COMMENT |
| LOW | src/Runner/Runner.php | 694 | // We need to check if content was changed and then applied changes. | COMMENT |
| LOW | src/Runner/Runner.php | 697 | // Therefore we need to check if code hashes changed. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …sts/Fixer/ReturnNotation/ReturnAssignmentFixerTest.php | 1274 | # Print the result anyway | COMMENT |