A php swagger annotation and parsing library
This report summarizes scanner evidence for zircote/swagger-php, a PHP project with 5,304 GitHub stars. SynthScan examined 125,535 lines of code across 1652 source files, recording 440 pattern matches distributed across 2 syntactic categories. The legacy adjusted pattern signal is 3.7 (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.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 434 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 434 finding(s).
Which changes need focused human review? 440 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 440 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 | tools/tests/TypeAlias/AliasExpanderTest.php | 14 | public function testParsesADeclarationAndAnImport(): void | CODE |
| LOW | tools/tests/TypeAlias/AliasExpanderTest.php | 31 | public function testParsesNothingFromAnEmptyDocblock(): void | CODE |
| LOW⚡ | tools/tests/TypeAlias/AliasExpanderTest.php | 44 | public function testFollowsAnImportToItsDeclaringClass(): void | CODE |
| LOW⚡ | tools/tests/TypeAlias/AliasExpanderTest.php | 52 | public function testFindsAnAliasImportedByATraitTheClassUses(): void | CODE |
| LOW⚡ | tools/tests/TypeAlias/AliasExpanderTest.php | 62 | public function testLeavesAnUnknownNameAlone(): void | CODE |
| LOW⚡ | tools/tests/TypeAlias/AliasExpanderTest.php | 70 | public function testPrefersTheLongerAliasName(): void | CODE |
| LOW⚡ | tools/tests/TypeAlias/AliasExpanderTest.php | 78 | public function testReturnsTheTypeUntouchedWhenNothingIsDeclared(): void | CODE |
| LOW | tools/tests/Docs/DocGeneratorTest.php | 52 | public function testSplitUnionKeepsARepeatedNameOutsideItsGeneric(): void | CODE |
| LOW | tools/tests/Docs/DocGeneratorTest.php | 60 | public function testParseDocblockKeepsStaticAnalysisTagsOutOfTheDescription(): void | CODE |
| LOW | tools/src/CSFixer/SpecNamespaceAliasFixer.php | 275 | protected function collectUseStatementIndices(array $declarations): array | CODE |
| LOW | tools/src/Docs/Reference/AttributeGenerator.php | 139 | protected function collectAnnotationsDetails(string $name, string $fqdn, string $filename): array | CODE |
| LOW | tests/CommandlineTest.php | 44 | public function testDiagnosticsGoToStderr(): void | CODE |
| LOW | tests/CommandlineTest.php | 172 | public function testCleanupIsConfigurable(string $args, bool $kept): void | CODE |
| LOW | tests/SerializerTest.php | 114 | public function testDeserializeAllOfProperty(): void | CODE |
| LOW | tests/SerializerTest.php | 159 | public function testValidAnnotationsListComplete(string $annotation): void | CODE |
| LOW | tests/CompilerTest.php | 248 | public static function referenceSiblingsProvider(): iterable | CODE |
| LOW | tests/CompilerTest.php | 256 | public function testReferenceObjectSiblings(CompilerInterface $compiler, bool $kept): void | CODE |
| LOW | tests/CompilerTest.php | 441 | public static function defaultAndExampleProvider(): iterable | CODE |
| LOW | tests/CompilerTest.php | 465 | public function testDefaultAndExampleEmitted(OA\Schema $schema, string $key, mixed $expected): void | CODE |
| LOW | tests/CompilerTest.php | 473 | public function testUndefinedDefaultNotEmitted(): void | CODE |
| LOW | tests/CompilerTest.php | 495 | public function testOperationsGroupedByPath(): void | CODE |
| LOW | tests/CompilerTest.php | 512 | public function testSecuritySchemeCompiled(): void | CODE |
| LOW | tests/CompilerTest.php | 709 | public function testComponentResponseKeyIsNotValidatedAsStatusCode(): void | CODE |
| LOW | tests/CompilerTest.php | 725 | public function testUnemittedOperationDoesNotCollide(): void | CODE |
| LOW | tests/CompilerTest.php | 738 | public function testValidSchemaTypesAreAccepted(): void | CODE |
| LOW | tests/CompilerTest.php | 776 | public function testOperationMethodsPerVersion(CompilerInterface $compiler, string $method, bool $supported): void | CODE |
| LOW | tests/CompilerTest.php | 822 | public function testAMediaTypeWithoutATypeIsReportedAndOmitted(): void | CODE |
| LOW | tests/CompilerTest.php | 837 | public function testARepeatedMediaTypeKeepsTheLastWithAWarning(): void | CODE |
| LOW | tests/CompilerTest.php | 852 | public function testOperationWithoutAMethodIsReportedAndOmitted(): void | CODE |
| LOW | tests/CompilerTest.php | 904 | public function testDiscriminatorCompiled(): void | CODE |
| LOW | tests/CompilerTest.php | 924 | public function testSecurityWithRequirementDto(): void | CODE |
| LOW | tests/CompilerTest.php | 939 | public function testSecurityWithRawArrayBc(): void | CODE |
| LOW | tests/CompilerTest.php | 957 | public function testUnnamedSchemaIsOmittedFromComponents(): void | CODE |
| LOW | tests/CompilerTest.php | 972 | public function testUnnamedComponentsAreOmittedFromEveryBucket(): void | CODE |
| LOW | tests/CompilerTest.php | 995 | public function testUnnamedNestedEntriesAreOmittedFromEveryMap(): void | CODE |
| LOW | tests/CompilerTest.php | 1029 | public function testNestedLinkIsNotNamedAfterItsOperationId(): void | CODE |
| LOW | tests/CompilerTest.php | 1046 | public function testDuplicateComponentKeyKeepsTheLast(): void | CODE |
| LOW | tests/CompilerTest.php | 1059 | public function testUnnamedPropertyIsOmittedFromSchema(): void | CODE |
| LOW | tests/CompilerTest.php | 1072 | public function testExampleValueNullIsEmitted(): void | CODE |
| LOW | tests/CompilerTest.php | 1083 | public function testExampleValueUnsetIsOmitted(): void | CODE |
| LOW | tests/CompilerTest.php | 1093 | public function testLinkRequestBodyNullIsEmitted(): void | CODE |
| LOW | tests/CompilerTest.php | 1104 | public function testLinkRequestBodyUnsetIsOmitted(): void | CODE |
| LOW | tests/CompilerTest.php | 1153 | public function testExampleEmptyArrayIsEmitted(\Closure $build, \Closure $extract): void | CODE |
| LOW | tests/CompilerTest.php | 1165 | public function testExampleUnsetIsOmitted(\Closure $build, \Closure $extract): void | CODE |
| LOW | tests/DocsAccuracyTest.php | 23 | public function testCliHelpOutputMatchesDocs(): void | CODE |
| LOW | tests/DocsAccuracyTest.php | 40 | public function testIsRootClassificationMatchesDocs(): void | CODE |
| LOW | tests/DocsAccuracyTest.php | 115 | public function testCompilerTableMatchesDocs(): void | CODE |
| LOW | tests/DocsAccuracyTest.php | 150 | public function testConcernsTableMatchesDocs(): void | CODE |
| LOW | tests/DocsAccuracyTest.php | 171 | public function testResultMethodListingMatchesDocs(): void | CODE |
| LOW | tests/DocsAccuracyTest.php | 193 | public function testNoRequestBodyOnReadOnlyOperations(): void | CODE |
| LOW | tests/AnalysisTest.php | 33 | public function testGetAllAncestorClasses(): void | CODE |
| LOW | tests/AnalysisTest.php | 55 | public function testGetDirectAncestorClass(): void | CODE |
| LOW | tests/OpenApiTestCase.php | 174 | protected function annotationsFromDocBlockParser(string $docBlock, array $extraAliases = [], string $version = OA\Op | CODE |
| LOW | tests/ResolverTest.php | 22 | public function testResolvesRefAndTransitivePropertyTypeByDefault(): void | CODE |
| LOW | tests/ResolverTest.php | 42 | public function testUnannotatedClassIsNotResolved(): void | CODE |
| LOW | tests/ResolverTest.php | 52 | public function testFailedFqcnIsAttemptedOnlyOncePerRun(): void | CODE |
| LOW | tests/ResolverTest.php | 68 | public function testUnloadableClassIsSkippedAndTheRestResolved(): void | CODE |
| LOW | tests/ResolverTest.php | 82 | public function testALoggerAwareResolverGetsTheResolversLogger(): void | CODE |
| LOW | tests/ResolverTest.php | 97 | public function testALoggerAwareResolverLogsToTheBuildersLogger(): void | CODE |
| LOW | tests/CookbookFragmentsSnippetTest.php | 29 | public function testPartsMatchTheDocumentedOutput(): void | CODE |
| 374 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ers/schema-query-parameter/schema-query-parameter.yaml | 46 | example: 'Lorem ipsum' | CODE |
| LOW | …ers/schema-query-parameter/schema-query-parameter.yaml | 72 | example: 'Lorem ipsum' | CODE |
| LOW | …ples/augmenters/schema-query-parameter/app/Product.php | 27 | example: 'Lorem ipsum', | CODE |
| LOW | …ors/schema-query-parameter/schema-query-parameter.yaml | 44 | example: 'Lorem ipsum' | CODE |
| LOW | …ors/schema-query-parameter/schema-query-parameter.yaml | 67 | example: 'Lorem ipsum' | CODE |
| LOW | …ples/processors/schema-query-parameter/app/Product.php | 25 | example: 'Lorem ipsum', | CODE |