AI Slop Code RIsk Monitor

PHP-CS-Fixer/PHP-CS-Fixer

A tool to automatically fix PHP Coding Standards issues

4.2 Low pattern signal View on GitHub

Maintenance and Governance Review

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.

4.2
Adjusted Signal
4.2
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
13.6K
Stars
PHP
Language
321.7K
Lines of Code
1.5K
Files
1.4K
Pattern Hits
2026-10-12
Scan Date
0.00
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 18.5/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 1339 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

Are imports declared and package/API names verified? 22 finding(s).

Agent Over-Engineering Ratio 18.2/100 · LOW

Are wrappers, guards, and repeated structures necessary? 1319 finding(s).

PR Review Velocity Impact 19.1/100 · LOW

Which changes need focused human review? 1361 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 0LOW 1361

Directory Score Breakdown

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.

Pattern Findings

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.

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