Doctrine Database Abstraction Layer
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.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1813 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 1812 finding(s).
Which changes need focused human review? 1813 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 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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/TestUtil.php | 176 | private static function getPrivilegedConnectionParameters(): array | CODE |
| LOW | tests/TestUtil.php | 189 | private static function getTestConnectionParameters(): array | CODE |
| LOW | tests/TestUtil.php | 245 | public static function isPdoStringifyFetchesEnabled(): bool | CODE |
| LOW⚡ | tests/ConnectionTest.php | 67 | public function testNoTransactionActiveByDefault(): void | CODE |
| LOW⚡ | tests/ConnectionTest.php | 72 | public function testCommitWithNoActiveTransactionThrowsException(): void | CODE |
| LOW⚡ | tests/ConnectionTest.php | 78 | public function testRollbackWithNoActiveTransactionThrowsException(): void | CODE |
| LOW⚡ | tests/ConnectionTest.php | 84 | public function testSetRollbackOnlyNoActiveTransactionThrowsException(): void | CODE |
| LOW⚡ | tests/ConnectionTest.php | 90 | public function testIsRollbackOnlyNoActiveTransactionThrowsException(): void | CODE |
| LOW | tests/ConnectionTest.php | 52 | private function getExecuteStatementMockConnection(): Connection&MockObject | CODE |
| LOW | tests/ConnectionTest.php | 103 | public function testDriverExceptionIsWrapped(callable $callback): void | CODE |
| LOW | tests/ConnectionTest.php | 151 | public function testConnectStartsTransactionInNoAutoCommitMode(): void | CODE |
| LOW | tests/ConnectionTest.php | 166 | public function testTransactionIsNotActiveAfterTransactionalInAutoCommitMode(): void | CODE |
| LOW | tests/ConnectionTest.php | 187 | public function testTransactionIsActiveAfterTransactionalInNoAutoCommitMode(): void | CODE |
| LOW | tests/ConnectionTest.php | 217 | public function testCommitStartsTransactionInNoAutoCommitMode(): void | CODE |
| LOW | tests/ConnectionTest.php | 230 | public function testBeginTransactionFailureAfterCommitInNoAutoCommitMode(): void | CODE |
| LOW | tests/ConnectionTest.php | 266 | public function testRollBackStartsTransactionInNoAutoCommitMode(): void | CODE |
| LOW | tests/ConnectionTest.php | 279 | public function testSwitchingAutoCommitModeCommitsAllCurrentTransactions(): void | CODE |
| LOW | tests/ConnectionTest.php | 317 | public function testUpdateWithDifferentColumnsInDataAndIdentifiers(): void | CODE |
| LOW | tests/ConnectionTest.php | 358 | public function testUpdateWithSameColumnInDataAndIdentifiers(): void | CODE |
| LOW | tests/ConnectionTest.php | 568 | public function testPlatformDetectionTriggersConnectionIfRequiredByTheDriver(): void | CODE |
| LOW | tests/ConnectionTest.php | 594 | public function testPlatformDetectionDoesNotTriggerConnectionIfNotRequiredByTheDriver(): void | CODE |
| LOW | tests/ConnectionTest.php | 614 | public function testPlatformDetectionFetchedFromParameters(): void | CODE |
| LOW | tests/ConnectionTest.php | 636 | public function testPlatformDetectionFetchedFromPrimaryReplicaParameters(): void | CODE |
| LOW | tests/ConnectionTest.php | 658 | public function testConnectionParamsArePassedToTheQueryCacheProfileInExecuteCacheQuery(): void | CODE |
| LOW | tests/ConnectionTest.php | 698 | public function testCustomSchemaManagerFactory(): void | CODE |
| LOW | tests/ConnectionTest.php | 711 | public function testDefaultSchemaManagerFactory(): void | CODE |
| LOW | tests/ConnectionTest.php | 717 | public function testItPreservesTheOriginalExceptionOnRollbackFailure(): void | CODE |
| LOW | tests/ConnectionTest.php | 741 | public function testItFailsDuringCommitBeforeTouchingDb(): void | CODE |
| LOW | tests/ExceptionTest.php | 14 | public function testDriverRequiredWithUrl(): void | CODE |
| LOW | tests/ConfigurationTest.php | 28 | public function testReturnsDefaultConnectionAutoCommitMode(): void | CODE |
| LOW | tests/ConfigurationTest.php | 36 | public function testSetsDefaultConnectionAutoCommitMode(): void | CODE |
| LOW | tests/FunctionalTestCase.php | 53 | protected function markConnectionNotReusable(): void | CODE |
| LOW | tests/FunctionalTestCase.php | 197 | protected function assertOptionallyQualifiedNameEquals( | CODE |
| LOW | tests/FunctionalTestCase.php | 208 | protected function toQuotedOptionallyQualifiedName(OptionallyQualifiedName $name): OptionallyQualifiedName | CODE |
| LOW | tests/FunctionalTestCase.php | 219 | protected function assertUnqualifiedNameEquals( | CODE |
| LOW | tests/FunctionalTestCase.php | 243 | protected function assertUnqualifiedNameListEquals(array $expected, array $actual): void | CODE |
| LOW | tests/FunctionalTestCase.php | 255 | protected function assertUnqualifiedNameListContainsUnquotedName(string $needle, iterable $haystack): void | CODE |
| LOW | tests/FunctionalTestCase.php | 268 | protected function assertUnqualifiedNameListContainsQuotedName(string $needle, iterable $haystack): void | CODE |
| LOW | tests/FunctionalTestCase.php | 281 | protected function assertUnqualifiedNameListNotContainsUnquotedName(string $needle, iterable $haystack): void | CODE |
| LOW | tests/FunctionalTestCase.php | 290 | private function unqualifiedNameListContains(UnqualifiedName $needle): Callback | CODE |
| LOW | tests/FunctionalTestCase.php | 320 | protected function assertOptionallyQualifiedNameListContainsUnquotedName( | CODE |
| LOW | tests/FunctionalTestCase.php | 334 | private function optionallyQualifiedNameListContains(OptionallyQualifiedName $needle): Callback | CODE |
| LOW | tests/FunctionalTestCase.php | 372 | protected function toQuotedUnqualifiedNameList(array $names): array | CODE |
| LOW | tests/FunctionalTestCase.php | 424 | protected function assertIndexedColumnEquals( | CODE |
| LOW | tests/FunctionalTestCase.php | 449 | protected function assertIndexedColumnListEquals(array $expected, array $actual): void | CODE |
| LOW | tests/FunctionalTestCase.php | 464 | protected function toQuotedIndexedColumnList(array $indexedColumns): array | CODE |
| LOW | tests/FunctionalTestCase.php | 530 | protected function assertPrimaryKeyConstraintEquals( | CODE |
| LOW | tests/FunctionalTestCase.php | 553 | protected function toQuotedPrimaryKeyConstraint(PrimaryKeyConstraint $constraint): PrimaryKeyConstraint | CODE |
| LOW | tests/FunctionalTestCase.php | 568 | protected function assertForeignKeyConstraintEquals( | CODE |
| LOW | tests/FunctionalTestCase.php | 579 | protected function toQuotedForeignKeyConstraint(ForeignKeyConstraint $constraint): ForeignKeyConstraint | CODE |
| LOW | tests/FunctionalTestCase.php | 601 | protected function assertForeignKeyConstraintListEquals(array $expected, array $actual): void | CODE |
| LOW | tests/FunctionalTestCase.php | 616 | protected function toQuotedForeignKeyConstraintList(array $constraints): array | CODE |
| LOW | tests/FunctionalTestCase.php | 627 | protected function assertUniqueConstraintEquals( | CODE |
| LOW | tests/FunctionalTestCase.php | 668 | protected function assertUniqueConstraintListEquals(array $expected, array $actual): void | CODE |
| LOW | tests/FunctionalTestCase.php | 683 | protected function toQuotedUniqueConstraintList(array $constraints): array | CODE |
| LOW⚡ | tests/Platforms/MySQLPlatformTest.php | 24 | public function testReturnsJsonTypeDeclarationSQL(): void | CODE |
| LOW⚡ | tests/Platforms/MySQLPlatformTest.php | 29 | public function testInitializesJsonTypeMapping(): void | CODE |
| LOW⚡ | tests/Platforms/MySQLPlatformTest.php | 36 | protected function getAlterTableRenameIndexSQL(): array | CODE |
| LOW⚡ | tests/Platforms/MySQLPlatformTest.php | 42 | protected function getQuotedAlterTableRenameIndexSQL(): array | CODE |
| LOW⚡ | tests/Platforms/MySQLPlatformTest.php | 51 | protected function getAlterTableRenameIndexInSchemaSQL(): array | CODE |
| 1752 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/Functional/Driver/OCI8/ResultTest.php | 101 | COMMENT |