Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
This report presents the forensic synthetic code analysis of vlucas/phpdotenv, a PHP project with 13,550 GitHub stars. SynthScan v2.0 examined 6,888 lines of code across 64 source files, recording 90 pattern matches distributed across 1 syntactic category. The overall adjusted score of 14.1 places this repository in the Low 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 90 distinct pattern matches across 1 syntactic category. 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/Dotenv/DotenvTest.php | 34 | public function testDotenvThrowsExceptionIfUnableToLoadFile() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 44 | public function testDotenvThrowsExceptionIfUnableToLoadFiles() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 54 | public function testDotenvThrowsExceptionWhenNoFiles() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 64 | public function testDotenvTriesPathsToLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 70 | public function testDotenvTriesPathsToLoadTwice() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 79 | public function testDotenvTriesPathsToSafeLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 85 | public function testDotenvSkipsLoadingIfFileIsMissing() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 91 | public function testDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 104 | public function testDotenvLoadsEnvironmentVarsMultipleWithShortCircuitMode() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 114 | public function testDotenvLoadsEnvironmentVarsMultipleWithoutShortCircuitMode() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 124 | public function testCommentedDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 181 | public function testDotenvLoadWithInvalidEncoding() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 191 | public function testDotenvLoadsMultibyteWindowsVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 198 | public function testMultipleDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 206 | public function testExportedDotenvLoadsEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 219 | public function testDotenvLoadsEnvGlobals() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 229 | public function testDotenvLoadsServerGlobals() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 239 | public function testDotenvNestedEnvironmentVars() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 277 | public function testDotenvImmutableLoadIgnoresPutenv() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 287 | public function testDotenvLoadAfterOverload() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 295 | public function testDotenvOverloadAfterLoad() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 303 | public function testDotenvUnsafeLoadWithNullByteValueDoesNotThrow() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 311 | public function testPutenvRepositoryIgnoresNullByteName() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 320 | public function testDotenvOverloadDoesOverwriteEnv() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 327 | public function testDotenvAllowsSpecialCharacters() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 416 | public function testDotenvParseInterpolationAfterMultibyteText() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 424 | public function testDotenvParseKeepsEscapedNestedVariableLiteral() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 432 | public function testDotenvParseIndentedComment() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 437 | public function testDotenvParseCommentContainingQuoteStart() | CODE |
| LOW⚡ | tests/Dotenv/DotenvTest.php | 445 | public function testDotenvParseMultilineContainingHash() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 140 | public function testQuotedDotenvLoadsEnvironmentVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 155 | public function testLargeDotenvLoadsEnvironmentVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 163 | public function testDotenvLoadsMultibyteVars() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 258 | public function testDotenvNullFileArgumentUsesDefault() | CODE |
| LOW | tests/Dotenv/DotenvTest.php | 402 | public function testDotenvParseNumericNames() | CODE |
| LOW⚡ | tests/Dotenv/ValidatorTest.php | 65 | public function testDotenvAllowedValuesIfPresent() | CODE |
| LOW⚡ | tests/Dotenv/ValidatorTest.php | 75 | public function testDotenvAllowedValuesIfNotPresent() | CODE |
| LOW⚡ | tests/Dotenv/ValidatorTest.php | 82 | public function testDotenvProhibitedValues() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 45 | public function testDotenvRequiredStringEnvironmentVars() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 93 | public function testDotenvProhibitedValuesIfPresent() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 104 | public function testDotenvRequiredThrowsRuntimeException() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 122 | public function testDotenvRequiredArrayEnvironmentVars() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 173 | public function testDotenvEmptyThrowsRuntimeException() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 187 | public function testDotenvEmptyWhenNotPresent() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 194 | public function testDotenvStringOfSpacesConsideredEmpty() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 210 | public static function validBooleanValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 254 | public function testCanValidateBooleansIfPresent(string $boolean) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 266 | public static function invalidBooleanValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 284 | public function testCanInvalidateNonBooleans(string $boolean) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 298 | public function testCanInvalidateNonBooleansIfPresent(string $boolean) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 309 | public function testCanInvalidateBooleanNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 323 | public function testIfPresentBooleanNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 335 | public static function validIntegerValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 361 | public function testCanValidateIntegersIfPresent(string $integer) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 373 | public static function invalidIntegerValuesDataProvider() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 392 | public function testCanInvalidateNonIntegers(string $integer) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 406 | public function testCanInvalidateNonIntegersIfExist(string $integer) | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 417 | public function testCanInvalidateIntegerNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 431 | public function testIfPresentIntegerNonExist() | CODE |
| LOW | tests/Dotenv/ValidatorTest.php | 459 | public function testDotenvRegexMatchError() | CODE |
| 30 more matches not shown… | ||||