🚀 A coroutine framework that focuses on hyperspeed and flexibility. Building microservice or middleware with ease.
This report summarizes scanner evidence for hyperf/hyperf, a PHP project with 6,913 GitHub stars. SynthScan examined 487,712 lines of code across 4017 source files, recording 1646 pattern matches distributed across 4 syntactic categories. The legacy adjusted pattern signal is 3.2 (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? 1635 finding(s).
Are imports declared and package/API names verified? 11 finding(s).
Are wrappers, guards, and repeated structures necessary? 1619 finding(s).
Which changes need focused human review? 1646 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 1646 distinct pattern matches across 4 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 | …ernance/tests/Listener/RegisterServiceListenerTest.php | 41 | public function testRegisterOnceForTheSameService() | CODE |
| LOW | …ernance/tests/Listener/RegisterServiceListenerTest.php | 72 | public function testRegisterForTheSameServiceWithoutTheSameProtocol() | CODE |
| LOW | src/rpc-server/tests/RouterDispatcherFactoryTest.php | 70 | public function testHandleRpcServiceWithMiddlewares() | CODE |
| LOW | src/rpc-server/src/Server.php | 153 | protected function getDefaultExceptionHandler(): array | CODE |
| LOW | …racer/tests/Adapter/Reporter/HttpClientFactoryTest.php | 35 | public function testContentLengthHeaderIsString(): void | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 270 | public function testNewInstanceReturnsNewInstanceWithAttributesSet() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 278 | public function testNewInstanceReturnsNewInstanceWithTableSet() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 287 | public function testCreateMethodSavesNewModel() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 295 | public function testMakeMethodDoesNotSaveNewModel() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 303 | public function testForceCreateMethodSavesNewModelWithGuardedAttributes() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 311 | public function testFindMethodUseWritePdo() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 318 | public function testDestroyMethodCallsQueryBuilderCorrectly() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 325 | public function testDestroyMethodCallsQueryBuilderCorrectlyWithCollection() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 332 | public function testWithMethodCallsQueryBuilderCorrectly() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 338 | public function testWithoutMethodRemovesEagerLoadedRelationshipCorrectly() | CODE |
| LOW⚡ | src/database/tests/ModelTest.php | 346 | public function testEagerLoadingWithColumns() | CODE |
| LOW | src/database/tests/ModelTest.php | 110 | public function testAttributeManipulation() | CODE |
| LOW | src/database/tests/ModelTest.php | 141 | public function testDirtyOnCastOrDateAttributes() | CODE |
| LOW | src/database/tests/ModelTest.php | 227 | public function testArrayAccessToAttributes() | CODE |
| LOW | src/database/tests/ModelTest.php | 358 | public function testWithMethodCallsQueryBuilderCorrectlyWithArray() | CODE |
| LOW | src/database/tests/ModelTest.php | 387 | public function testUpdateProcessDoesntOverrideTimestamps() | CODE |
| LOW | src/database/tests/ModelTest.php | 406 | public function testSaveIsCancelledIfSavingEventReturnsFalse() | CODE |
| LOW | src/database/tests/ModelTest.php | 424 | public function testUpdateIsCancelledIfUpdatingEventReturnsFalse() | CODE |
| LOW | src/database/tests/ModelTest.php | 443 | public function testEventsCanBeFiredWithCustomEventObjects() | CODE |
| LOW | src/database/tests/ModelTest.php | 459 | public function testUpdateProcessWithoutTimestamps() | CODE |
| LOW | src/database/tests/ModelTest.php | 479 | public function testUpdateUsesOldPrimaryKey() | CODE |
| LOW | src/database/tests/ModelTest.php | 499 | public function testTimestampsAreReturnedAsObjects() | CODE |
| LOW | src/database/tests/ModelTest.php | 515 | public function testTimestampsAreReturnedAsObjectsFromPlainDatesAndTimestamps() | CODE |
| LOW | src/database/tests/ModelTest.php | 528 | public function testTimestampsAreReturnedAsObjectsOnCreate() | CODE |
| LOW | src/database/tests/ModelTest.php | 544 | public function testDateTimeAttributesReturnNullIfSetToNull() | CODE |
| LOW | src/database/tests/ModelTest.php | 561 | public function testTimestampsAreCreatedFromStringsAndIntegers() | CODE |
| LOW | src/database/tests/ModelTest.php | 652 | public function testInsertIsCancelledIfCreatingEventReturnsFalse() | CODE |
| LOW | src/database/tests/ModelTest.php | 668 | public function testDeleteProperlyDeletesModel() | CODE |
| LOW | src/database/tests/ModelTest.php | 752 | public function testPushEmptyManyRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 809 | public function testNewQueryReturnsQueryBuilder() | CODE |
| LOW | src/database/tests/ModelTest.php | 823 | public function testGetAndSetTableOperations() | CODE |
| LOW | src/database/tests/ModelTest.php | 831 | public function testGetKeyReturnsValueOfPrimaryKey() | CODE |
| LOW | src/database/tests/ModelTest.php | 884 | public function testVisibleCreatesArrayWhitelist() | CODE |
| LOW | src/database/tests/ModelTest.php | 895 | public function testHiddenCanAlsoExcludeRelationships() | CODE |
| LOW | src/database/tests/ModelTest.php | 906 | public function testGetArrayableRelationsFunctionExcludeHiddenRelationships() | CODE |
| LOW | src/database/tests/ModelTest.php | 922 | public function testToArraySnakeAttributes() | CODE |
| LOW | src/database/tests/ModelTest.php | 1094 | public function testForceFillMethodFillsGuardedAttributes() | CODE |
| LOW | src/database/tests/ModelTest.php | 1100 | public function testFillingJSONAttributes() | CODE |
| LOW | src/database/tests/ModelTest.php | 1119 | public function testUnguardAllowsAnythingToBeSet() | CODE |
| LOW | src/database/tests/ModelTest.php | 1130 | public function testUnderscorePropertiesAreNotFilled() | CODE |
| LOW | src/database/tests/ModelTest.php | 1147 | public function testFillableOverridesGuarded() | CODE |
| LOW | src/database/tests/ModelTest.php | 1168 | public function testUnguardedRunsCallbackWhileBeingUnguarded() | CODE |
| LOW | src/database/tests/ModelTest.php | 1177 | public function testUnguardedCallDoesNotChangeUnguardedState() | CODE |
| LOW | src/database/tests/ModelTest.php | 1188 | public function testUnguardedCallDoesNotChangeUnguardedStateOnException() | CODE |
| LOW | src/database/tests/ModelTest.php | 1200 | public function testHasOneCreatesProperRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 1215 | public function testMorphOneCreatesProperRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 1225 | public function testCorrectMorphClassIsReturned() | CODE |
| LOW | src/database/tests/ModelTest.php | 1237 | public function testHasManyCreatesProperRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 1253 | public function testMorphManyCreatesProperRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 1263 | public function testBelongsToCreatesProperRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 1278 | public function testMorphToCreatesProperRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 1310 | public function testBelongsToManyCreatesProperRelation() | CODE |
| LOW | src/database/tests/ModelTest.php | 1331 | public function testRelationsWithVariedConnections() | CODE |
| LOW | src/database/tests/ModelTest.php | 1412 | public function testModelsAssumeTheirName() | CODE |
| LOW | src/database/tests/ModelTest.php | 1421 | public function testTheMutatorCacheIsPopulated() | CODE |
| 1559 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | src/database/tests/QueryBuilderTest.php | 2315 | $builder->select('*')->from('users')->where('name', 'sounds like', 'John Doe'); | CODE |
| LOW⚡ | src/database/tests/QueryBuilderTest.php | 2317 | $this->assertEquals(['John Doe'], $builder->getBindings()); | CODE |
| LOW | src/database/tests/ModelRealBuilderTest.php | 944 | ['title' => 'Foo Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2017-11-12 13:14:15')], | CODE |
| LOW | src/database/tests/ModelRealBuilderTest.php | 945 | ['title' => 'Bar Post', 'content' => 'Lorem Ipsum.', 'created_at' => new Carbon('2018-01-02 03:04:05')], | CODE |
| LOW | src/support/tests/FluentTest.php | 445 | $fluent = new Fluent(['name' => 'John Doe']); | CODE |
| LOW | src/support/tests/FluentTest.php | 453 | 'name' => 'John Doe', | CODE |
| LOW | src/support/tests/FluentTest.php | 887 | $this->assertEquals('John Doe', $fluent->getFullName()); | CODE |
| LOW⚡ | src/resource/tests/ResourceTest.php | 672 | 'user@example.com' => 'John', | CODE |
| LOW⚡ | src/resource/tests/ResourceTest.php | 673 | 'admin@example.com' => 'Hank', | CODE |
| LOW⚡ | src/resource/tests/ResourceTest.php | 676 | 'user@example.com' => 'John', | CODE |
| LOW⚡ | src/resource/tests/ResourceTest.php | 677 | 'admin@example.com' => 'Hank', | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/database/src/Query/Grammars/Grammar.php | 132 | // Essentially we will force every insert to be treated as a batch insert which | COMMENT |
| MEDIUM | src/database/src/Query/Grammars/Grammar.php | 133 | // simply makes creating the SQL easier for us since we can utilize the same | COMMENT |
| MEDIUM | …base-sqlserver/src/Query/Grammars/SqlServerGrammar.php | 239 | // Essentially we will force every insert to be treated as a batch insert which | COMMENT |
| MEDIUM | …base-sqlserver/src/Query/Grammars/SqlServerGrammar.php | 240 | // simply makes creating the SQL easier for us since we can utilize the same | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | rector.php | 21 | // register a single rule | COMMENT |
| LOW | docs/zh-cn/socketio-server.md | 121 | // 向连接推送 hello 事件 | COMMENT |
| LOW | docs/zh-tw/socketio-server.md | 121 | // 向連線推送 hello 事件 | COMMENT |
| LOW | docs/id/socketio-server.md | 121 | $socket->emit('hello', 'can you hear me?', 1, 2, 'abc'); | COMMENT |
| LOW | docs/en/socketio-server.md | 121 | // Push the hello event to the connection | COMMENT |
| LOW | docs/zh-hk/socketio-server.md | 121 | // 向連接推送 hello 事件 | COMMENT |
| LOW | .github/workflows/scorecard.yml | 41 | - name: "Run analysis" | COMMENT |
| LOW | src/database/tests/ModelCollectionTest.php | 401 | COMMENT | |
| LOW | src/collection/tests/LazyCollectionIsLazyTest.php | 1381 | $collection->tapEach(function ($value) { | COMMENT |
| LOW | src/cache/publish/cache.php | 21 | 'default' => [ | COMMENT |
| LOW | src/cache/publish/cache.php | 41 | // PDO::ATTR_EMULATE_PREPARES => false, | COMMENT |
| LOW | src/crontab/tests/ExecutorTest.php | 181 | // $this->assertSame(35, $res); | COMMENT |