🕸️ Create REST and GraphQL APIs, scaffold Jamstack webapps, stream changes in real-time.
This report presents the forensic synthetic code analysis of api-platform/api-platform, a PHP project with 9,180 GitHub stars. SynthScan v2.0 examined 4,973 lines of code across 49 source files, recording 95 pattern matches distributed across 2 syntactic categories. The overall adjusted score of 23.5 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 95 distinct pattern matches across 2 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/InstallerCommandTest.php | 49 | public function testRejectsExistingDirectory(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 71 | public function testRejectsInvalidProjectName(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 79 | public function testRejectsUnknownFramework(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 95 | public function testRejectsWithDockerOnLaravel(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 106 | public function testRejectsWithPwaOnLaravel(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 117 | public function testAdminOptionIsAcceptedOnSymfony(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 123 | public function testAdminOptionIsAcceptedOnLaravel(): void | CODE |
| LOW⚡ | tests/InstallerCommandTest.php | 141 | public function testAdminDefaultsToFalseInNonInteractiveMode(): void | CODE |
| LOW⚡ | tests/InstallerCommandTest.php | 148 | public function testDocsOptionDescriptionMentionsScalar(): void | CODE |
| LOW⚡ | tests/InstallerCommandTest.php | 155 | public function testAcceptsScalarAsDocsOption(): void | CODE |
| LOW⚡ | tests/InstallerCommandTest.php | 160 | public function testReportsDevVersionWhenPlaceholderUnsubstituted(): void | CODE |
| LOW⚡ | tests/InstallerCommandTest.php | 167 | public function testNonInteractiveDefaultsSelectEveryFormatAndDocViewer(): void | CODE |
| LOW⚡ | tests/InstallerCommandTest.php | 175 | public function testEmptyDocsOptionDisablesDocViewers(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 189 | public function testRejectsEmptyDocsOptionCombinedWithDocViewers(): void | CODE |
| LOW | tests/InstallerCommandTest.php | 204 | public static function interactiveDocsSelections(): array | CODE |
| LOW | tests/InstallerCommandTest.php | 222 | public function testInteractiveDocsPromptAcceptsDisplayedChoices(string $answer, array $expected): void | CODE |
| LOW | tests/InstallerCommandTest.php | 227 | public function testInteractiveMultiselectPromptsEmitNoPhpWarnings(): void | CODE |
| LOW | tests/Scaffold/NextPwaScaffoldTest.php | 12 | public function testKeepsExistingCorsAllowOriginFromNelmioRecipe(): void | CODE |
| LOW⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 25 | public function testAddsNelmioCorsAllowOriginFallbackWhenMissing(): void | CODE |
| LOW⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 35 | public function testCorsAllowOriginFallbackIsIdempotent(): void | CODE |
| LOW⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 43 | public function testApprovesPnpmBuildPlaceholdersCreatedByCreateNextApp(): void | CODE |
| LOW | tests/Scaffold/NextPwaScaffoldTest.php | 60 | public function testKeepsUnrelatedIgnoredBuildDependencies(): void | CODE |
| LOW | tests/Scaffold/NextPwaScaffoldTest.php | 80 | public function testDoesNotOverwriteExplicitPnpmBuildDecisions(): void | CODE |
| LOW | tests/Scaffold/NextPwaScaffoldTest.php | 93 | public function testPnpmBuildApprovalPatchIsIdempotent(): void | CODE |
| LOW⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 107 | public function testWritesNextPublicApiEntrypointEnvWhenAbsent(): void | CODE |
| LOW⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 114 | public function testNextPublicApiEntrypointEnvIsIdempotent(): void | CODE |
| LOW⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 123 | public function testNextPublicApiEntrypointEnvDoesNotOverwriteCustomValue(): void | CODE |
| LOW⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 131 | public function testCreateNextAppCommandPinsTypeScriptAndAppRouter(): void | CODE |
| LOW | tests/Scaffold/FileWriterTest.php | 26 | public function testThrowsWhenTargetIsNotWritable(): void | CODE |
| LOW | tests/Scaffold/ComposeOverrideWriterTest.php | 54 | public function testInjectsCaddyDirectivesUnderPhpEnvironmentBetweenMarkers(): void | CODE |
| LOW | tests/Scaffold/ComposeOverrideWriterTest.php | 69 | public function testPreservesUpstreamCommentsAndOtherMarkers(): void | CODE |
| LOW | tests/Scaffold/ComposeOverrideWriterTest.php | 84 | public function testInjectionLandsBeforeVolumesSiblingNotInside(): void | CODE |
| LOW | tests/Scaffold/ComposeOverrideWriterTest.php | 98 | public function testDoesNotCreateSidecarComposeFile(): void | CODE |
| LOW⚡ | tests/Scaffold/ComposeOverrideWriterTest.php | 117 | public function testFailsLoudlyWhenComposeFileIsMissing(): void | CODE |
| LOW⚡ | tests/Scaffold/ComposeOverrideWriterTest.php | 123 | public function testFailsLoudlyWhenServicesPhpEnvironmentIsMissing(): void | CODE |
| LOW⚡ | tests/Scaffold/ComposeOverrideWriterTest.php | 131 | public function testIsIdempotentOnRepeatedRuns(): void | CODE |
| LOW | tests/Scaffold/ComposeOverrideWriterTest.php | 146 | public function testInjectsUnderFrankenphpServiceName(): void | CODE |
| LOW | tests/Scaffold/ComposeOverrideWriterTest.php | 172 | public function testRewritesBlockInPlaceWhenDirectivesChange(): void | CODE |
| LOW | tests/Scaffold/LaravelAdminScaffoldTest.php | 13 | public function testAppendsAdminRouteBetweenMarkersWhenAbsent(): void | CODE |
| LOW | tests/Scaffold/LaravelAdminScaffoldTest.php | 25 | public function testAdminRouteAppendIsIdempotent(): void | CODE |
| LOW | tests/Scaffold/LaravelAdminScaffoldTest.php | 36 | public function testAdminBladeTemplateExistsAndPointsAtViteEntry(): void | CODE |
| LOW | tests/Scaffold/LaravelAdminScaffoldTest.php | 46 | public function testAdminAppTemplateUsesHydraAdminAndDefaultsToWindowOrigin(): void | CODE |
| LOW | tests/Scaffold/LaravelAdminScaffoldTest.php | 57 | public function testAdminMainTemplateMountsOnAdminRoot(): void | CODE |
| LOW | tests/Scaffold/LaravelAdminScaffoldTest.php | 68 | public function testFilterInstalledPackagesSkipsAlreadyDeclaredDeps(): void | CODE |
| LOW | tests/Scaffold/LaravelAdminScaffoldTest.php | 93 | public function testFilterInstalledPackagesReturnsAllWhenManifestMissing(): void | CODE |
| LOW⚡ | tests/Scaffold/LaravelAdminScaffoldTest.php | 105 | public function testAppendsViteEntrypointEnvForLaravel(): void | CODE |
| LOW⚡ | tests/Scaffold/LaravelAdminScaffoldTest.php | 114 | public function testViteEntrypointEnvIsIdempotent(): void | CODE |
| LOW⚡ | tests/Scaffold/LaravelAdminScaffoldTest.php | 123 | public function testViteEntrypointEnvDoesNotOverwriteCustomValue(): void | CODE |
| LOW⚡ | tests/Scaffold/ViteConfigPatcherTest.php | 27 | public function testAddsEntryToInputArrayBetweenMarkers(): void | CODE |
| LOW⚡ | tests/Scaffold/ViteConfigPatcherTest.php | 36 | public function testPreservesExistingInputsAndConfigKeys(): void | CODE |
| LOW⚡ | tests/Scaffold/ViteConfigPatcherTest.php | 46 | public function testNewEntryLandsInsideInputArrayBeforeClosingBracket(): void | CODE |
| LOW | tests/Scaffold/ViteConfigPatcherTest.php | 57 | public function testIsIdempotentOnRepeatedPatches(): void | CODE |
| LOW | tests/Scaffold/ViteConfigPatcherTest.php | 68 | public function testFailsLoudlyWhenInputArrayMissing(): void | CODE |
| LOW | tests/Scaffold/ViteConfigPatcherTest.php | 75 | public function testDoesNotIntroduceArrayHoleOnTrailingComma(): void | CODE |
| LOW | tests/Scaffold/LaravelConfigPatcherTest.php | 46 | public function testReplacesFormatsAndKeepsSwaggerUi(): void | CODE |
| LOW | tests/Scaffold/LaravelConfigPatcherTest.php | 62 | public function testDisablesSwaggerUiWhenNotInDocs(): void | CODE |
| LOW | tests/Scaffold/LaravelConfigPatcherTest.php | 73 | public function testKeepsScalarEnabledWhenInDocs(): void | CODE |
| LOW | tests/Scaffold/LaravelConfigPatcherTest.php | 88 | public function testDisablesScalarWhenNotInDocs(): void | CODE |
| LOW | tests/Scaffold/LaravelConfigPatcherTest.php | 102 | public function testKeepsRedocEnabledWhenInDocs(): void | CODE |
| LOW | tests/Scaffold/LaravelConfigPatcherTest.php | 116 | public function testDisablesRedocWhenNotInDocs(): void | CODE |
| 32 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/Scaffold/NextPwaScaffoldTest.php | 140 | // a Pages-router or JS scaffold would crash the entry-page lookup. | COMMENT |
| MEDIUM | tests/Scaffold/AgentsScaffoldTest.php | 41 | // A null fetch (offline, rate limit) must not abort the scaffold. | COMMENT |
| MEDIUM | src/Scaffold/AgentsScaffold.php | 39 | // Non-critical: never abort a scaffold over a doc file the project | COMMENT |