AI Slop Code RIsk Monitor

doctrine/dbal

Doctrine Database Abstraction Layer

17.6 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for doctrine/dbal, a PHP project with 9,700 GitHub stars. SynthScan examined 103,218 lines of code across 753 source files, recording 1813 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 17.6 (Elevated 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.

17.6
Adjusted Signal
17.6
Raw Pattern Score
100%
Time Factor
2026-10-08
Last Push
9.7K
Stars
PHP
Language
103.2K
Lines of Code
753
Files
1.8K
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 58.5/100 · HIGH

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

Hallucinated Dependency & Supply Chain Risk 0.0/100 · LOW

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

Agent Over-Engineering Ratio 58.5/100 · HIGH

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

PR Review Velocity Impact 58.5/100 · HIGH

Which changes need focused human review? 1813 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 1813

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 1813 distinct pattern matches across 2 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 Identifiers1812 hits · 1816 pts
SeverityFileLineSnippetContext
LOWtests/TestUtil.php176 private static function getPrivilegedConnectionParameters(): arrayCODE
LOWtests/TestUtil.php189 private static function getTestConnectionParameters(): arrayCODE
LOWtests/TestUtil.php245 public static function isPdoStringifyFetchesEnabled(): boolCODE
LOW⚡tests/ConnectionTest.php67 public function testNoTransactionActiveByDefault(): voidCODE
LOW⚡tests/ConnectionTest.php72 public function testCommitWithNoActiveTransactionThrowsException(): voidCODE
LOW⚡tests/ConnectionTest.php78 public function testRollbackWithNoActiveTransactionThrowsException(): voidCODE
LOW⚡tests/ConnectionTest.php84 public function testSetRollbackOnlyNoActiveTransactionThrowsException(): voidCODE
LOW⚡tests/ConnectionTest.php90 public function testIsRollbackOnlyNoActiveTransactionThrowsException(): voidCODE
LOWtests/ConnectionTest.php52 private function getExecuteStatementMockConnection(): Connection&MockObjectCODE
LOWtests/ConnectionTest.php103 public function testDriverExceptionIsWrapped(callable $callback): voidCODE
LOWtests/ConnectionTest.php151 public function testConnectStartsTransactionInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php166 public function testTransactionIsNotActiveAfterTransactionalInAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php187 public function testTransactionIsActiveAfterTransactionalInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php217 public function testCommitStartsTransactionInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php230 public function testBeginTransactionFailureAfterCommitInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php266 public function testRollBackStartsTransactionInNoAutoCommitMode(): voidCODE
LOWtests/ConnectionTest.php279 public function testSwitchingAutoCommitModeCommitsAllCurrentTransactions(): voidCODE
LOWtests/ConnectionTest.php317 public function testUpdateWithDifferentColumnsInDataAndIdentifiers(): voidCODE
LOWtests/ConnectionTest.php358 public function testUpdateWithSameColumnInDataAndIdentifiers(): voidCODE
LOWtests/ConnectionTest.php568 public function testPlatformDetectionTriggersConnectionIfRequiredByTheDriver(): voidCODE
LOWtests/ConnectionTest.php594 public function testPlatformDetectionDoesNotTriggerConnectionIfNotRequiredByTheDriver(): voidCODE
LOWtests/ConnectionTest.php614 public function testPlatformDetectionFetchedFromParameters(): voidCODE
LOWtests/ConnectionTest.php636 public function testPlatformDetectionFetchedFromPrimaryReplicaParameters(): voidCODE
LOWtests/ConnectionTest.php658 public function testConnectionParamsArePassedToTheQueryCacheProfileInExecuteCacheQuery(): voidCODE
LOWtests/ConnectionTest.php698 public function testCustomSchemaManagerFactory(): voidCODE
LOWtests/ConnectionTest.php711 public function testDefaultSchemaManagerFactory(): voidCODE
LOWtests/ConnectionTest.php717 public function testItPreservesTheOriginalExceptionOnRollbackFailure(): voidCODE
LOWtests/ConnectionTest.php741 public function testItFailsDuringCommitBeforeTouchingDb(): voidCODE
LOWtests/ExceptionTest.php14 public function testDriverRequiredWithUrl(): voidCODE
LOWtests/ConfigurationTest.php28 public function testReturnsDefaultConnectionAutoCommitMode(): voidCODE
LOWtests/ConfigurationTest.php36 public function testSetsDefaultConnectionAutoCommitMode(): voidCODE
LOWtests/FunctionalTestCase.php53 protected function markConnectionNotReusable(): voidCODE
LOWtests/FunctionalTestCase.php197 protected function assertOptionallyQualifiedNameEquals(CODE
LOWtests/FunctionalTestCase.php208 protected function toQuotedOptionallyQualifiedName(OptionallyQualifiedName $name): OptionallyQualifiedNameCODE
LOWtests/FunctionalTestCase.php219 protected function assertUnqualifiedNameEquals(CODE
LOWtests/FunctionalTestCase.php243 protected function assertUnqualifiedNameListEquals(array $expected, array $actual): voidCODE
LOWtests/FunctionalTestCase.php255 protected function assertUnqualifiedNameListContainsUnquotedName(string $needle, iterable $haystack): voidCODE
LOWtests/FunctionalTestCase.php268 protected function assertUnqualifiedNameListContainsQuotedName(string $needle, iterable $haystack): voidCODE
LOWtests/FunctionalTestCase.php281 protected function assertUnqualifiedNameListNotContainsUnquotedName(string $needle, iterable $haystack): voidCODE
LOWtests/FunctionalTestCase.php290 private function unqualifiedNameListContains(UnqualifiedName $needle): CallbackCODE
LOWtests/FunctionalTestCase.php320 protected function assertOptionallyQualifiedNameListContainsUnquotedName(CODE
LOWtests/FunctionalTestCase.php334 private function optionallyQualifiedNameListContains(OptionallyQualifiedName $needle): CallbackCODE
LOWtests/FunctionalTestCase.php372 protected function toQuotedUnqualifiedNameList(array $names): arrayCODE
LOWtests/FunctionalTestCase.php424 protected function assertIndexedColumnEquals(CODE
LOWtests/FunctionalTestCase.php449 protected function assertIndexedColumnListEquals(array $expected, array $actual): voidCODE
LOWtests/FunctionalTestCase.php464 protected function toQuotedIndexedColumnList(array $indexedColumns): arrayCODE
LOWtests/FunctionalTestCase.php530 protected function assertPrimaryKeyConstraintEquals(CODE
LOWtests/FunctionalTestCase.php553 protected function toQuotedPrimaryKeyConstraint(PrimaryKeyConstraint $constraint): PrimaryKeyConstraintCODE
LOWtests/FunctionalTestCase.php568 protected function assertForeignKeyConstraintEquals(CODE
LOWtests/FunctionalTestCase.php579 protected function toQuotedForeignKeyConstraint(ForeignKeyConstraint $constraint): ForeignKeyConstraintCODE
LOWtests/FunctionalTestCase.php601 protected function assertForeignKeyConstraintListEquals(array $expected, array $actual): voidCODE
LOWtests/FunctionalTestCase.php616 protected function toQuotedForeignKeyConstraintList(array $constraints): arrayCODE
LOWtests/FunctionalTestCase.php627 protected function assertUniqueConstraintEquals(CODE
LOWtests/FunctionalTestCase.php668 protected function assertUniqueConstraintListEquals(array $expected, array $actual): voidCODE
LOWtests/FunctionalTestCase.php683 protected function toQuotedUniqueConstraintList(array $constraints): arrayCODE
LOW⚡tests/Platforms/MySQLPlatformTest.php24 public function testReturnsJsonTypeDeclarationSQL(): voidCODE
LOW⚡tests/Platforms/MySQLPlatformTest.php29 public function testInitializesJsonTypeMapping(): voidCODE
LOW⚡tests/Platforms/MySQLPlatformTest.php36 protected function getAlterTableRenameIndexSQL(): arrayCODE
LOW⚡tests/Platforms/MySQLPlatformTest.php42 protected function getQuotedAlterTableRenameIndexSQL(): arrayCODE
LOW⚡tests/Platforms/MySQLPlatformTest.php51 protected function getAlterTableRenameIndexInSchemaSQL(): arrayCODE
1752 more matches not shown…
Over-Commented Block1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtests/Functional/Driver/OCI8/ResultTest.php101COMMENT