Public report of mevdschee/php-crud-api, published 17 November 2026. It has the same score, grades and number of
findings as the full report. The details of security findings (where they are in the code, which known
vulnerabilities and which passwords or keys were found) are left out, so nobody can use them against the project.
Public
Executive reportMeasured under the Code Assurance Index, an open standard for code quality, using its published scoring rules (rubric version 2026.11.4). Assert signed this survey and filed it in the standard's public register, where anyone can look it up by its survey ID. Check this survey →
Signed and filed in the standard's public register, 17 November 2026, 16:26 UTC · Survey ID cd_7046e8ce830b449bbb1b654e73e622cf
mevdschee/php-crud-api
Measured 17 November 2026, 16:25 UTC, at code version bf52abc
CAI scoreAdequate
CriticalWeakAdequateStrongExemplary
Up 2.4 since the last survey
The score is built from these lenses. Each lens grades one area of the code, such as how easy it is to change or how well it is protected. The weakest lens counts most, so one weak area pulls the score down instead of being averaged away.
A medium codebase: 35,605 lines of product code in 5 projects, tests not counted · Estimated rebuild effort: about 0.2 person-years · Weakest lens: Production Readiness, 28.6
Findings by how serious they are
16 critical659 serious16 minor
19 dimensions are left out of the score. For each one, we either couldn't measure it in this code, or found no evidence of the safeguard we look for, such as a tested backup restore. They count neither for nor against the score, and Limitations lists each one with its reason.
This survey was produced by
Canine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 16:25 UTC
A measurement, not a certificate. The Code Assurance Index records a number
together with the evidence it was worked out from, so anyone can recalculate it, but it doesn't certify or guarantee
the code. The standard was written by Canine Development, which also builds the Canine Code Analyzer. It is open to any tool that
implements it, and today the Canine Code Analyzer is the only one that does.
The score is deterministic, which means the same code always gets the same score. We work it out with tools that follow published rules, and an AI model never decides it, so anyone who applies the same rules to the same code gets the same number. How it is done is explained under Methodology ▸
46of 46 dimensions measured by tools.
669of 691 findings point to an exact file and line, so you can open each one in the code. The other 22 concern the repository as a whole, such as missing documentation.
46dimensions across 5 lenses, read from 35,605 lines of product code in 5 projects.
mevdschee/php-crud-api falls short of our standard for a template or a sample, in part because we found no working pipeline that builds or tests changes to the code. It scores 49.5 out of 100 and is rated Adequate, and all 16 of its critical findings are security problems.
Production Readiness, at 28.6, is the weakest lens and counts most in the score. The best first step is raising the type checker to a stricter level, worth about 5.9 points. Adding an automated build and test pipeline would lift Production Readiness itself, worth about 5.8 points. Raising Production Readiness to 52 would lift the score to about 60.6.
Thirteen settings leave the servers or containers unsafe. Three passwords or keys are open to anyone who can read the repository. Correcting the unsafe settings and replacing each exposed password or key would close both risks.
The product code is 35,605 lines, about €33,000 to rebuild.
A lens is capped at Adequate while one of its dimensions scores below 4 out of 10, however well the rest of the lens does. That way a serious problem in one place always shows in the lens's rating.
How the score is built: what each lens counts forThe lenses don't count equally. The weakest lens counts most, the next weakest a little less, and so on, so a weak area pulls the score down instead of being averaged away. In the bar below, each part's width shows how much that lens counts and its colour shows its rating. Improving the widest part moves the score most, and as that lens improves, it counts for less, because another lens becomes the weakest.
We compare every finding with the previous survey's. A finding that has only moved to another line in the same file counts as the same finding, so only new findings appear here. Advisory notes from the AI model are left out, because the model words them afresh in every survey.
Fixed since the last survey: 34 findings
These 34 critical or serious findings were in the previous survey, on 5 November 2026, and are gone from this one.
Code Duplication · Near-duplicate member family (3 members, 15 shared lines) api.include.php
Code Duplication · Near-duplicate member family (3 members, 15 shared lines) api.include.php
Code Duplication · Near-duplicate member family (3 members, 10 shared lines) api.include.php
Code Duplication · Near-duplicate member family (3 members, 7 shared lines) api.include.php
Code Duplication · Near-duplicate member family (3 members, 6 shared lines) api.include.php
Code Duplication · Edited copy of a member (16 corresponding lines) api.include.php
Code Duplication · Edited copy of a member (25 corresponding lines) api.include.php
Code Duplication · Edited copy of a member (9 corresponding lines) api.include.php
Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) api.include.php
Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) api.include.php
Code Duplication · Members sharing a duplicated core (9 members, 50+ identical tokens) api.include.php
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php
Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php
€11,000 to €56,000, for 184 to 584 hours of work, about 0.2 person-years for one engineer
Difficulty of the problem
Standard, judged from the kind of software and how it is built. Code that solves a harder problem, such as payments or medical bookings, costs more per line to write.
Quality factor
×0.7 at a score of 49. Better code takes more work to write, so the factor is ×1.0 at a score of 70, lower below it and higher above it.
Size
Medium: 35,605 lines of product code
What it is not
Not a quotation: nobody has offered to build it for that. Not a valuation: it says nothing about what the business is worth. Not a certified figure: no professional has signed it as one.
How the estimate is made: We price the hours a team would need to write this code again, at €60 to €95 an hour. Declarations and boilerplate are priced at a fast rate and logic at a slower one, and the logic is then multiplied by the difficulty of the problem and by the quality factor. The estimate can be about 30% off either way, and it moves most with the hourly rate and the difficulty. For this code, every line is priced as straight logic, which keeps the estimate on the low side.
Top priorities
The three actions that raise the score most for the work they take. The full ranked list is in the Roadmap.
1
Raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it.
Then resolve the baselined nullness errors rather than adding to them: each is a call on a value the checker showed could be null — narrow it (`if ($x === null) { … }`, `?->`, an early return), make the property non-nullable and initialise it in the constructor, or change the return type so the null cannot arrive.
Add a CI workflow that builds and runs the test suite on every push/PR.
Raises the score by about 5.8 points · Medium effort · CI/CD gates
3
Log through a PSR-3 logger (Monolog, or Laravel's `Log` facade) with a JSON formatter at meaningful points in the applications you run.
Raises the score by about 4.5 points · Medium effort · Observability
Diagnosis: what the measurements show together
Each conclusion below combines several dimensions into one point that no single dimension shows, and lists the measurements it rests on.
Where the investment is most exposed · Value at risk
This code would cost about €33,000 to build again, about 0.2 person-years of work. Its weakest lens is Production Readiness, at 28.6 (Weak). Production Readiness is about whether the product is ready to run in production and to change without breaking. Because the weakest lens counts most in the score, work on Production Readiness also moves the score most.
Based on: the rebuild estimate · the Production Readiness grade · how much each lens counts
What to do: Start with the Production Readiness actions in Top priorities.
If you do one thing first · First action
Raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it. Of all the actions in this report, it raises the score most for the work it takes: about 5.9 points for medium effort. The next survey will show the change in the score.
Based on: the ranked actions in Top priorities, by score gain and effort
What hard-to-read code costs each year · Cost
Four dimensions measure how easy the code is to work in: two measure how tangled its logic is, one how much of it is copied, and one how well each part sticks to a single job. In this codebase they average 4.9 out of 10. Code at that level is slower to change than clean code, and we estimate the extra work at 8% to 17% on every change. The history of the code shows how much it changes: about 6,108 lines over the last 90 days, which is about 24,771 lines a year. At that pace, the extra work comes to an estimated 4.7 to 28.5 engineer-days a year, and it grows as more code changes.
How this is estimated: The number of changed lines is measured from the history of the code. The rest rests on two assumptions of our own: code scoring 8 out of 10 or more adds no extra work, and each point below 8 adds 2.5% to 5.6% to every change, never less than 2% to 5% and never more than 40% to 60% in all; and an engineer changes 150 to 400 lines in a day. The result is a range for planning, not a measurement.
Based on: Cyclomatic Complexity · Cognitive Complexity · Code Duplication · Cohesion (LCOM4) · the code's change history
What to do: Start with the files listed under Churn × Complexity Hotspots, which change often and are hard to read, because that is where the extra work is paid most often.
Architecture — module dependency graph
Project dependencies, layered top-to-bottom; arrows show direction. Any dashed red edge points upward or sideways, which only happens where the projects form a dependency cycle. A graph without cycles has none.
Architecture: which parts of the code depend on which
The code is divided into modules, groups of code that each handle one part of the product, and a module depends on another when it uses code from it. The table lists the modules both down the side and across the top, in an order where each module should only use modules listed above it. A number in a cell means the module on that row uses the module in that column, and it counts the pairs of building blocks (types) that connect them. The one thing to look for is a mark above the diagonal line. It means two or more modules use each other in a loop (a dependency cycle), so none of them can be changed, tested or released on its own.
26 modules, with 59 dependencies between them. 4 loops run through 10 of the modules, marked above the diagonal.
Which modules use which. The module on each row uses the module in each column, and the number counts the pairs of types that connect them. A cell above the diagonal is part of a loop.
Nyholm.Psr7.Factory uses Psr.Http.Message, so a change to Psr.Http.Message can break Nyholm.Psr7.Factory, while a change to Nyholm.Psr7.Factory can't break Psr.Http.Message.
Position
Below the diagonal: Nyholm.Psr7.Factory uses a module listed above it, which is the healthy direction.
Nyholm.Psr7Server uses Psr.Http.Message, so a change to Psr.Http.Message can break Nyholm.Psr7Server, while a change to Nyholm.Psr7Server can't break Psr.Http.Message.
Position
Below the diagonal: Nyholm.Psr7Server uses a module listed above it, which is the healthy direction.
Psr.Http.Server uses Psr.Http.Message, so a change to Psr.Http.Message can break Psr.Http.Server, while a change to Psr.Http.Server can't break Psr.Http.Message.
Position
Below the diagonal: Psr.Http.Server uses a module listed above it, which is the healthy direction.
10→15 Tqdev.PhpCrudApi.Cache.Base uses Tqdev.PhpCrudApi.Cachepart of a loop✕
Connections
1 pair of types, where a type in Tqdev.PhpCrudApi.Cache.Base uses a type in Tqdev.PhpCrudApi.Cache.
Tqdev.PhpCrudApi.Cache.Base uses Tqdev.PhpCrudApi.Cache, so a change to Tqdev.PhpCrudApi.Cache can break Tqdev.PhpCrudApi.Cache.Base, while a change to Tqdev.PhpCrudApi.Cache.Base can't break Tqdev.PhpCrudApi.Cache.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
Tqdev.PhpCrudApi.Config uses Tqdev.PhpCrudApi.Config.Base, so a change to Tqdev.PhpCrudApi.Config.Base can break Tqdev.PhpCrudApi.Config, while a change to Tqdev.PhpCrudApi.Config can't break Tqdev.PhpCrudApi.Config.Base.
Position
Below the diagonal: Tqdev.PhpCrudApi.Config uses a module listed above it, which is the healthy direction.
12→18 Tqdev.PhpCrudApi.Record.Condition uses Tqdev.PhpCrudApi.Column.Reflectionpart of a loop✕
Connections
4 pairs of types, where a type in Tqdev.PhpCrudApi.Record.Condition uses a type in Tqdev.PhpCrudApi.Column.Reflection.
Tqdev.PhpCrudApi.Record.Condition uses Tqdev.PhpCrudApi.Column.Reflection, so a change to Tqdev.PhpCrudApi.Column.Reflection can break Tqdev.PhpCrudApi.Record.Condition, while a change to Tqdev.PhpCrudApi.Record.Condition can't break Tqdev.PhpCrudApi.Column.Reflection.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
13→22 Tqdev.PhpCrudApi.Record.Document uses Tqdev.PhpCrudApi.Recordpart of a loop✕
Connections
1 pair of types, where a type in Tqdev.PhpCrudApi.Record.Document uses a type in Tqdev.PhpCrudApi.Record.
Tqdev.PhpCrudApi.Record.Document uses Tqdev.PhpCrudApi.Record, so a change to Tqdev.PhpCrudApi.Record can break Tqdev.PhpCrudApi.Record.Document, while a change to Tqdev.PhpCrudApi.Record.Document can't break Tqdev.PhpCrudApi.Record.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
1 pair of types, where a type in (global) uses a type in Tqdev.PhpCrudApi.Config.
The types involved
test → Tqdev.PhpCrudApi.Config.Config
Direction
(global) uses Tqdev.PhpCrudApi.Config, so a change to Tqdev.PhpCrudApi.Config can break (global), while a change to (global) can't break Tqdev.PhpCrudApi.Config.
Position
Below the diagonal: (global) uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Cache uses Tqdev.PhpCrudApi.Cache.Base, so a change to Tqdev.PhpCrudApi.Cache.Base can break Tqdev.PhpCrudApi.Cache, while a change to Tqdev.PhpCrudApi.Cache can't break Tqdev.PhpCrudApi.Cache.Base.
Position
Below the diagonal: Tqdev.PhpCrudApi.Cache uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Database uses Tqdev.PhpCrudApi.Record.Condition, so a change to Tqdev.PhpCrudApi.Record.Condition can break Tqdev.PhpCrudApi.Database, while a change to Tqdev.PhpCrudApi.Database can't break Tqdev.PhpCrudApi.Record.Condition.
Position
Below the diagonal: Tqdev.PhpCrudApi.Database uses a module listed above it, which is the healthy direction.
16→18 Tqdev.PhpCrudApi.Database uses Tqdev.PhpCrudApi.Column.Reflectionpart of a loop✕
Connections
9 pairs of types, where a type in Tqdev.PhpCrudApi.Database uses a type in Tqdev.PhpCrudApi.Column.Reflection.
Tqdev.PhpCrudApi.Database uses Tqdev.PhpCrudApi.Column.Reflection, so a change to Tqdev.PhpCrudApi.Column.Reflection can break Tqdev.PhpCrudApi.Database, while a change to Tqdev.PhpCrudApi.Database can't break Tqdev.PhpCrudApi.Column.Reflection.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
Tqdev.PhpCrudApi.Middleware.Base uses Tqdev.PhpCrudApi.Config.Base, so a change to Tqdev.PhpCrudApi.Config.Base can break Tqdev.PhpCrudApi.Middleware.Base, while a change to Tqdev.PhpCrudApi.Middleware.Base can't break Tqdev.PhpCrudApi.Config.Base.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware.Base uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware.Base uses Psr.Http.Server, so a change to Psr.Http.Server can break Tqdev.PhpCrudApi.Middleware.Base, while a change to Tqdev.PhpCrudApi.Middleware.Base can't break Psr.Http.Server.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware.Base uses a module listed above it, which is the healthy direction.
17→24 Tqdev.PhpCrudApi.Middleware.Base uses Tqdev.PhpCrudApi.Middleware.Routerpart of a loop✕
Connections
1 pair of types, where a type in Tqdev.PhpCrudApi.Middleware.Base uses a type in Tqdev.PhpCrudApi.Middleware.Router.
Tqdev.PhpCrudApi.Middleware.Base uses Tqdev.PhpCrudApi.Middleware.Router, so a change to Tqdev.PhpCrudApi.Middleware.Router can break Tqdev.PhpCrudApi.Middleware.Base, while a change to Tqdev.PhpCrudApi.Middleware.Base can't break Tqdev.PhpCrudApi.Middleware.Router.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
17→25 Tqdev.PhpCrudApi.Middleware.Base uses Tqdev.PhpCrudApi.Controllerpart of a loop✕
Connections
1 pair of types, where a type in Tqdev.PhpCrudApi.Middleware.Base uses a type in Tqdev.PhpCrudApi.Controller.
Tqdev.PhpCrudApi.Middleware.Base uses Tqdev.PhpCrudApi.Controller, so a change to Tqdev.PhpCrudApi.Controller can break Tqdev.PhpCrudApi.Middleware.Base, while a change to Tqdev.PhpCrudApi.Middleware.Base can't break Tqdev.PhpCrudApi.Controller.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
Tqdev.PhpCrudApi.Column.Reflection uses Tqdev.PhpCrudApi.Database, so a change to Tqdev.PhpCrudApi.Database can break Tqdev.PhpCrudApi.Column.Reflection, while a change to Tqdev.PhpCrudApi.Column.Reflection can't break Tqdev.PhpCrudApi.Database.
Position
Below the diagonal: Tqdev.PhpCrudApi.Column.Reflection uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Column uses Tqdev.PhpCrudApi.Cache, so a change to Tqdev.PhpCrudApi.Cache can break Tqdev.PhpCrudApi.Column, while a change to Tqdev.PhpCrudApi.Column can't break Tqdev.PhpCrudApi.Cache.
Position
Below the diagonal: Tqdev.PhpCrudApi.Column uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Column uses Tqdev.PhpCrudApi.Database, so a change to Tqdev.PhpCrudApi.Database can break Tqdev.PhpCrudApi.Column, while a change to Tqdev.PhpCrudApi.Column can't break Tqdev.PhpCrudApi.Database.
Position
Below the diagonal: Tqdev.PhpCrudApi.Column uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Column uses Tqdev.PhpCrudApi.Column.Reflection, so a change to Tqdev.PhpCrudApi.Column.Reflection can break Tqdev.PhpCrudApi.Column, while a change to Tqdev.PhpCrudApi.Column can't break Tqdev.PhpCrudApi.Column.Reflection.
Position
Below the diagonal: Tqdev.PhpCrudApi.Column uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi uses Psr.Http.Message, so a change to Psr.Http.Message can break Tqdev.PhpCrudApi, while a change to Tqdev.PhpCrudApi can't break Psr.Http.Message.
Position
Below the diagonal: Tqdev.PhpCrudApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi uses Psr.Http.Server, so a change to Psr.Http.Server can break Tqdev.PhpCrudApi, while a change to Tqdev.PhpCrudApi can't break Psr.Http.Server.
Position
Below the diagonal: Tqdev.PhpCrudApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi uses Tqdev.PhpCrudApi.Config, so a change to Tqdev.PhpCrudApi.Config can break Tqdev.PhpCrudApi, while a change to Tqdev.PhpCrudApi can't break Tqdev.PhpCrudApi.Config.
Position
Below the diagonal: Tqdev.PhpCrudApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi uses Tqdev.PhpCrudApi.Column, so a change to Tqdev.PhpCrudApi.Column can break Tqdev.PhpCrudApi, while a change to Tqdev.PhpCrudApi can't break Tqdev.PhpCrudApi.Column.
Position
Below the diagonal: Tqdev.PhpCrudApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.OpenApi uses Psr.Http.Message, so a change to Psr.Http.Message can break Tqdev.PhpCrudApi.OpenApi, while a change to Tqdev.PhpCrudApi.OpenApi can't break Psr.Http.Message.
Position
Below the diagonal: Tqdev.PhpCrudApi.OpenApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.OpenApi uses Tqdev.PhpCrudApi.Config, so a change to Tqdev.PhpCrudApi.Config can break Tqdev.PhpCrudApi.OpenApi, while a change to Tqdev.PhpCrudApi.OpenApi can't break Tqdev.PhpCrudApi.Config.
Position
Below the diagonal: Tqdev.PhpCrudApi.OpenApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.OpenApi uses Tqdev.PhpCrudApi.Column.Reflection, so a change to Tqdev.PhpCrudApi.Column.Reflection can break Tqdev.PhpCrudApi.OpenApi, while a change to Tqdev.PhpCrudApi.OpenApi can't break Tqdev.PhpCrudApi.Column.Reflection.
Position
Below the diagonal: Tqdev.PhpCrudApi.OpenApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.OpenApi uses Tqdev.PhpCrudApi.Column, so a change to Tqdev.PhpCrudApi.Column can break Tqdev.PhpCrudApi.OpenApi, while a change to Tqdev.PhpCrudApi.OpenApi can't break Tqdev.PhpCrudApi.Column.
Position
Below the diagonal: Tqdev.PhpCrudApi.OpenApi uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Record uses Tqdev.PhpCrudApi.Record.Condition, so a change to Tqdev.PhpCrudApi.Record.Condition can break Tqdev.PhpCrudApi.Record, while a change to Tqdev.PhpCrudApi.Record can't break Tqdev.PhpCrudApi.Record.Condition.
Position
Below the diagonal: Tqdev.PhpCrudApi.Record uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Record uses Tqdev.PhpCrudApi.Record.Document, so a change to Tqdev.PhpCrudApi.Record.Document can break Tqdev.PhpCrudApi.Record, while a change to Tqdev.PhpCrudApi.Record can't break Tqdev.PhpCrudApi.Record.Document.
Position
Below the diagonal: Tqdev.PhpCrudApi.Record uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Record uses Tqdev.PhpCrudApi.Database, so a change to Tqdev.PhpCrudApi.Database can break Tqdev.PhpCrudApi.Record, while a change to Tqdev.PhpCrudApi.Record can't break Tqdev.PhpCrudApi.Database.
Position
Below the diagonal: Tqdev.PhpCrudApi.Record uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Record uses Tqdev.PhpCrudApi.Column.Reflection, so a change to Tqdev.PhpCrudApi.Column.Reflection can break Tqdev.PhpCrudApi.Record, while a change to Tqdev.PhpCrudApi.Record can't break Tqdev.PhpCrudApi.Column.Reflection.
Position
Below the diagonal: Tqdev.PhpCrudApi.Record uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Record uses Tqdev.PhpCrudApi.Column, so a change to Tqdev.PhpCrudApi.Column can break Tqdev.PhpCrudApi.Record, while a change to Tqdev.PhpCrudApi.Record can't break Tqdev.PhpCrudApi.Column.
Position
Below the diagonal: Tqdev.PhpCrudApi.Record uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.GeoJson uses Tqdev.PhpCrudApi.Column, so a change to Tqdev.PhpCrudApi.Column can break Tqdev.PhpCrudApi.GeoJson, while a change to Tqdev.PhpCrudApi.GeoJson can't break Tqdev.PhpCrudApi.Column.
Position
Below the diagonal: Tqdev.PhpCrudApi.GeoJson uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.GeoJson uses Tqdev.PhpCrudApi.Record, so a change to Tqdev.PhpCrudApi.Record can break Tqdev.PhpCrudApi.GeoJson, while a change to Tqdev.PhpCrudApi.GeoJson can't break Tqdev.PhpCrudApi.Record.
Position
Below the diagonal: Tqdev.PhpCrudApi.GeoJson uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware.Router uses Psr.Http.Message, so a change to Psr.Http.Message can break Tqdev.PhpCrudApi.Middleware.Router, while a change to Tqdev.PhpCrudApi.Middleware.Router can't break Psr.Http.Message.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware.Router uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware.Router uses Psr.Http.Server, so a change to Psr.Http.Server can break Tqdev.PhpCrudApi.Middleware.Router, while a change to Tqdev.PhpCrudApi.Middleware.Router can't break Psr.Http.Server.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware.Router uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware.Router uses Tqdev.PhpCrudApi.Cache, so a change to Tqdev.PhpCrudApi.Cache can break Tqdev.PhpCrudApi.Middleware.Router, while a change to Tqdev.PhpCrudApi.Middleware.Router can't break Tqdev.PhpCrudApi.Cache.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware.Router uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware.Router uses Tqdev.PhpCrudApi.Middleware.Base, so a change to Tqdev.PhpCrudApi.Middleware.Base can break Tqdev.PhpCrudApi.Middleware.Router, while a change to Tqdev.PhpCrudApi.Middleware.Router can't break Tqdev.PhpCrudApi.Middleware.Base.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware.Router uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware.Router uses Tqdev.PhpCrudApi.Record, so a change to Tqdev.PhpCrudApi.Record can break Tqdev.PhpCrudApi.Middleware.Router, while a change to Tqdev.PhpCrudApi.Middleware.Router can't break Tqdev.PhpCrudApi.Record.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware.Router uses a module listed above it, which is the healthy direction.
24→25 Tqdev.PhpCrudApi.Middleware.Router uses Tqdev.PhpCrudApi.Controllerpart of a loop✕
Connections
1 pair of types, where a type in Tqdev.PhpCrudApi.Middleware.Router uses a type in Tqdev.PhpCrudApi.Controller.
Tqdev.PhpCrudApi.Middleware.Router uses Tqdev.PhpCrudApi.Controller, so a change to Tqdev.PhpCrudApi.Controller can break Tqdev.PhpCrudApi.Middleware.Router, while a change to Tqdev.PhpCrudApi.Middleware.Router can't break Tqdev.PhpCrudApi.Controller.
Position
Above the diagonal, so it is part of a loop. Neither module can be changed, tested or released on its own until one of these dependencies is removed.
Tqdev.PhpCrudApi.Controller uses Psr.Http.Message, so a change to Psr.Http.Message can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Psr.Http.Message.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Controller uses Tqdev.PhpCrudApi.Cache, so a change to Tqdev.PhpCrudApi.Cache can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Tqdev.PhpCrudApi.Cache.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Controller uses Tqdev.PhpCrudApi.Database, so a change to Tqdev.PhpCrudApi.Database can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Tqdev.PhpCrudApi.Database.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Controller uses Tqdev.PhpCrudApi.Column, so a change to Tqdev.PhpCrudApi.Column can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Tqdev.PhpCrudApi.Column.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Controller uses Tqdev.PhpCrudApi.OpenApi, so a change to Tqdev.PhpCrudApi.OpenApi can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Tqdev.PhpCrudApi.OpenApi.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Controller uses Tqdev.PhpCrudApi.Record, so a change to Tqdev.PhpCrudApi.Record can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Tqdev.PhpCrudApi.Record.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Controller uses Tqdev.PhpCrudApi.GeoJson, so a change to Tqdev.PhpCrudApi.GeoJson can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Tqdev.PhpCrudApi.GeoJson.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Controller uses Tqdev.PhpCrudApi.Middleware.Router, so a change to Tqdev.PhpCrudApi.Middleware.Router can break Tqdev.PhpCrudApi.Controller, while a change to Tqdev.PhpCrudApi.Controller can't break Tqdev.PhpCrudApi.Middleware.Router.
Position
Below the diagonal: Tqdev.PhpCrudApi.Controller uses a module listed above it, which is the healthy direction.
46 pairs of types, where a type in Tqdev.PhpCrudApi.Middleware uses a type in Psr.Http.Message. Showing 25 of them; the rest are in namespace-graph.json in this report's bundle.
Tqdev.PhpCrudApi.Middleware uses Psr.Http.Message, so a change to Psr.Http.Message can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Psr.Http.Message.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Psr.Http.Server, so a change to Psr.Http.Server can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Psr.Http.Server.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Config, so a change to Tqdev.PhpCrudApi.Config can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Config.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Record.Condition, so a change to Tqdev.PhpCrudApi.Record.Condition can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Record.Condition.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Database, so a change to Tqdev.PhpCrudApi.Database can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Database.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Middleware.Base, so a change to Tqdev.PhpCrudApi.Middleware.Base can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Middleware.Base.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Column.Reflection, so a change to Tqdev.PhpCrudApi.Column.Reflection can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Column.Reflection.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Column, so a change to Tqdev.PhpCrudApi.Column can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Column.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Middleware.Router, so a change to Tqdev.PhpCrudApi.Middleware.Router can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Middleware.Router.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
Tqdev.PhpCrudApi.Middleware uses Tqdev.PhpCrudApi.Controller, so a change to Tqdev.PhpCrudApi.Controller can break Tqdev.PhpCrudApi.Middleware, while a change to Tqdev.PhpCrudApi.Middleware can't break Tqdev.PhpCrudApi.Controller.
Position
Below the diagonal: Tqdev.PhpCrudApi.Middleware uses a module listed above it, which is the healthy direction.
At a glance — Code Health · 56.6 · Adequate · gated by D2, D4, X5 ·
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A02:2025 — Security Misconfiguration
22
High / Critical
A07:2025 — Authentication Failures
4
High / Critical
A05:2025 — Injection
1
Medium
Roadmap
Top priorities: Raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it. Then resolve the baselined nullness errors rather than adding to them: each is a call on a value the checker showed could be null — narrow it (`if ($x === null) { … }`, `?->`, an early return), make the property non-nullable and initialise it in the constructor, or change the return type so the null cannot arrive; Add a CI workflow that builds and runs the test suite on every push/PR; Log through a PSR-3 logger (Monolog, or Laravel's `Log` facade) with a JSON formatter at meaningful points in the applications you run.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it. Then resolve the baselined nullness errors rather than adding to them: each is a call on a value the checker showed could be null — narrow it (`if ($x === null) { … }`, `?->`, an early return), make the property non-nullable and initialise it in the constructor, or change the return type so the null cannot arrive.
Your ecosystem's static analyzer is declared as a dependency but is not wired into CI — run it as a required step on push/PR (e.g. `composer phpstan` / `mix sobelow` / `bundle exec brakeman` / the spotbugs Gradle task / `sbt scalafixAll --check` / `golangci-lint run` / `rebar3 lint`) so a regression fails the build instead of relying on someone running it locally.
Give every client an explicit bound: `new Client(['timeout' => 10, 'connect_timeout' => 3])` for Guzzle (whose default is to wait forever), `CURLOPT_TIMEOUT`/`CURLOPT_CONNECTTIMEOUT` before `curl_exec`, `timeout`/`max_duration` on Symfony HttpClient (or `framework.http_client.default_options`), and a stream-context `timeout` or `connection_timeout` for `file_get_contents`/`SoapClient`. In Drupal, use the `http_client` service, which carries core's site-wide timeout, rather than `new Client()`. Add retries with back-off (Guzzle `Middleware::retry`, Symfony `RetryableHttpClient`, Laravel `->retry()`) around dependencies that fail.
Bring the 38 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with ValidationMiddleware.validateType (cyclomatic 59), ValidationMiddleware.validateType (cyclomatic 59), ValidationMiddleware.validateType (cyclomatic 59).
Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
Every finding carries one of four grades. Three say how serious it is. The fourth says this
survey could not settle it — and it is a grade, not a gap.
Critical — 16
A definite problem that already costs you something and drags the score down: a
missing authorisation check, a dependency with a known exploit, a build that does not reproduce. Failure here
tends to cause failures elsewhere.
Serious — 659
Likely wrong, but not failing yet. It degrades
the codebase over a longer horizon and can cause failures elsewhere — not urgent this week, not something to
carry for two years either.
Minor — 16
Recorded, with no effect on how the codebase functions.
Present so the survey is complete, not because it needs doing.
Could not be resolved — 19
Something this survey could not settle
from the outside, and which could be critical or serious. Either a control was required and no
positive evidence of it exists in the repository — a backup job that nothing shows was ever restored from proves
nothing about restores — or our own analysis could not run over that part of the tree. This is not a clean
result. These are excluded from the score rather than awarded a pass, so the number on the cover neither
rewards nor penalises them: if you act on this survey without resolving them, you carry that risk yourself. Each
one is named under Limitations.
Methodology & how to trust this report
This survey is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. All 46 evaluated dimensions are computed by tools and static analysis; no language model sets or judges any of them. Overall confidence is 0.8, the weighted average across measured dimensions.
Every figure here is one of two kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10.
What we checked — 46 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 669 of 691 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D8 Code Coverage — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Coverage NOT MEASURED: test source is present (.php) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo.
D11 Test Reliability — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Test source is present (.php) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D16 Bus Factor — not measured this run — This is a true statement about the repository that carries nothing for its owner to act on, so it is reported here rather than as a defect in their code. Single-maintainer repository — bus factor is not applicable (44 contributor(s) across 2203 commit(s) sampled, automation and bot accounts excluded). One of them holds 96% of the history; the other 43 hold 0.1% each on average, below the 5% at which there is somebody to hand the work to. That is a single maintainer with drive-by contributors, not a team whose knowledge has concentrated — so the bus factor is not applicable and there is nothing here for the owner to act on.
D21 Naming Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D21's naming rules read C# through Roslyn and every other language through its sidecar model; these languages are left out (PHP's reading is its own change, a Roslyn-loaded VB or F# project has no population builder yet). Their declarations carry no naming verdict this run — this says nothing about whether their names are consistent.
D22 Internal API Consistency — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. D22's deterministic call-shape rules are gated per language (docs/plans/deterministic-engine.md, P5; C# and each NeutralApiArms arm pass): each other language is switched on only after its own concept suite and A/B gate pass. This says nothing about whether that surface is consistent.
D24 Comment Value — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. Each source language's comment syntax, and the code a comment annotates in it, needs its own proof before D24 judges it. Until then those comments are left unread, not counted as clean.
D26 Project Cohesion — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. `(repository root)` (35802 LoC, 384 module-visible types across 26 directories) is over its size bounds, and whether one unit is a coherent whole or a grab-bag is read from its type references: the parts of it that reach the rest only through its shared core. Those are read over the C#/VB code model, which this unit's source did not supply. Its size alone is no verdict on its cohesion, so none is published.
C1 Data Protection — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 'PDO' is imported (api.include.php:3688), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
C3 Audit Trail — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 'PDO' is imported (api.include.php:3688), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
C4 Data Retention — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 'PDO' is imported (api.include.php:3688), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
C5 Data-Subject Rights — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. 'PDO' is imported (api.include.php:3688), but no entity, schema, table or model declaration this check reads was found beside it, so whether personal data is stored could not be decided.
GD1 Unfinished & placeholder code — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java source only, and no C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Java was found, and this repository's PHP is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
IC1 Incompleteness & stubs — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, JavaScript/TypeScript, Java, Dart, Ruby, Scala and Rust source only, and no C#, JavaScript/TypeScript, Java, Dart, Ruby, Scala or Rust was found, and this repository's PHP is not read yet, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X1 Async correctness — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust and Kotlin source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Rust or Kotlin was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X12 Unreachable branch — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala, Kotlin, Java and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Kotlin, Java or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X13 Undrained process stream — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Python, Dart, Ruby, Scala, Kotlin, Rust and Java source only, and no C# was loaded and no JavaScript/TypeScript, Python, Dart, Ruby, Scala, Kotlin, Rust or Java was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X17 Uncapped recursion over a caller-supplied document — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Python, Dart, Ruby, Scala, Kotlin and Rust source only, and no C# was loaded and no JavaScript/TypeScript, Java, Python, Dart, Ruby, Scala, Kotlin or Rust was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X24 Document value interpolated into markup unescaped — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Scala, Ruby and Python source only, and no C# was loaded and no JavaScript/TypeScript, Java, Scala, Ruby or Python was found in this repository, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
X4 Structured logging — not measured this run — We could not measure this here. That is a gap on our side — a collector, parser or image we have not built yet — and it is neither a defect in this repository nor evidence that the check would have passed. This check reads C# syntax, and JavaScript/TypeScript, Java, Kotlin, Python, PHP, Dart, Ruby, Scala, Rust, Go, Swift, Erlang, F# and Visual Basic source only, and no C# was loaded, and this repository's JavaScript/TypeScript, Python and PHP make no call through a named logger, so it had nothing of this repository's product to read. That is a gap in this analyzer's language reach — not a finding that the repository is free of what this check looks for.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
We assess the repository exactly as committed, and only the repository. By design we do not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity — an in-process token-stream comparison over sliding windows, with type-aware normalization — so it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D5 Coupling: Coupling is measured between projects/assemblies — runtime coupling through DI, reflection, messaging or shared databases is invisible to a static reference graph.
D6 Cohesion (LCOM4): LCOM4 cohesion is syntactic — it infers connectivity from which methods touch which fields/methods by name, not from real runtime behaviour or intent.
D12 Dependency Hygiene: Dependency health reads manifests and lockfiles — a vulnerability in a vendored/copied dependency, or risk from how a dependency is actually used, is outside this view.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D14 License Compliance: License compatibility is checked against declared package metadata and a policy — mislabelled or missing license metadata, and obligations that depend on how you distribute, are not resolved here.
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D17 Explicit Debt: Acknowledged-debt signals (TODO/FIXME, suppressions, dead code) are textual — undocumented debt that nobody marked, and debt that lives in design rather than annotations, is invisible. Committed machine-written code (scaffolded migrations, designer/codegen output, generated stubs) is excluded — it is never the team's dead code to delete.
D19 Documentation Quality: Documentation quality publishes two things only: a runnable or packaged unit with no example, and a multi-project root README that maps none of its parts. It does not judge clarity, and its other checks (overview, licence, boilerplate, structure, empty sections, XML-doc coverage) are withheld after adjudication: their candidates are counted in the card's gaps, not shown as rows. A false statement in a document is M4's; units are .NET projects only.
D27 Navigability: Indirection/navigability is structural — it measures hops to follow a call, not whether that indirection buys real flexibility or just ceremony.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D30 Dependency Vulnerabilities: CVE matching depends on accurate package/version metadata and on the advisory databases — a vulnerability with no published advisory, or in code not declared as a dependency, is not seen. Coverage needs a RESOLVED graph: an unpinned requirements.txt, or a pom without a resolved build, yields partial coverage rather than a clean verdict. An ecosystem the analyzer cannot scan is reported as unmeasured, never as clean.
D31 IaC & Container Security: IaC scanning checks Dockerfiles/Terraform/Kubernetes against best-practice rules — it cannot see the live cloud account, runtime configuration, or drift between the committed config and what is actually deployed.
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
D43 Malicious Dependencies: Only packages some vulnerability database has already NAMED as malicious are seen — a compromise published in the last hours, or never reported at all, is invisible here, and this dimension reading 10 is not evidence that a dependency is trustworthy. There is no typosquat or dependency-confusion analysis: a package nobody has reported is simply absent from the feeds. Coverage is the dependency scan's: an ecosystem that could not be scanned is disclosed as unmeasured, never as clean.
D44 Platform End-of-Life: The support table is FROZEN, so it goes out of date by losing RECALL: a release that ended support after the table was written is missed until the table is refreshed, and this dimension reading 10 is not evidence that a platform is current. Only platforms the repository DECLARES in a place this pass reads are seen — a runtime named only in a REDACTED (D31's subject), in a CI workflow (D29's), or in a file this pass does not parse (go.mod, a Gemfile ruby directive) is invisible here, which is why a repository declaring none of them abstains rather than scoring. Only frameworks with a PUBLISHED support policy are tracked: React, Flask and Express publish none, so their age cannot be judged and their absence from a report is not a statement that they are supported.
AX10 Code composition: Role is inferred from namespace/folder convention, not semantics — a domain concept living in a folder named "Services" reads as application, and the split is lines-of-code, not business value. The business-logic-share score is a SOFT, FLOORED signal: it contributes to the Architecture lens but is floored at the Critical gate, so an infrastructure-heavy design (a gateway, an ETL, a driver) is legitimately low without being nuked to zero.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
P6 Release Hygiene: Rollback/observability controls are inferred from repo artefacts (pipelines, dashboards-as-code) — controls configured in external tooling, with no in-repo trace, cannot be credited.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
+ 8 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 38 bodies over 15 down to 15 or less in Cyclomatic Complexity — start with ValidationMiddleware.validateType (cyclomatic 59), ValidationMiddleware.validateType (cyclomatic 59), ValidationMiddleware.validateType (cyclomatic 59). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 38 together lifts Cyclomatic Complexity from 6.6 to about 10.0/10, projected with the scoring formula itself and assuming each lands exactly at 15.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 31 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Bring the 9 bodies over 60 down to 60 or less in Cognitive Complexity — start with DbAuthMiddleware.process (cognitive 115), DbAuthMiddleware.process (cognitive 115), DbAuthMiddleware.process (cognitive 115). — This score is capped by its worst body, so a finding fixed alone moves it by almost nothing — the next one down takes its place. Refactoring these 9 together lifts Cognitive Complexity from 3.6 to about 5.0/10, projected with the scoring formula itself and assuming each lands exactly at 60; a cleaner split scores higher.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes9.2 / 10Stronggated by 10 serious findings✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 5 TooManyMethods finding(s) in God Classes — start with api.include.php (2), api.php (2), Config.php. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 3 MethodTooLong finding(s) in God Classes — start with DbAuthMiddleware.php, Api.php, ValidationMiddleware.php. — One of this dimension's main actionable groups (3 warning-level).
Resolve the 2 FileTooLong finding(s) in God Classes — start with api.php, api.include.php. — One of this dimension's main actionable groups (2 warning-level).
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How much of the production code is copy-pasted: the share of production lines inside a reported copy (every copy of a duplicated block or of an edited member, each line once), 10 at none and 0 at a quarter of the lines.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), scored on the share of production lines inside a reported copy (each line once; 10 at none, 0 at a quarter). Deterministic.
405 duplicated block group(s) detected. 48.9 % of the production lines (17,407 of 35,605) are in a reported copy. A further 65 rows report members as variants of one another; the share counts each copied line once, however many rows cite it.
Edited copies of one member (3 members, 4+ corresponding lines) · ×15api.include.php:9724
+ 130 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 32 Duplicated block (10 lines × 3) finding(s) in Code Duplication — start with api.include.php (32). — One of this dimension's main actionable groups (32 warning-level).
Resolve the 27 Duplicated block (5 lines × 3) finding(s) in Code Duplication — start with api.include.php (27). — One of this dimension's main actionable groups (27 warning-level).
Resolve the 19 Duplicated block (7 lines × 3) finding(s) in Code Duplication — start with api.include.php (19). — One of this dimension's main actionable groups (19 warning-level).
Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D5 · Coupling8.4 / 10Strong✓ Tool-verified
What it measures: Whether volatile projects sit underneath others that depend on them (so their churn ripples upward), and whether project dependencies form cycles. A widely-depended-on but stable shared/kernel project is healthy, not penalised.
Method: Dependency cycles via elementary-DFS over real .csproj references, plus Martin instability (afferent/efferent) per project. Exhaustive over the reference graph, deterministic.
Coverage: Exhaustive · type-level: afferent/efferent coupling + cycles computed over every production type — the population is all types, not a name convention.
5 production modules (source-import), 0 dependency cycle(s), 0 unstable depended-on module(s). No manifest declares this repository's modules, so the modules are its top-level source directories and the edges the imports between them; 1 module(s) off the main sequence, with abstractness counted on 3 of the 5 (the rest declare no modelled class or interface, export only macros, declare types in source no model reads, or have no source directory of their own).
Off the main sequence: (root)
What to do
Resolve the 1 Off the main sequence finding(s) in Coupling. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d5_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether a class's methods are focused on a single responsibility.
Method: LCOM4 cohesion per production class with at least two methods: connected components of methods sharing state or calls, computed syntactically. Deterministic, not a proxy.
Coverage: Exhaustive · type-level: LCOM4 cohesion computed over every production class — the population is all types, not a name convention.
Resolve the 6 Low cohesion finding(s) in Cohesion (LCOM4) — start with api.include.php (3), api.php (3). — One of this dimension's main actionable groups (6 warning-level).
Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether dependencies are current, not deprecated, and not bloated. Known vulnerabilities are D30's.
Method: Manifest scan via dotnet list package across all projects; worst-signal-per-package deduction (capped-linear for deprecation, prerelease and outdated) per KLoC. Known-vulnerable packages are D30's and are not charged here (rubric-2026.11.2). Exhaustive.
0 outdated, 0 abandoned direct Composer dependencies. PLATFORM requirements (php, ext-*, lib-*) are deliberately not graded here: they name the runtime rather than a Packagist package, so there is no release for them to be behind — whether that runtime is still supported is a separate question with a separate remedy. Development requirements are excluded, because a consumer never installs them. A newer release is reported only where this repository's OWN constraint already admits it, so the remedy is `composer update` and never a manifest edit. Known CVEs in this dependency graph are D30's question.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
Secret scan ran and found no leaked secrets. 4 detection(s) were excluded as holding no minted credential in material that runs: a name, reference or comparison rather than a value, a readable phrase or pattern, a value that declares itself fake, or development, test, example, mock or demo material.
What it measures: Whether the licenses of third-party packages are compatible with your policy.
Method: Third-party package licenses resolved from declared package metadata and checked against the configured policy (allow/deny/copyleft). Deterministic; clean = no incompatible license found at metadata depth.
0 of 6 locked Composer package(s) use a banned license. Licences were read from this repository's composer.lock, which records the `license` each package declares, over every package in its production `packages` list, direct and transitive, at the locked version; the 1 package(s) under `packages-dev` are not installed for a consumer and are excluded.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Top hotspots: api.include.php (14×33=462); api.php (14×33=462); src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php (5×23=115)
Hotspot: api.include.php · ×4api.include.php:178
What to do
Resolve the 4 Hotspot finding(s) in Churn × Complexity Hotspots — start with api.include.php, api.php, OpenApiRecordsBuilder.php. — One of this dimension's main actionable groups (4 warning-level).
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Acknowledged debt left in the code — TODOs, dead code, suppressed warnings.
Method: Roslyn syntactic debt markers (suppressions/TODO/FIXME/HACK/empty-catch/commented-code/Obsolete) plus SymbolFinder dead-code analysis; weighted-debt-per-KLoC density deducted 2.0x per unit. Deterministic, exhaustive.
0 deducted task-comment markers across 35605 LoC (0.0/KLoC) → score 10.0. Task comments only: this repository's language is read without a compiler, so D17's suppression, dead-code and commented-out-code arms did not run and this score counts fewer marker kinds than a .NET repository's would.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Every README, docs/ document and root guide parsed by its markup and measured in Unicode letters. Published: a runnable or packaged .NET project whose README (or a document it links, or a root guide) shows no example, and a root README naming none of three or more projects. Overview, licence, boilerplate, wall-of-text, empty-section and XML-doc rows are measured and withheld (counted in gaps) after adjudication. Deterministic, exhaustive, advisory.
1 of 1 documentation facets pass in full. 3 document(s) read across 1 unit(s).
✓ On the Gold path — maintain.
Detailed fixes: d19_recommendation.md.
Do you agree with this assessment?
D27 · Navigability8.7 / 10Strong✓ Tool-verified
What it measures: How far you must trace to follow a call — low indirection and co-located slices read easier.
Method: Call indirection (interface hops, cross-namespace calls, slice-locality scaled) over a sampled set of method invocations, size-aware baseline. Sampled; confidence discounted by symbol-resolution gaps. C# also names each pass-through layer (a class whose every public method only forwards its own parameters to one collaborator) as a located finding; the score is not affected.
Coverage: Slice locality from the first namespace segments, SAMPLED (≤400 methods) — not exhaustive.
48 % of calls cross a namespace and 10 % go through an interface, but 65 % of collaborators are co-located — so following a call takes several hops. Baseline: small — navigation cost is tolerated.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Secret scan via TWO gitleaks detect passes in an isolated checkout — the full git history, then a second --no-git pass over the working tree as it stands — merged and de-duplicated by (rule, file, line); each match flagged High. Both invocations are recorded in the audit trail. Exhaustive; when the tool is absent, or when its output cannot be parsed into the expected shape, the dimension is WITHHELD as an explicit measurement gap on our side — unscored and excluded from the lens, never a hedged middling score.
3 finding(s): 0 critical, 3 high, 0 medium, 0 low. Remediation for historically-committed secrets is credential rotation — they remain in history regardless of later deletion.
REDACTED
REDACTED
What to do
Resolve the 3 High secret finding(s) in Secrets (history) — start with REDACTED (2), REDACTED. — One of this dimension's main actionable groups (3 issue-level).
Resolve the 1 Rotate the exposed credentials finding(s) in Secrets (history). — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d28_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
1 finding(s): 0 critical, 0 high, 1 medium, 0 low. semgrep hit a parse error in 1 file(s) — `scripts/release.sh` (line 42, line 47, line 51) — so no absence of findings in the named regions is evidence of anything; rows reported elsewhere in those files are real. Fix the syntax error (or exclude the file deliberately) and re-scan to cover them.
REDACTED
What to do
Resolve the 1 REDACTED finding(s) in Static Analysis (SAST) — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether any dependency has a known published vulnerability (CVE), direct or transitive, in ANY ecosystem the repository declares — Dart pub, Elixir and Erlang via Hex, Go modules, Java and Kotlin via Maven/Gradle, JavaScript/npm, .NET/NuGet, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift.
Method: Dependency-CVE scan across every ecosystem the repository declares, scored ONCE. Three sources are unioned and deduplicated by advisory identity (rule id + alias closure, CVE<->GHSA) scoped to package+version, keeping the worst severity: `osv-scanner --recursive` over osv.dev for Dart pub, Elixir/Hex (and Erlang, whose `rebar.lock` syft first converts to a CycloneDX SBOM the scanner reads, with rows attributed back to the lock), Go, Java and Kotlin via Maven/Gradle (and Scala, whose sbt build's pinned direct declarations are written into a CycloneDX SBOM the scanner reads, with rows attributed back to the build file), npm, PHP/Composer, Python/PyPI, RubyGems, Rust/Cargo and Swift; `trivy fs --scanners vuln` for npm lockfiles; and `dotnet list package --vulnerable --include-transitive` for NuGet (with per-advisory collapse of the project x target-framework fan-out), plus a DECLARED-dependency arm that resolves a published gem's gemspec against rubygems.org where no Gemfile.lock is committed. `SeverityScore(c,h,m,l, normalizer 8.0)`. NotApplicable only when NO ecosystem is readable; if any applicable ecosystem could not be scanned the findings are REPORTED and the score is withheld. Supersedes the npm and OSV arms, retired 2026-09-05. Advisory since rubric-2026.11.2 (CAI decision 0006): every row is a match against a vulnerability database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.
Resolve the 13 High IaC finding(s) in IaC & Container Security — start with REDACTED (13). — One of this dimension's main actionable groups (13 issue-level).
Resolve the 5 Medium IaC finding(s) in IaC & Container Security — start with REDACTED (4), REDACTED. — One of this dimension's main actionable groups (5 warning-level).
Resolve the 4 Low IaC finding(s) in IaC & Container Security — start with REDACTED (4). — One of this dimension's main actionable groups (4 recommendation-level).
Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
Every significant source file has living knowledge — recently and meaningfully worked. Counted over 57 of the 114 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling. A non-source file is never a coupling PARTICIPANT either: documentation, schemas, config and data files are dropped with the rest, so a code↔docs pair — a command and the reference page that restates it — is not reported however strongly the two co-change; nor is coupling that runs THROUGH a build step or config file.
What it measures: Whether any dependency the repository declares is published as MALICIOUS rather than merely vulnerable — a package that is an attacker's work, in any ecosystem osv-scanner reads. Reported apart from D30 because the answer is binary: there is no safe version to upgrade to, and the fix is to remove the package and rotate every credential it could have read.
Method: The same dependency scan D30 reads, partitioned on the scanner's own classification rather than rescanned: a row is MALICIOUS when its id is in the `MAL-` space (the ossf/malicious-packages feed) OR its `database_specific.cwe_ids` carries `CWE-506` ("Embedded Malicious Code"). Both channels are structural; the summary text is deliberately NOT read, because a malicious-package record whose summary says only "Critical severity vulnerability" is a real shape ([GHSA redacted]) and a text matcher misses it. Scored BINARY: any surviving row is 0, whatever its severity and however many CVEs sit beside it — a hostile dependency is not a quantity. Applicability and degradation are D30's: NotApplicable only when no ecosystem is readable, and an unscannable ecosystem degrades rather than reading clean. Advisory since rubric-2026.11.2 (CAI decision 0006): the malicious-package feed is a database that changes daily, so the reading is shown and never moves a scored dimension, lens or the headline.
What it measures: Whether anyone still ships security patches for the platform this repository RUNS ON — the runtime it pins and the framework majors its own constraints hold it to. Separate from D12 because the question differs: a current Django on an end-of-life Python is perfectly up to date and completely unsupported, and the fix is a migration rather than a version bump. What the repository says it merely SUPPORTS is never charged.
Method: End-of-life PLATFORM read from the repository's own declarations and graded against a FROZEN, dated table of vendor support dates — no network, no feed, no API, so this dimension answers identically inside a closed scan fence. Two subjects: a RUNTIME the project pins (a single or all-end-of-life TargetFramework, a .nvmrc or .python-version, a requires-python CAP) and a FRAMEWORK major a dependency constraint cannot move off (a caret, tilde or exact version; `vue@^2.7.16` pins Vue 2). A FLOOR is deliberately never charged — `requires-python = ">=3.8"` states what a package SUPPORTS, not what it runs on — and a multi-target project is charged only when EVERY target is out of support. Runtime 4.0/product capped 8.0, framework 1.5 capped 4.5. The table is safe to freeze because a statement about support that ended in the past cannot become false: it loses recall as it ages, never precision, and a test asserts every entry predates the freeze date. Disjoint from D31 (a container image's OS layer) and D29 (the toolchain a CI workflow installs). Abstains when the repository declares no platform this pass reads — never scores it clean.
0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 6 dependency declaration(s). This dimension reads what the repository says about ITSELF — a pinned target framework, a version file, a capped requires-python, a Rust toolchain pin, a framework major a constraint cannot move off. A FLOOR is deliberately never charged: `requires-python = ">=3.8"` states what the package SUPPORTS, not what it runs on, and a well-maintained library declares exactly that while running its own CI on a current release. The end-of-life facts are FROZEN and dated, so this dimension needs no network and answers identically inside a closed scan fence; as the table ages it loses recall and never precision, because a statement about support that ended in the past cannot become false. The OS layer of a container image is D31's question and the toolchain a CI workflow installs is D29's; this row is neither.
Other · Architecture — How the codebase splits by code ROLE — domain, application, infrastructure, test, generated. The significance map behind the knowledge/coupling weighting, and a DDD signal in its own right: a thin domain core under fat infrastructure is the anemic-domain smell, quantified. How each file's role is decided, because the split is only as good as that: a generated name or a build-output tree makes it Generated, a test project makes it Test, and otherwise the file's NAMESPACE and PATH words are matched against fixed vocabularies in a fixed ORDER — domain, then infrastructure, then application — so a file whose words hit two layers is counted under the earlier one. A production file matching none of them counts as application, so that share reads 'application or unclassified' rather than a measured application layer. Roles come from naming convention, never from what the code does. On this repository the split was taken from the source tree on disk rather than from a loaded .NET workspace, so a file's role is decided by its PATH segments alone — no declared namespace was available to add to the evidence — and generated output is excluded from the census entirely rather than counted as a generated share.
Method: Roslyn line-count by code ROLE: every source file classified Domain/Application/Infrastructure/Test/Generated by namespace + path convention (the shared CodeRoleClassifier), then significant lines summed per role. Deterministic; the advisory score is the business-logic (domain+application) share of production code.
Coverage: Population: ALL source files, each bucketed into ONE of five roles (Domain/Application/Infrastructure/Test/Generated) by namespace + path convention — a file whose layer isn't named in the convention falls to Application (the neutral default), and the split is line-count, not semantic depth or business value.
Other · Architecture — Whether the project-reference graph is acyclic (cycles block independent build/deploy and signal eroding boundaries).
Method: Project reference cycles via elementary-DFS over real .csproj references, using the engine shared with D5/D7; cyclic versus acyclic. Exhaustive, deterministic.
Other · Architecture — Whether dependencies point inward (Domain ← Application ← Infrastructure/Web) — the clean-architecture dependency rule, checked across the project graph.
Method: Layer violations by name-segment inference (Domain/Core to Application to Infrastructure/Web) over the project-reference graph. Exhaustive over all projects, deterministic.
Other · Architecture — Whether interfaces stay focused rather than fat — the Interface-Segregation principle (SOLID 'I').
Method: Roslyn scan: public interface declared-member counts (accessors fold into their property/event); fat-interface threshold (over 15 declared members) flagged per type. Each finding also reports the distinct-OPERATION count — members counted by name, so an overload group counts once — which decides whether it states the caller-side ISP harm or the implementer-side burden of an overload set. TypeScript: exported interfaces that declare behaviour, counted over their REQUIRED operations (method signatures and function-typed properties with no `?`, once per signature) — data-shape interfaces and ambient .d.ts declarations are outside the population; JavaScript declares no interfaces and is not applicable. Deterministic, type-level.
`UriInterface` declares 16 methods: `getScheme`, `getAuthority`, `getUserInfo`, `getHost`, `getPort`, `getPath`, `getQuery`, `getFragment`, `withScheme`, `withUserInfo`, `withHost`, `withPort`, `withPath`, `withQuery`, `withFragment`, `__toString`. Counted over its public instance methods, once per name; constants and static methods are not counted. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces. (×2) — api.include.php:12204, api.php:12204
What to do
Split fat interfaces into focused role-interfaces so clients depend only on what they use.
Do you agree with this assessment?
AX8 · Test isolation10.0 / 10Exemplary✓ Tool-verified
Other · Architecture — Whether production projects stay free of references to test projects — tests may depend on production, never the reverse.
Method: Csproj graph: each production project checked for references to test projects (identified by test-framework presence, not name). Zero violations is clean. Deterministic.
Maturity · Maturity — Whether the repository and its projects have a README, and whether it is substantive.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
Maturity · Maturity — Whether the repository is organised deliberately: production code and tests are set apart in a way its ecosystem or the repository itself declares.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Do you agree with this assessment?
P1 · CI/CD gates0.0 / 10Critical✓ Tool-verified
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, …) — changes aren't gated by an automated build/test.
What to do
Add a CI workflow that builds and runs the test suite on every push/PR.
Do you agree with this assessment?
P10 · Library API & versioning10.0 / 10Exemplary○ Nothing flagged
Readiness · Readiness — For a library: a deliberate (small) public API surface and explicit semantic versioning so consumers can depend on it safely.
Method: Roslyn scan: public API surface area and semantic-versioning markers (SemVer attributes, changelog entries) for libraries; off .NET, a library is the ecosystem's publication act (an npm package that is not private and names an entry point, a PyPI distribution with a build system, a Rust library crate, a Maven/Gradle module that publishes, a Go module with no package main, a gemspec, a Composer library, a SwiftPM library product, a pub.dev or Hex package), its surface is the share of types the language's code model records as public (Rust, Swift, Java, Kotlin, Go, Dart; not measured where the model records no type visibility or, as in TypeScript, only module-level export), and its version is read from the manifest, a semver CHANGELOG, release tooling or semver git tags. Exhaustive, deterministic.
Do you agree with this assessment?
P2 · Observability1.0 / 10Weak✓ Tool-verified
Readiness · Readiness — Whether the code is diagnosable in production — structured logging, tracing/metrics, health checks.
No logging call was found in the 112 PHP production file(s) this check read across 1 module(s). Each was searched for its ecosystem's logging libraries (PHP: PSR-3 loggers (Monolog), Laravel's Log facade, error_log()) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.
What to do
Log through a PSR-3 logger (Monolog, or Laravel's `Log` facade) with a JSON formatter at meaningful points in the applications you run.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
What to do
Your ecosystem's static analyzer is declared as a dependency but is not wired into CI — run it as a required step on push/PR (e.g. `composer phpstan` / `mix sobelow` / `bundle exec brakeman` / the spotbugs Gradle task / `sbt scalafixAll --check` / `golangci-lint run` / `rebar3 lint`) so a regression fails the build instead of relying on someone running it locally.
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
What to do
Add a `healthcheck:` to the served compose service — probing the endpoint it already answers on where it has one — with `depends_on: condition: service_healthy` on whatever waits for it, and keep the deployed image tag immutable and recorded so rolling back is re-pointing at the previous tag rather than rebuilding.
Add an approval/environment gate (required reviewers / protection rules) before production promotion.
Readiness · Readiness — Whether releases are traceable — a maintained changelog and explicit version stamping.
Method: Filesystem scan: changelog file presence and version tags in csproj or git tags. Exhaustive, deterministic.
No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
What to do
Keep a changelog (e.g. Keep-a-Changelog) recording what shipped in each release.
Readiness · Readiness — Whether outbound HTTP calls are wrapped in resilience (retry/timeout/circuit-breaker) so a failing dependency doesn't cascade.
Method: Source scan: outbound HTTP clients and what bounds them — resilience handlers (Polly, AddStandardResilienceHandler) on .NET; on Go, the JVM, Python, JavaScript/TypeScript, Ruby, PHP, Rust, Elixir, Swift, Dart and Erlang, a timeout, deadline, retry or breaker beside each call, or a process-wide client default (a framework-wide deadline such as Drupal core's, Laravel's or actix's awc counts). Exhaustive, deterministic.
`file_get_contents('https://` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout. (×2) — install.php:6, update.php:6
What to do
Give every client an explicit bound: `new Client(['timeout' => 10, 'connect_timeout' => 3])` for Guzzle (whose default is to wait forever), `CURLOPT_TIMEOUT`/`CURLOPT_CONNECTTIMEOUT` before `curl_exec`, `timeout`/`max_duration` on Symfony HttpClient (or `framework.http_client.default_options`), and a stream-context `timeout` or `connection_timeout` for `file_get_contents`/`SoapClient`. In Drupal, use the `http_client` service, which carries core's site-wide timeout, rather than `new Client()`. Add retries with back-off (Guzzle `Middleware::retry`, Symfony `RetryableHttpClient`, Laravel `->retry()`) around dependencies that fail.
Other · Security — Only what this repository's own non-C# files could be read for was assessed — and because this repository commits the configuration that serves its own HTTP surface, that configuration could be read in full for the security response headers it sets. Nothing else in this dimension was assessed: the transport, cookie, input-validation and crypto controls are read from a source model that was not loaded for this repository’s language, so their absence here is not a finding about this repository.
Method: Roslyn plus filesystem scan: HSTS/security headers, secure cookies, input validation, middleware order, weak crypto (MD5/SHA1/DES); HTTPS-metadata context-aware. On a repository with no .NET source it reads JavaScript/TypeScript, Dart, Ruby, Scala, Rust or Elixir source itself (test, vendored, generated and minified paths not) for the arms that hold whether or not the code serves HTTP: a weak hash or cipher, key material fixed in the source, a TLS client that accepts any certificate, and (JavaScript/TypeScript, Ruby, Scala, Rust and Elixir) an obsolete TLS version; the server controls are not assessed there, and a Dart, Ruby, Scala, Rust or Elixir repository that serves no HTTP of its own is N/A on them. Deterministic.
None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `REDACTED` builds the web-server image that serves this application, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.) — REDACTED:1
What to do
Set security response headers on the surface this repository serves: an `add_header` directive per header in the nginx/Caddy/Apache config, a `_headers` / `vercel.json` / `netlify.toml` entry for a static host, or `helmet()` in the HTTP server. `Content-Security-Policy` is the one that pays for itself first — it is what contains an injected script once one reaches the page — followed by `X-Content-Type-Options: nosniff` and a frame policy (`X-Frame-Options: DENY`, or CSP `frame-ancestors`). Where the app is served from a build container, the header configuration belongs in the image beside the built assets, so it ships with them rather than depending on where it lands.
Other · Code Health — Whether a loop that shortens a string until it fits a length budget has a floor — one with none grinds the value down to the empty string, or past it into a negative-length `Substring`.
Method: Roslyn syntax + semantics: while/do loops whose body's only effect on a string is to drop its last character, checked for whether anything — a direct comparison on the length, a body guard, a break — bounds that length below. On a repository with no .NET source it reads JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not) with the same rule: a `while`/`do` loop whose body’s one assignment to a value is `x = x.slice(0, -1)` or `x = x.slice|substring|substr(0, x.length - 1)`, driven by a condition that reads `x.length` only as a term of a larger expression — never compared directly, never tested for truthiness, and with no other read of `x` — and whose body has no `break`, `return`, `throw` or `if` naming `x`. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a type's disposal matches what it OWNS — releasing what it created, leaving alone what it was handed, and not declaring a finalizer for state that has nothing unmanaged to finalize.
Method: Roslyn syntax + semantics: every assignment to a disposable field is read to decide whether the type CREATED the value or was handed it, and the type's disposal is checked against that answer — an injected interface it disposes, a value it constructed and never releases, a finalizer on a type holding nothing unmanaged, and a disposable local whose every reference is a plain member read. A value handed to a container that disposes its contents (a parent control's `Controls` collection, a component `IContainer`) is released by that container and is not reported; generated code is out of population. On a repository with no .NET source the same ownership questions are read in JavaScript/TypeScript off the engine’s own token stream (test, vendored, generated and minified paths not): a class declaring `dispose()`, `[Symbol.dispose]()` or `[Symbol.asyncDispose]()` that disposes a field it was handed through a constructor parameter typed as a repository interface or resolved by a dependency-injection container; that assigns a field only ever from `new X(…)` of a disposable class and neither releases it anywhere in the class nor names it in its disposal member or a method that member calls, nor hands it to anything else; and a `const`/`let` local built from literals only whose every reference opens a statement operating on a non-release member of it. A class is disposable when every repository declaration of its name declares or inherits a disposal member, or when it is a documented library disposable (`vscode` EventEmitter, CancellationTokenSource and Disposable; three.js geometries, materials, textures, render targets, renderers, controls and composers). The finalizer arm has no JavaScript counterpart: a class cannot declare one. Dart is read for the owned-and-never-released arm: a Flutter `State` (or a class declaring `dispose()`/`close()`) whose library-private field is written only with direct creations of a framework controller, `FocusNode`, `StreamController` or periodic `Timer` (or a `.listen(…)` into a field declared `StreamSubscription`), which nothing in the class or its library releases (`dispose`/`close`/`cancel`) and which is never handed on except as a named argument. Ruby is read for the owned-and-never-released arm and the abandoned-local arm: a class declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose instance variable is written only with a blockless core descriptor creation (`File.open`/`new`, `Tempfile`, `Dir.open`, `IO.popen`, the `socket` and `openssl` socket classes) that no method of the class closes and that is never handed on (passed, returned, stored, exposed by `attr_reader`, delegated) — a class whose superclass or mixin lies outside the repository is not judged — and a blockless creation read through and dropped (`File.open(path).read`) or held in a local that is never closed, returned, passed or stored (a `&:read` block-pass, an `autoclose: false` borrow and a `fileno` hand-over are not abandonment). PHP is read for the same two arms: a class (not a trait, and not one using a trait) declaring an instance `close`, `dispose`, `shutdown`, `stop`, `disconnect` or `terminate` whose `private` property (or a `final` class's `protected` one) is written only with a direct core `fopen`, `tmpfile`, `popen`, `proc_open`, `fsockopen`, `stream_socket_client`/`server` or `opendir` that nothing in the class closes (`fclose`, `pclose`, `closedir`, `unset`, a reset to `null`) and that is never handed on, and a handle held in a function's local, or read through as the argument of a reader, that is never closed, returned, passed, captured or stored; a `php://` stream, `curl_init`, `SplFileObject`, `PDO` and a function the repository declares under the core name are not read. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a method that temporarily changes state belonging to the whole process — the working directory, an environment variable — puts it back on EVERY path: a restore reached only when nothing throws leaks the change to the rest of the process.
Method: Roslyn syntax + semantics: method bodies that write the process working directory or an environment variable and write it back in the same body, checked for whether that restore sits in a `finally`/`catch` or only on the straight-line path. On a repository with no .NET source the same rule reads production JavaScript/TypeScript off the engine’s own token stream (test, vendored and minified paths not): `process.chdir`, `process.env.NAME =`/`["NAME"] =` and `delete process.env.NAME`, and Deno’s `Deno.chdir`/`Deno.env.set`/`Deno.env.delete`, paired per function body (a nested function or arrow is its own body, and module top-level code is none), where the last write puts back a local the body captured from the same global or deletes a variable the first write set, with at least one statement between them; a write in a `catch`/`finally` of that body silences it. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a `when` guard is free of side effects — a guard that increments a counter or assigns while deciding whether its arm matches applies that change during PATTERN MATCHING, on an arm that may not be selected, and skips it entirely when a short-circuit to its left answers first.
Method: Roslyn syntax: `when` guards on case labels and switch-expression arms, read for a mutation (`++`/`--`/assignment) sitting in a position the guard's own `&&`/`||`/`??`/`?:`/`?.` can skip. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether a value the caller is invited to supply is the value the type actually uses — a constructor parameter stored in a private field that nothing ever reads while the default it was given is spelled out a second time at the site that should have read it, a keyed lookup that falls back to a different setting than the one its key names while the same type falls back to the matching one for that same key, or a culture-sensitive parse given no format provider by a type that feeds its own settable culture to the same kind of parse elsewhere, or a number an entry point writes to standard output under the host's culture while the same entry point formats with the invariant culture elsewhere. Either way, every caller who supplies a value silently gets something else.
Method: Roslyn syntax: private instance fields of a non-partial type assigned in a constructor from one of its own parameters with a `??` fallback, checked for whether anything in the type body reads the field and whether that same fallback expression is spelled out again outside the constructor; and `??` fallbacks onto a member access from a lookup call carrying exactly one string literal, grouped by that key across the type and checked for a fallback member whose folded name disagrees with the key while a sibling site for the same key agrees with it. On a repository with no .NET source the first two arms read JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `#x`, `private` or `private` parameter-property instance field filled in the constructor from a parameter (or one member of one) through `??`/`||` or a parameter default, never read anywhere in the file by name, whose constructed default is spelled again in the class body; and `lookup("key") ?? s.member` grouped by key per class, or per module outside every class. The culture arm has no JavaScript counterpart: its parses take no locale. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X27 · Collection changed while being enumerated10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a `foreach` leaves the array or collection it is walking alone — PHP raises nothing, but the loop's view and the collection part: an array walked by value (and a Doctrine or Laravel collection) is walked as the snapshot taken when the loop began, so an element added in the body is never visited and one removed is visited anyway; an array walked by reference (`as &$v`) and an SPL container (`SplObjectStorage`, `ArrayObject`, `SplQueue`) are walked live, so an added element is walked too and a removal skips the next one; and after an `array_splice`, `array_shift` or sort every later key names a different element.
Method: Roslyn syntax + semantics: `foreach` statements whose body calls a structural mutator (`Add`/`Remove`/`Clear`/`Insert`/…) on the very expression the loop is enumerating. Two arms. ARM A — the source is a concrete fragile BCL collection, or a live `Keys`/`Values` view over one, and the mutator resolves to that same collection's own member; concurrent and immutable collections and arrays are outside the population by construction, since their enumerators survive a structural change. ARM B — the source is an argument-less accessor CALL on a receiver whose body is in source: the accessor must return a stored field VERBATIM and a sibling member must structurally change that same field, both read off the implementations rather than from the members' names. A mutation the loop provably exits immediately after (`break`/`return`/`throw`/`goto`), or one written inside a nested loop or a lambda, is counted and never reported. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X28 · Index access outside its own emptiness guard10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a condition that tests a value for emptiness indexes that same value only where the test holds — an `||` written one parenthesis too far to the left leaves an index access outside the guard beside it, so the empty case the guard exists to anticipate reaches the index and throws.
Method: Roslyn syntax only, no semantic model: the OUTERMOST `&&`/`||` of every boolean condition, read for a symbol the condition tests for emptiness (`string.IsNullOrEmpty`/`IsNullOrWhiteSpace`, a `Length`/`Count` comparison against a literal, `Any()`, a `Length`/`Count` pattern, or a comparison against `""`) and ALSO indexes. Each `symbol[...]` access is placed by a boolean-reachability walk from the access up to the outermost connective: an access is COVERED when some enclosing step has it in the right operand and the left operand, under the truth value that step forces, proves the symbol non-empty — a recursion over `&&`/`||` whose true- and false-directions are asymmetric. A finding needs BOTH an uncovered access and a covered one on the same symbol in the same condition, which is the agreeing twin that separates a misplaced parenthesis from an unrelated length test. Bare index accesses with no emptiness test in the condition are neither counted nor reported; a non-identifier receiver and a lambda nested inside the condition are outside the population. Deterministic, provable per finding. Advisory.
Do you agree with this assessment?
X29 · Per-element action decided by a fixed element10.0 / 10Exemplary○ Nothing flagged
Other · Code Health — Whether a decision taken once per element is taken ABOUT that element — a test inside a counted loop that reads a fixed subscript of the very collection its guarded statement indexes by the loop variable applies element zero's answer to all of them, so the elements that differ from it are all handled wrongly, and in the same direction.
Method: Roslyn syntax only, no semantic model: every `for` statement declaring exactly ONE loop variable, and every `if` inside its body that is not under a nested loop or a lambda. A site enters the population when the `if`’s condition never mentions the loop variable while the statement it guards indexes some collection by that variable ALONE (`c[i]`; `c[i + 1]` and `c[i, j]` are outside it). A finding additionally needs the AGREEING TWIN at the same-collection grain: the condition must read THAT SAME collection at a subscript that does not move — written into the condition, or reached through a local declared BEFORE the loop, so an alias bound inside the body is not followed. Both collection expressions must be simple identifiers. On a repository with no .NET source the same rule reads JavaScript/TypeScript off the engine’s own token stream (tests included, bundles and vendored paths not): a `for (let|var|const x = …; …; …)` with one declarator and a braced body, an alias followed only when it is declared before the loop in a block that encloses it and never assigned inside the loop. Deterministic, provable per finding. Advisory.
Other · Code Health — Whether exceptions are handled rather than silently swallowed or rethrown with lost stack traces.
Method: Roslyn syntax scan: every catch clause counted; empty catches and bare rethrows flagged. Population is all catch clauses, not estimated. Deterministic, hard fact.
Other · Code Health — Whether PHP's static analysis checks null and is not undermined by a nullness baseline — PHPStan from level 8 (`checkNullables`) or Psalm at `errorLevel` 3 or stricter is what makes `?User` a type whose method call is an error, and the null entries of a baseline, `@psalm-suppress PossiblyNull…` and `@phpstan-ignore *.nonObject` are what silence it.
Method: Roslyn compiler-options scan: NullableContextOptions per project; null-forgiving (!) suppression density per 1k syntax nodes. Deterministic, adoption plus suppression penalty.
0/1 of this repository's PHPStan/Psalm configuration(s) run at a level that checks null — PHPStan level 8 or above (`max` included), or Psalm `errorLevel` 3 or below (Psalm's default, with none stated, is 1). A PHPStan level written neither in the file nor in an include inside the repository is 0, PHPStan's own default. Below those levels the checker removes `null` from a union before any rule looks, so `$order->customer()->name()` on a `?Customer` passes, and the first null reaching it is an `Error: Call to a member function name() on null` in production.
What to do
Raise PHPStan to level 8 (`level: 8` in `phpstan.neon.dist`, or `max`) or Psalm to `errorLevel="3"` or stricter, so `?Type` is a type the checker holds you to; generate a baseline for what that surfaces only to pay it down, not to keep it. Then resolve the baselined nullness errors rather than adding to them: each is a call on a value the checker showed could be null — narrow it (`if ($x === null) { … }`, `?->`, an early return), make the property non-nullable and initialise it in the constructor, or change the return type so the null cannot arrive.
Do you agree with this assessment?
Reference — by lens
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Unscored — 4 check(s) recorded observations but carry no score
These checks ran and found something, but they do not carry a score — either by design (an advisory check reports evidence rather than grading it) or because they could not be scored here. They are excluded from the score for that reason, not because there was nothing to see.
AXH1 Runtime security headers — 11 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXI1 Runtime container hardening — 2 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXR1 Runtime accessibility (rendered) — 2 observation(s) recorded · Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X10 Duplicated predicate — 5 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 4 control(s) we could not find positive evidence for
These checks grade a working control, and the repository shows no evidence of one. That is deliberately not scored as a zero: a repository cannot show an ops runbook, a database TTL or an infrastructure-side audit log, so absence of evidence here is not evidence the control is missing. It is also not a statement that the check is irrelevant to this codebase — the thing it grades applies; we just could not see it. Excluded from the score either way.
C3 Audit Trail — Not assessed: this repository stores data through 'PDO' (api.include.php:3688) but declares no persisted model this check reads (Laravel migration columns, Eloquent $fillable/$hidden lists, Doctrine #[ORM\Column] properties). Personal data may be written through raw SQL or a hosted backend, so whether its changes need an audit trail could not be established, and the trail's absence is not scored.
C4 Data Retention — Not assessed: this repository stores data through 'PDO' (api.include.php:3688) but declares no persisted model this check reads (Laravel migration columns, Eloquent $fillable/$hidden lists, Doctrine #[ORM\Column] properties). Personal data may be written through raw SQL or a hosted backend, so whether a retention limit applies here could not be established, and its absence is not scored.
C5 Data-Subject Rights — Not assessed: this repository stores data through 'PDO' (api.include.php:3688) but declares no persisted model this check reads (Laravel migration columns, Eloquent $fillable/$hidden lists, Doctrine #[ORM\Column] properties). Personal data may be written through raw SQL or a hosted backend, so whether data-subject rights apply here could not be established, and their absence is not scored.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 67 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No web markup found — accessibility is not applicable to this repository.
AC2 Forms & labels — No web markup found — accessibility is not applicable to this repository.
AC3 Page structure — No web markup found — accessibility is not applicable to this repository.
AC4 Keyboard semantics — No web markup found — accessibility is not applicable to this repository.
AC5 ARIA correctness — No web markup found — accessibility is not applicable to this repository.
AC6 Visual & motion safety — No web markup found — accessibility is not applicable to this repository.
AX1 Captive dependencies — Not applicable: this repository's JavaScript imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's; this repository's PHP imports no dependency-injection container and defines no container of its own — nothing that both registers and resolves bindings, and nothing that names two lifetimes — so nothing holds one lifetime's instance while handing out another's.
AX2 Stateful singletons — Not applicable: PHP builds its object graph per request and shares none of it between requests. TypeScript/JavaScript runs each process's requests on one event loop, so no two requests write a shared object at the same instant (interleaving across an await is a different defect).
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
AXA1 Runtime unauthenticated reachability — This run crawled public routes only — it had no logged-in session, so there is no authenticated surface to compare anonymous access against and nothing was measured. This is a statement about this run, not about your application: nothing here says access control is missing, and nothing here says it is present.
AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
AXS1 Runtime exposed surface — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
C1 Data Protection — Not assessed: this repository stores data through 'PDO' (api.include.php:3688) but declares no persisted model this check reads (Laravel migration columns, Eloquent $fillable/$hidden lists, Doctrine #[ORM\Column] properties). Personal data may be written through raw SQL or a hosted backend, so the absence of a personal-data field here is not evidence that none is stored, and encryption at rest is not scored over a subject that could not be established.
C2 Access Controls — No access-control surface detected in the analyzed source — this repository registers no route (no Laravel Route::…, no Symfony #[Route], no Filament panel, no WordPress REST route or AJAX action). Access control is therefore N/A here — a Composer library is authorized by the application that mounts it, not by itself. If this codebase grows request handlers, the dimension reactivates and a default-deny posture is expected then.
D10 Test Quality — ~176 lines of test source are present (.php) but no test cases reached the test census for this repository — no test root we could resolve declared them, or the files we read declare no cases in a test framework we recognise — so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included — no .php test runner
D16 Bus Factor — single-maintainer repository — bus factor is not applicable
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D20 ADR Quality — N/A — this repo declares itself a template / kata / sample / demo; a formal ADR log is deferred to a real application built from it.
D21 Naming Consistency — Naming consistency does not read PHP, html yet; not measured.
D22 Internal API Consistency — API consistency is measured on C#, TypeScript, Go only; the exposed PHP surface was not measured.
D23 Boundary Type-Coupling — No bounded-context organisation was detected either — neither a context-shaped layout, nor 2+ sibling source directories each declaring an aggregate root, nor 2+ sibling projects each declaring an entity of their own or taking another project's integration events. Declaring this codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — D24 reads C#, Visual Basic, TypeScript and JavaScript comments only; comments in this repository's .php source were not judged.
D25 ADR Conformance — no ADRs to check
D26 Project Cohesion — D26 could not read how the parts of this repository's one build unit reference each other, so its cohesion was not measured. Not scored: this is a gap in the analyzer, not a verdict about this repository.
D32 Data Compliance (PII/GDPR) — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
D36 Supply-chain Provenance & Signing — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
D37 Vulnerability-disclosure Policy — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D7 Architectural Integrity — no checkable ADRs, and no project-reference graph for the cycle pass to read — so this dimension makes no claim about dependency cycles in either direction (where this repository's language has an import-cycle lens, cycles are reported there). Architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
DM1 Domain Modelling — not scored — this repository shows none of the 3 signals this lens looks for
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this lens looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this lens looks for
GD1 Unfinished & placeholder code — no source files were read — this check reads C#, F#, JavaScript/TypeScript, Dart, Ruby, Scala, Rust and Java, and none was read for this repository's product. That is a limit of the analyzer, not a finding about your code.
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
M2 Architecture documentation — This repo declares itself a template / kata / sample / demo — formal architecture documentation (ADRs, C4 diagrams) is deferred to a real application built from it, so its absence is not a defect here.
M4 Documentation accuracy — Not applicable: the 3 current-state document(s) make no claim of a kind M4 checks. 3 claim(s) of kinds M4 does not check were not checked (path 2, environment variable 1); M4 checks only links and versions and artefact counts.
P12 CI test-gate honesty — no CI workflow found
P8 Schema migrations — no ORM, schema-migration tool or schema auto-create was found in this repository's dependency manifests or source, so there is no database schema for this check to judge
P9 Domain vs controller coverage — coverage not measured: this check compares the coverage of the analyzer's own test run across the domain and web layers, and that run measured none here — Test coverage (D8) says why
PF1 Benchmark discipline — Not applicable: no benchmark suite was found. This check searched for PHPBench subjects (`bench*` methods, or `@Subject`/`#[Subject]` ones) in a file importing PhpBench or carrying its annotations, `bench*` methods in a `*Bench.php` file where PHPBench is installed, or phpbench/phpbench in a composer.json or a phpbench.json, and for a `*benchmark*` script that this repository's CI runs. Benchmarks are credited as a bonus, so their absence is neither scored nor deducted.
PF2 Allocation hygiene — Not scored: this check counted allocation-aware idioms (Span, pools, stackalloc) per line, which describes what kind of code a repository is rather than whether it has an allocation problem, so it was withdrawn. Nothing here is a finding about your code.
PF3 Async & latency hygiene — Not applicable: PHP has no async/await function colour, so there is no asynchronous code for a blocking call to stall.
X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X12 Unreachable branch — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X13 Undrained process stream — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X14 Bypassable address classification — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X15 Unvalidated length from an untrusted reader — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X17 Uncapped recursion over a caller-supplied document — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X2 Cancellation propagation — no C# was loaded; this repository's PHP was read and makes no request a caller can cancel (amphp's HttpClient or connect) — synchronous PHP offers its callers no cancellation to take
X20 Mistyped argument guard — This check asks whether an argument guard reports an EMPTY value as a NULL one, which needs a language that throws a null-specific argument exception — .NET's ArgumentNullException, the JVM's NullPointerException, Dart's ArgumentError.notNull. This repository contains none of those languages: the ones it is written in have a single exception for a bad argument, so there is no pair of exceptions to confuse and nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X22 Contradicted release guard — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X23 Unguarded diagnostic materialisation — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X24 Document value interpolated into markup unescaped — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X26 Unsynchronised callback handoff — Not applicable: this check looks for a collection written by a callback on one thread while the body waiting on it touches it on another, and in this repository's languages no collection is reachable from two threads at once. PHP gives a request one thread of its own; the event-loop libraries (ReactPHP, Amp) run callbacks one at a time, and ext-parallel copies every value across its channels, so no array or collection is reachable from two threads at once. Not a gap in the analyzer and not a finding about your code.
X30 Support guard that admits what it rejects — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
X32 Type resolved by simple name across every loaded assembly — This check is about how a .NET program searches the assemblies loaded into its process for a type, and this repository contains no .NET source, so there is nothing here for it to assess. Not a gap in the analyzer and not a finding about your code.
X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X6 Hand-rolled structured-format parsing — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X7 Silent fallback defaults — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
X9 Subsumed condition operand — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
Duplicated block (10 lines × 3) api.include.php:495— api.include.php:495-504 | api.php:495-504 | src/Tqdev/PhpCrudApi/Cache/RedisCache.php:14-23 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:549— api.include.php:549-558 | api.php:549-558 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:35-44 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:831— api.include.php:831-840 | api.php:831-840 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:25-34 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:1166— api.include.php:1166-1175 | api.php:1166-1175 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:92-101 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:1271— api.include.php:1271-1280 | api.php:1271-1280 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:38-47 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:1423— api.include.php:1423-1432 | api.php:1423-1432 | src/Tqdev/PhpCrudApi/Config/Config.php:123-132 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:1667— api.include.php:1667-1676 | api.php:1667-1676 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:72-81 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 3) api.include.php:1727— api.include.php:1727-1736 | api.php:1727-1736 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:136-145 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 3) api.include.php:2253— api.include.php:2253-2262 | api.php:2253-2262 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:44-53 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:2561— api.include.php:2561-2570 | api.php:2561-2570 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:251-260 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:2977— api.include.php:2977-2986 | api.php:2977-2986 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:338-347 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:3006— api.include.php:3006-3015 | api.php:3006-3015 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:369-378 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:3637— api.include.php:3637-3646 | api.php:3637-3646 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:202-211 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:4080— api.include.php:4080-4089 | api.php:4080-4089 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:84-93 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:4356— api.include.php:4356-4365 | api.php:4356-4365 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:30-39 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:4594— api.include.php:4594-4603 | api.php:4594-4603 | src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php:28-37 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 3) api.include.php:5311— api.include.php:5311-5320 | api.php:5311-5320 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:123-132 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 3) api.include.php:5786— api.include.php:5786-5795 | api.php:5786-5795 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:29-38 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:6431— api.include.php:6431-6440 | api.php:6431-6440 | src/Tqdev/PhpCrudApi/Middleware/XsrfMiddleware.php:32-41 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 3) api.include.php:6810— api.include.php:6810-6819 | api.php:6810-6819 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:42-51 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 3) api.include.php:7123— api.include.php:7123-7132 | api.php:7123-7132 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDefinition.php:33-42 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 3) api.include.php:8801— api.include.php:8801-8810 | api.php:8801-8810 | src/Tqdev/PhpCrudApi/Record/OrderingInfo.php:36-45 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:8826— api.include.php:8826-8835 | api.php:8826-8835 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:16-25 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:8839— api.include.php:8839-8848 | api.php:8839-8848 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:30-39 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 3) api.include.php:9041— api.include.php:9041-9050 | api.php:9041-9050 | src/Tqdev/PhpCrudApi/Record/RecordService.php:89-98 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:1932— api.include.php:1932-1936 | api.php:1932-1936 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:22-26 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:1932` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 3) api.include.php:652— api.include.php:652-656 | api.php:652-656 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:145-149 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:755— api.include.php:755-759 | api.php:755-759 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:98-102 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) api.include.php:1221— api.include.php:1221-1225 | api.php:1221-1225 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:157-161 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:1255— api.include.php:1255-1259 | api.php:1255-1259 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:20-24 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) api.include.php:2574— api.include.php:2574-2578 | api.php:2574-2578 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:265-269 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:3085— api.include.php:3085-3089 | api.php:3085-3089 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:51-55 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:3674— api.include.php:3674-3678 | api.php:3674-3678 | src/Tqdev/PhpCrudApi/Database/LazyPdo.php:17-21 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) api.include.php:3715— api.include.php:3715-3719 | api.php:3715-3719 | src/Tqdev/PhpCrudApi/Database/LazyPdo.php:63-67 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 3) api.include.php:3943— api.include.php:3943-3947 | api.php:3943-3947 | src/Tqdev/PhpCrudApi/Database/TypeConverter.php:217-221 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 3) api.include.php:5523— api.include.php:5523-5527 | api.php:5523-5527 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:28-32 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5531— api.include.php:5531-5535 | api.php:5531-5535 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:37-41 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5539— api.include.php:5539-5543 | api.php:5539-5543 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:46-50 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5547— api.include.php:5547-5551 | api.php:5547-5551 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:55-59 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5555— api.include.php:5555-5559 | api.php:5555-5559 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:64-68 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5563— api.include.php:5563-5567 | api.php:5563-5567 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:73-77 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5571— api.include.php:5571-5575 | api.php:5571-5575 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:82-86 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5579— api.include.php:5579-5583 | api.php:5579-5583 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:91-95 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5587— api.include.php:5587-5591 | api.php:5587-5591 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:100-104 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5595— api.include.php:5595-5599 | api.php:5595-5599 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:109-113 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:5712— api.include.php:5712-5716 | api.php:5712-5716 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:89-94 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 3) api.include.php:6458— api.include.php:6458-6462 | api.php:6458-6462 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiAuthorization.php:17-21 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:6466— api.include.php:6466-6470 | api.php:6466-6470 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiAuthorization.php:26-30 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 3) api.include.php:7644— api.include.php:7644-7648 | api.php:7644-7648 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:85-89 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 3) api.include.php:8184— api.include.php:8184-8188 | api.php:8184-8188 | src/Tqdev/PhpCrudApi/Record/ColumnIncluder.php:53-57 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 3) api.include.php:2996— api.include.php:2996-3002 | api.php:2996-3002 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:358-364 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 3) api.include.php:4115— api.include.php:4115-4121 | api.php:4115-4121 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:122-128 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 3) api.include.php:5162— api.include.php:5162-5168 | api.php:5162-5168 | src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:56-62 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5162` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 3) api.include.php:8723— api.include.php:8723-8729 | api.php:8723-8729 | src/Tqdev/PhpCrudApi/Record/FilterInfo.php:89-95 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:8723` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 3) api.include.php:8972— api.include.php:8972-8978 | api.php:8972-8978 | src/Tqdev/PhpCrudApi/Record/RecordService.php:21-27 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:9200— api.include.php:9200-9206 | api.php:9200-9206 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:101-107 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:679— api.include.php:679-685 | api.php:679-685 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:20-26 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:339— api.include.php:339-346 | api.php:339-346 | src/Tqdev/PhpCrudApi/Api.php:227-233 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 3) api.include.php:1211— api.include.php:1211-1217 | api.php:1211-1217 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:146-152 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:2644— api.include.php:2644-2650 | api.php:2644-2650 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:70-76 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 3) api.include.php:3687— api.include.php:3687-3693 | api.php:3687-3693 | src/Tqdev/PhpCrudApi/Database/LazyPdo.php:32-38 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 3) api.include.php:4093— api.include.php:4093-4099 | api.php:4093-4099 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:98-104 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:5152— api.include.php:5152-5158 | api.php:5152-5158 | src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:44-50 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 3) api.include.php:7209— api.include.php:7209-7215 | api.php:7209-7215 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:55-61 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:7219— api.include.php:7219-7225 | api.php:7219-7225 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:66-72 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 3) api.include.php:7825— api.include.php:7825-7831 | api.php:7825-7831 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:108-114 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:8852— api.include.php:8852-8858 | api.php:8852-8858 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:44-50 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 3) api.include.php:9285— api.include.php:9285-9291 | api.php:9285-9291 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:196-202 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 3) api.include.php:6529— api.include.php:6529-6535 | api.php:6529-6535 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:70-76 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:1626— api.include.php:1626-1631 | api.php:1626-1631 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:27-32 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:1644— api.include.php:1644-1649 | api.php:1644-1649 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:47-52 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 3) api.include.php:6213— api.include.php:6213-6218 | api.php:6213-6218 | src/Tqdev/PhpCrudApi/Middleware/WpAuthMiddleware.php:27-32 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6213` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 3) api.include.php:9411— api.include.php:9411-9416 | api.php:9411-9416 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:42-47 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:5731— api.include.php:5731-5736 | api.php:5731-5736 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:111-116 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:1059— api.include.php:1059-1064 | api.php:1059-1064 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedDatabase.php:62-67 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 3) api.include.php:1635— api.include.php:1635-1640 | api.php:1635-1640 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:37-42 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:1855— api.include.php:1855-1860 | api.php:1855-1860 | src/Tqdev/PhpCrudApi/Controller/JsonResponder.php:35-40 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 3) api.include.php:3463— api.include.php:3463-3468 | api.php:3463-3468 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:18-23 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:4910— api.include.php:4910-4915 | api.php:4910-4915 | src/Tqdev/PhpCrudApi/Middleware/FirewallMiddleware.php:31-36 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 3) api.include.php:5389— api.include.php:5389-5394 | api.php:5389-5394 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:31-36 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:7527— api.include.php:7527-7532 | api.php:7527-7532 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:124-129 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 3) api.include.php:8051— api.include.php:8051-8056 | api.php:8051-8056 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:25-30 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:8099— api.include.php:8099-8104 | api.php:8099-8104 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:76-81 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:8620— api.include.php:8620-8625 | api.php:8620-8625 | src/Tqdev/PhpCrudApi/Record/ErrorCode.php:70-75 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:9327— api.include.php:9327-9332 | api.php:9327-9332 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:241-247 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:9474— api.include.php:9474-9479 | api.php:9474-9479 | src/Tqdev/PhpCrudApi/RequestFactory.php:13-18 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:9474` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 3) api.include.php:9523— api.include.php:9523-9528 | api.php:9523-9528 | src/Tqdev/PhpCrudApi/RequestUtils.php:24-29 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 3) api.include.php:9532— api.include.php:9532-9537 | api.php:9532-9537 | src/Tqdev/PhpCrudApi/RequestUtils.php:34-39 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
D4 · Code Duplication· Edited copies of one member (3 members, 4+ corresponding lines) · ×15
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:9724— api.include.php:9724-9727 | api.php:9724-9727 | src/Tqdev/PhpCrudApi/ResponseUtils.php:26-29 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:1492— api.include.php:1492-1495 | api.php:1492-1495 | src/Tqdev/PhpCrudApi/Config/Config.php:203-206 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:9060— api.include.php:9060-9063 | api.php:9060-9063 | src/Tqdev/PhpCrudApi/Record/RecordService.php:103-106 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:9078— api.include.php:9078-9081 | api.php:9078-9081 | src/Tqdev/PhpCrudApi/Record/RecordService.php:117-120 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:4068— api.include.php:4068-4071 | api.php:4068-4071 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:76-79 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:9034— api.include.php:9034-9037 | api.php:9034-9037 | src/Tqdev/PhpCrudApi/Record/RecordService.php:81-84 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:1773— api.include.php:1773-1776 | api.php:1773-1776 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:19-22 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:3055— api.include.php:3055-3058 | api.php:3055-3058 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:18-21 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:1315— api.include.php:1315-1318 | api.php:1315-1318 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:88-91 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:3030— api.include.php:3030-3033 | api.php:3030-3033 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:395-398 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:4451— api.include.php:4451-4454 | api.php:4451-4454 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:29-32 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:8910— api.include.php:8910-8913 | api.php:8910-8913 | src/Tqdev/PhpCrudApi/Record/PathTree.php:37-40 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:2132— api.include.php:2132-2135 | api.php:2132-2135 | src/Tqdev/PhpCrudApi/Controller/StatusController.php:19-22 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:2400— api.include.php:2400-2403 | api.php:2400-2403 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:82-85 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 4+ corresponding lines) api.include.php:7613— api.include.php:7613-7616 | api.php:7613-7616 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:52-55 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Duplicated block (8 lines × 3) api.include.php:2303— api.include.php:2303-2310 | api.php:2303-2310 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:97-104 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 3) api.include.php:2934— api.include.php:2934-2941 | api.php:2934-2941 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:292-299 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:3626— api.include.php:3626-3633 | api.php:3626-3633 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:190-197 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:4154— api.include.php:4154-4161 | api.php:4154-4161 | src/Tqdev/PhpCrudApi/GeoJson/Geometry.php:42-49 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:4154` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:4931— api.include.php:4931-4938 | api.php:4931-4938 | src/Tqdev/PhpCrudApi/Middleware/FirewallMiddleware.php:54-61 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:5720— api.include.php:5720-5727 | api.php:5720-5727 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:99-106 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:7484— api.include.php:7484-7491 | api.php:7484-7491 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:79-86 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:7627— api.include.php:7627-7634 | api.php:7627-7634 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:67-74 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:8740— api.include.php:8740-8747 | api.php:8740-8747 | src/Tqdev/PhpCrudApi/Record/FilterInfo.php:107-114 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:9687— api.include.php:9687-9694 | api.php:9687-9694 | src/Tqdev/PhpCrudApi/ResponseFactory.php:45-52 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:2266— api.include.php:2266-2273 | api.php:2266-2273 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:58-65 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:4440— api.include.php:4440-4447 | api.php:4440-4447 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:17-24 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 3) api.include.php:5683— api.include.php:5683-5690 | api.php:5683-5690 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:57-64 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:7469— api.include.php:7469-7476 | api.php:7469-7476 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:63-70 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 3) api.include.php:8427— api.include.php:8427-8434 | api.php:8427-8434 | src/Tqdev/PhpCrudApi/Record/Condition/RelatedCondition.php:41-48 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:531— api.include.php:531-545 | api.php:531-545 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:16-30 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:2029— api.include.php:2029-2043 | api.php:2029-2043 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:124-138 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:2543— api.include.php:2543-2557 | api.php:2543-2557 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:232-246 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15 lines × 3) api.include.php:3925— api.include.php:3925-3939 | api.php:3925-3939 | src/Tqdev/PhpCrudApi/Database/TypeConverter.php:198-212 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (15 lines × 3) api.include.php:4256— api.include.php:4256-4270 | api.php:4256-4270 | src/Tqdev/PhpCrudApi/Middleware/ApiKeyAuthMiddleware.php:17-31 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15 lines × 3) api.include.php:4681— api.include.php:4681-4695 | api.php:4681-4695 | src/Tqdev/PhpCrudApi/Middleware/CustomizationMiddleware.php:23-37 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (15 lines × 3) api.include.php:5281— api.include.php:5281-5295 | api.php:5281-5295 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:87-101 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15 lines × 3) api.include.php:6539— api.include.php:6539-6553 | api.php:6539-6553 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:81-95 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:7046— api.include.php:7046-7060 | api.php:7046-7060 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:103-117 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:7352— api.include.php:7352-7366 | api.php:7352-7366 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:206-220 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:7772— api.include.php:7772-7786 | api.php:7772-7786 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:52-66 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (15 lines × 3) api.include.php:8081— api.include.php:8081-8095 | api.php:8081-8095 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:57-71 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:2064— api.include.php:2064-2078 | api.php:2064-2078 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:160-174 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 3) api.include.php:2407— api.include.php:2407-2421 | api.php:2407-2421 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:90-104 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:90` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 3) api.include.php:2596— api.include.php:2596-2608 | api.php:2596-2608 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:19-31 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 3) api.include.php:2612— api.include.php:2612-2624 | api.php:2612-2624 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:36-48 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 3) api.include.php:2628— api.include.php:2628-2640 | api.php:2628-2640 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:53-65 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) api.include.php:3097— api.include.php:3097-3109 | api.php:3097-3109 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:65-77 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 3) api.include.php:4140— api.include.php:4140-4152 | api.php:4140-4152 | src/Tqdev/PhpCrudApi/GeoJson/Geometry.php:28-40 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) api.include.php:4369— api.include.php:4369-4381 | api.php:4369-4381 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:44-56 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) api.include.php:4385— api.include.php:4385-4397 | api.php:4385-4397 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:61-73 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:4385` it runs out through the closing brace of the declaration holding it — the window is that declaration's tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 3) api.include.php:4485— api.include.php:4485-4497 | api.php:4485-4497 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:66-78 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 3) api.include.php:7107— api.include.php:7107-7119 | api.php:7107-7119 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDefinition.php:16-28 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) api.include.php:7145— api.include.php:7145-7157 | api.php:7145-7157 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDefinition.php:57-69 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) api.include.php:8128— api.include.php:8128-8140 | api.php:8128-8140 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiTableNames.php:19-31 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:8128` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 3) api.include.php:8862— api.include.php:8862-8874 | api.php:8862-8874 | src/Tqdev/PhpCrudApi/Record/PaginationInfo.php:55-67 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (13 lines × 3) api.include.php:7333— api.include.php:7333-7345 | api.php:7333-7345 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:186-198 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 3) api.include.php:3120— api.include.php:3120-3132 | api.php:3120-3132 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:90-103 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 3) api.include.php:1020— api.include.php:1020-1030 | api.php:1020-1030 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedDatabase.php:20-30 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 3) api.include.php:2314— api.include.php:2314-2324 | api.php:2314-2324 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:109-119 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) api.include.php:2664— api.include.php:2664-2674 | api.php:2664-2674 | src/Tqdev/PhpCrudApi/Database/DataConverter.php:92-102 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) api.include.php:2780— api.include.php:2780-2790 | api.php:2780-2790 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:126-136 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) api.include.php:3387— api.include.php:3387-3397 | api.php:3387-3397 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:389-399 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (11 lines × 3) api.include.php:4224— api.include.php:4224-4234 | api.php:4224-4234 | src/Tqdev/PhpCrudApi/Middleware/Base/Middleware.php:32-42 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (11 lines × 3) api.include.php:5039— api.include.php:5039-5049 | api.php:5039-5049 | src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:24-34 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) api.include.php:5694— api.include.php:5694-5704 | api.php:5694-5704 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:69-79 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) api.include.php:5917— api.include.php:5917-5927 | api.php:5917-5927 | src/Tqdev/PhpCrudApi/Middleware/SslRedirectMiddleware.php:15-25 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (11 lines × 3) api.include.php:9361— api.include.php:9361-9371 | api.php:9361-9371 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:284-294 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 3) api.include.php:9568— api.include.php:9568-9578 | api.php:9568-9578 | src/Tqdev/PhpCrudApi/RequestUtils.php:72-82 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (11 lines × 3) api.include.php:866— api.include.php:866-876 | api.php:866-876 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:62-72 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (11 lines × 3) api.include.php:3338— api.include.php:3338-3348 | api.php:3338-3348 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:332-343 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 3) api.include.php:3472— api.include.php:3472-3482 | api.php:3472-3482 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:28-38 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 3) api.include.php:562— api.include.php:562-570 | api.php:562-570 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:49-57 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 3) api.include.php:1698— api.include.php:1698-1706 | api.php:1698-1706 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:105-113 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) api.include.php:3401— api.include.php:3401-3409 | api.php:3401-3409 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:404-412 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (9 lines × 3) api.include.php:4103— api.include.php:4103-4111 | api.php:4103-4111 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:109-117 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (9 lines × 3) api.include.php:5398— api.include.php:5398-5406 | api.php:5398-5406 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:41-49 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) api.include.php:5410— api.include.php:5410-5418 | api.php:5410-5418 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:54-62 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5410` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 3) api.include.php:6912— api.include.php:6912-6920 | api.php:6912-6920 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:146-154 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6912` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 3) api.include.php:6924— api.include.php:6924-6932 | api.php:6924-6932 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:159-167 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) api.include.php:6936— api.include.php:6936-6944 | api.php:6936-6944 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:172-180 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) api.include.php:612— api.include.php:612-620 | api.php:612-620 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:103-111 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 3) api.include.php:2852— api.include.php:2852-2860 | api.php:2852-2860 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:206-214 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (9 lines × 3) api.include.php:2945— api.include.php:2945-2953 | api.php:2945-2953 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:304-312 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) api.include.php:4473— api.include.php:4473-4481 | api.php:4473-4481 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:53-61 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 3) api.include.php:7012— api.include.php:7012-7020 | api.php:7012-7020 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:66-74 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
AXH1 · Runtime security headers· Runtime security header not set · ×11
Runtime security header not set: content-security-policy — The live app's responses did not include content-security-policy (restricts the sources a page may load — mitigates XSS/injection). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: cross-origin-embedder-policy — The live app's responses did not include cross-origin-embedder-policy (recommended by the OWASP Secure Headers Project (value: require-corp)). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: cross-origin-opener-policy — The live app's responses did not include cross-origin-opener-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: cross-origin-resource-policy — The live app's responses did not include cross-origin-resource-policy (recommended by the OWASP Secure Headers Project (value: same-origin)). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: permissions-policy — The live app's responses did not include permissions-policy (restricts powerful browser features (camera, geolocation, …)). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: referrer-policy — The live app's responses did not include referrer-policy (limits referrer leakage to third parties). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: strict-transport-security — The live app's responses did not include strict-transport-security (forces HTTPS on subsequent requests — mitigates downgrade/MITM). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: x-content-type-options — The live app's responses did not include x-content-type-options (stops MIME-sniffing (expects 'nosniff')). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: x-dns-prefetch-control — The live app's responses did not include x-dns-prefetch-control (recommended by the OWASP Secure Headers Project (value: off)). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: x-frame-options — The live app's responses did not include x-frame-options (blocks clickjacking via framing (or use CSP frame-ancestors)). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Runtime security header not set: x-permitted-cross-domain-policies — The live app's responses did not include x-permitted-cross-domain-policies (recommended by the OWASP Secure Headers Project (value: none)). Observed by booting the app in-sandbox — advisory evidence for AppSec / CRA / NIS2 runtime secure-defaults. Set it at your reverse proxy or in the app.
Duplicated block (17 lines × 3) api.include.php:401— api.include.php:401-417 | api.php:401-417 | src/Tqdev/PhpCrudApi/Cache/CacheFactory.php:9-25 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 3) api.include.php:1975— api.include.php:1975-1991 | api.php:1975-1991 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:68-84 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) api.include.php:2087— api.include.php:2087-2103 | api.php:2087-2103 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:184-200 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 3) api.include.php:2895— api.include.php:2895-2911 | api.php:2895-2911 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:251-267 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 3) api.include.php:4026— api.include.php:4026-4042 | api.php:4026-4042 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:32-48 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 3) api.include.php:6137— api.include.php:6137-6154 | api.php:6137-6154 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:168-184 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6137` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17 lines × 3) api.include.php:9163— api.include.php:9163-9179 | api.php:9163-9179 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:60-76 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 3) api.include.php:9085— api.include.php:9085-9101 | api.php:9085-9101 | src/Tqdev/PhpCrudApi/Record/RecordService.php:125-141 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (17 lines × 3) api.include.php:2760— api.include.php:2760-2776 | api.php:2760-2776 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:105-121 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (17 lines × 3) api.include.php:2957— api.include.php:2957-2973 | api.php:2957-2973 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:317-333 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (17 lines × 3) api.include.php:7790— api.include.php:7790-7806 | api.php:7790-7806 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:71-87 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) api.include.php:10290— api.include.php:10290-10298 | api.php:10290-10298 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) api.include.php:10309— api.include.php:10309-10317 | api.php:10309-10317 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (9 lines × 2) api.include.php:11759— api.include.php:11759-11767 | api.php:11759-11767 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) api.include.php:7652— api.include.php:7652-7660 | api.php:7652-7660 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 2) api.include.php:4898— api.include.php:4898-4906 | api.php:4898-4906 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) api.include.php:10270— api.include.php:10270-10278 | api.php:10270-10278 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) api.include.php:10770— api.include.php:10770-10778 | api.php:10770-10778 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:10770` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) api.include.php:10805— api.include.php:10805-10813 | api.php:10805-10813 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) api.include.php:11411— api.include.php:11411-11419 | api.php:11411-11419 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) api.include.php:12644— api.include.php:12644-12652 | api.php:12644-12652 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) api.include.php:10324— api.include.php:10324-10329 | api.php:10324-10329 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) api.include.php:10789— api.include.php:10789-10794 | api.php:10789-10794 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 2) api.include.php:11370— api.include.php:11370-11375 | api.php:11370-11375 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 2) api.include.php:11399— api.include.php:11399-11404 | api.php:11399-11404 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (6 lines × 2) api.include.php:11695— api.include.php:11695-11700 | api.php:11695-11700 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) api.include.php:12117— api.include.php:12117-12122 | api.php:12117-12122 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 2) api.include.php:12659— api.include.php:12659-12664 | api.php:12659-12664 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) api.include.php:12671— api.include.php:12671-12676 | api.php:12671-12676 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) api.include.php:12683— api.include.php:12683-12688 | api.php:12683-12688 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) api.include.php:12695— api.include.php:12695-12700 | api.php:12695-12700 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 3) api.include.php:431— api.include.php:431-442 | api.php:431-442 | src/Tqdev/PhpCrudApi/Cache/MemcacheCache.php:14-25 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) api.include.php:597— api.include.php:597-608 | api.php:597-608 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:87-98 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 3) api.include.php:4458— api.include.php:4458-4469 | api.php:4458-4469 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:37-48 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 3) api.include.php:5603— api.include.php:5603-5614 | api.php:5603-5614 | src/Tqdev/PhpCrudApi/Middleware/ReconnectMiddleware.php:118-129 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 3) api.include.php:6416— api.include.php:6416-6427 | api.php:6416-6427 | src/Tqdev/PhpCrudApi/Middleware/XsrfMiddleware.php:16-27 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) api.include.php:9241— api.include.php:9241-9252 | api.php:9241-9252 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:147-158 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 3) api.include.php:1284— api.include.php:1284-1295 | api.php:1284-1295 | src/Tqdev/PhpCrudApi/Column/ReflectionService.php:52-63 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12 lines × 3) api.include.php:3352— api.include.php:3352-3363 | api.php:3352-3363 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:348-360 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
D4 · Code Duplication· Members sharing a duplicated core (6 members, 50+ identical tokens) · ×7
Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php:695— api.include.php:695-748 | api.include.php:767-781 | api.php:695-748 | api.php:767-781 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:32-93 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:107-121 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php:1780— api.include.php:1780-1785 | api.include.php:1940-1945 | api.php:1780-1785 | api.php:1940-1945 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:27-32 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:31-36 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php:2977— api.include.php:2977-2990 | api.include.php:3006-3019 | api.php:2977-2990 | api.php:3006-3019 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:338-351 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:369-382 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php:5799— api.include.php:5799-5876 | api.include.php:6030-6155 | api.php:5799-5876 | api.php:6030-6155 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:43-123 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:53-185 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php:6948— api.include.php:6948-6957 | api.include.php:7287-7295 | api.php:6948-6957 | api.php:7287-7295 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:185-195 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:137-146 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php:9188— api.include.php:9188-9194 | api.include.php:9397-9403 | api.php:9188-9194 | api.php:9397-9403 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:87-93 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:27-33 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Members sharing a duplicated core (6 members, 50+ identical tokens) api.include.php:9631— api.include.php:9631-9646 | api.include.php:9731-9745 | api.php:9631-9646 | api.php:9731-9745 | src/Tqdev/PhpCrudApi/RequestUtils.php:137-153 | src/Tqdev/PhpCrudApi/ResponseUtils.php:34-49 — These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
Duplicated block (23 lines × 3) api.include.php:2277— api.include.php:2277-2299 | api.php:2277-2299 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:70-92 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 3) api.include.php:6163— api.include.php:6163-6185 | api.php:6163-6185 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:194-216 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6163` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (23 lines × 3) api.include.php:6377— api.include.php:6377-6399 | api.php:6377-6399 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:130-152 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 3) api.include.php:8235— api.include.php:8235-8257 | api.php:8235-8257 | src/Tqdev/PhpCrudApi/Record/Condition/Condition.php:32-54 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:8235` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (23 lines × 3) api.include.php:5474— api.include.php:5474-5496 | api.php:5474-5496 | src/Tqdev/PhpCrudApi/Middleware/PageLimitsMiddleware.php:24-46 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (23 lines × 3) api.include.php:3784— api.include.php:3784-3806 | api.php:3784-3806 | src/Tqdev/PhpCrudApi/Database/RealNameMapper.php:14-36 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (23 lines × 3) api.include.php:1789— api.include.php:1789-1811 | api.php:1789-1811 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:37-59 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) api.include.php:844— api.include.php:844-862 | api.php:844-862 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:39-57 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) api.include.php:2357— api.include.php:2357-2375 | api.php:2357-2375 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:35-53 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) api.include.php:4046— api.include.php:4046-4064 | api.php:4046-4064 | src/Tqdev/PhpCrudApi/GeoJson/GeoJsonService.php:53-71 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) api.include.php:5053— api.include.php:5053-5071 | api.php:5053-5071 | src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:39-57 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) api.include.php:6008— api.include.php:6008-6026 | api.php:6008-6026 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:30-48 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) api.include.php:6557— api.include.php:6557-6575 | api.php:6557-6575 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:100-118 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19 lines × 3) api.include.php:6761— api.include.php:6761-6779 | api.php:6761-6779 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnTypes.php:67-85 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 2) api.include.php:5133— api.include.php:5133-5148 | api.php:5133-5148 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) api.include.php:10369— api.include.php:10369-10384 | api.php:10369-10384 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) api.include.php:11298— api.include.php:11298-11313 | api.php:11298-11313 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 2) api.include.php:11722— api.include.php:11722-11737 | api.php:11722-11737 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 2) api.include.php:12622— api.include.php:12622-12637 | api.php:12622-12637 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:12622` it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows — the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members' bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run — a one-line delegation has no helper inside it to lift — so generate the run from the set it enumerates, or accept it and keep each member's own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 2) api.include.php:6209— api.include.php:6209-6224 | api.php:6209-6224 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6209` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16 lines × 2) api.include.php:12527— api.include.php:12527-12542 | api.php:12527-12542 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:12527` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 3) api.include.php:1710— api.include.php:1710-1723 | api.php:1710-1723 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:118-131 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) api.include.php:4965— api.include.php:4965-4978 | api.php:4965-4978 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:28-41 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (14 lines × 3) api.include.php:7229— api.include.php:7229-7242 | api.php:7229-7242 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:77-90 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) api.include.php:880— api.include.php:880-893 | api.php:880-893 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:77-90 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (14 lines × 3) api.include.php:5666— api.include.php:5666-5679 | api.php:5666-5679 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:39-52 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (14 lines × 3) api.include.php:7024— api.include.php:7024-7037 | api.php:7024-7037 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:79-92 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 3) api.include.php:2232— api.include.php:2232-2245 | api.php:2232-2245 | src/Tqdev/PhpCrudApi/Database/ColumnsBuilder.php:21-34 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) api.include.php:5655— api.include.php:5655-5662 | api.php:5655-5662 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) api.include.php:8917— api.include.php:8917-8924 | api.php:8917-8924 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) api.include.php:12126— api.include.php:12126-12133 | api.php:12126-12133 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) api.include.php:11650— api.include.php:11650-11657 | api.php:11650-11657 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 2) api.include.php:8198— api.include.php:8198-8205 | api.php:8198-8205 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (8 lines × 2) api.include.php:11704— api.include.php:11704-11711 | api.php:11704-11711 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) api.include.php:12746— api.include.php:12746-12753 | api.php:12746-12753 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 3) api.include.php:578— api.include.php:578-593 | api.php:578-593 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:67-82 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 3) api.include.php:792— api.include.php:792-807 | api.php:792-807 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:134-149 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) api.include.php:2915— api.include.php:2915-2930 | api.php:2915-2930 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:272-287 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (16 lines × 3) api.include.php:7992— api.include.php:7992-8007 | api.php:7992-8007 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:279-294 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) api.include.php:9295— api.include.php:9295-9310 | api.php:9295-9310 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:207-222 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (16 lines × 3) api.include.php:3066— api.include.php:3066-3081 | api.php:3066-3081 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:31-46 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) api.include.php:10336— api.include.php:10336-10346 | api.php:10336-10346 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) api.include.php:10970— api.include.php:10970-10980 | api.php:10970-10980 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (11 lines × 2) api.include.php:11831— api.include.php:11831-11841 | api.php:11831-11841 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) api.include.php:12554— api.include.php:12554-12564 | api.php:12554-12564 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) api.include.php:5179— api.include.php:5179-5189 | api.php:5179-5189 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5179` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) api.include.php:8256— api.include.php:8256-8266 | api.php:8256-8266 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 6) api.include.php:2899— api.include.php:2899-2903 | api.include.php:2922-2926 | api.php:2899-2903 | api.php:2922-2926 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:255-259 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:279-283 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) api.include.php:6569— api.include.php:6569-6573 | api.include.php:7729-7733 | api.php:6569-6573 | api.php:7729-7733 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:112-116 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:191-195 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6569` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 6) api.include.php:6580— api.include.php:6580-6584 | api.include.php:6905-6909 | api.php:6580-6584 | api.php:6905-6909 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:124-128 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:139-143 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) api.include.php:6948— api.include.php:6948-6952 | api.include.php:7287-7291 | api.php:6948-6952 | api.php:7287-7291 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:185-189 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:137-142 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) api.include.php:7700— api.include.php:7700-7704 | api.include.php:7711-7715 | api.php:7700-7704 | api.php:7711-7715 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:157-161 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:170-174 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 6) api.include.php:2379— api.include.php:2379-2383 | api.include.php:2387-2391 | api.php:2379-2383 | api.php:2387-2391 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:58-62 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:67-71 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Low cohesion: ServerRequest (LCOM4 12) api.include.php:11272— ServerRequest's methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: ServerRequest (LCOM4 12) api.php:11272— ServerRequest's methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Request (LCOM4 6) api.include.php:10844— Request's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Request (LCOM4 6) api.php:10844— Request's methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Response (LCOM4 5) api.include.php:10951— Response's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
Low cohesion: Response (LCOM4 5) api.php:10951— Response's methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable — your repository's bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected — and which would otherwise dominate this list — are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting.
TooManyMethods: GenericDefinition api.include.php:3047— TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: GenericDefinition api.php:3047— TooManyMethods — 34 methods. The bar is 30 methods; this is 4 over it, 1.13× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Config api.include.php:1344— TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Config api.php:1344— TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: Config src/Tqdev/PhpCrudApi/Config/Config.php:7— TooManyMethods — 33 methods. The bar is 30 methods; this is 3 over it, 1.10× the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
D4 · Code Duplication· Edited copy of a member (4 corresponding lines) · ×5
Edited copy of a member (4 corresponding lines) api.include.php:6998— api.include.php:6998-7001 | api.php:6998-7001 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) api.include.php:12757— api.include.php:12757-12760 | api.php:12757-12760 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) api.include.php:12764— api.include.php:12764-12767 | api.php:12764-12767 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) api.include.php:4722— api.include.php:4722-4725 | api.php:4722-4725 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (4 corresponding lines) api.include.php:10222— api.include.php:10222-10225 | api.php:10222-10225 — These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (24 lines × 3) api.include.php:1864— api.include.php:1864-1887 | api.php:1864-1887 | src/Tqdev/PhpCrudApi/Controller/JsonResponder.php:45-68 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 3) api.include.php:4304— api.include.php:4304-4327 | api.php:4304-4327 | src/Tqdev/PhpCrudApi/Middleware/ApiKeyDbAuthMiddleware.php:35-58 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (24 lines × 3) api.include.php:7064— api.include.php:7064-7087 | api.php:7064-7087 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiDbAuthBuilder.php:122-145 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 3) api.include.php:9541— api.include.php:9541-9564 | api.php:9541-9564 | src/Tqdev/PhpCrudApi/RequestUtils.php:44-67 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (24 lines × 3) api.include.php:7495— api.include.php:7495-7518 | api.php:7495-7518 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiMiddlewares.php:91-114 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) api.include.php:295— api.include.php:295-312 | api.php:295-312 | src/Tqdev/PhpCrudApi/Api.php:181-198 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) api.include.php:6579— api.include.php:6579-6596 | api.php:6579-6596 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:123-140 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) api.include.php:7373— api.include.php:7373-7390 | api.php:7373-7390 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:228-245 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) api.include.php:8060— api.include.php:8060-8077 | api.php:8060-8077 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:35-52 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 3) api.include.php:8529— api.include.php:8529-8546 | api.php:8529-8546 | src/Tqdev/PhpCrudApi/Record/Document/ErrorDocument.php:52-69 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 2) api.include.php:5164— api.include.php:5164-5175 | api.php:5164-5175 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5164` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) api.include.php:8725— api.include.php:8725-8736 | api.php:8725-8736 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:8725` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 2) api.include.php:8928— api.include.php:8928-8939 | api.php:8928-8939 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 2) api.include.php:11779— api.include.php:11779-11790 | api.php:11779-11790 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (12 lines × 2) api.include.php:12580— api.include.php:12580-12591 | api.php:12580-12591 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 2) api.include.php:9412— api.include.php:9412-9421 | api.php:9412-9421 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:9412` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) api.include.php:10754— api.include.php:10754-10763 | api.php:10754-10763 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) api.include.php:11798— api.include.php:11798-11807 | api.php:11798-11807 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (10 lines × 2) api.include.php:12606— api.include.php:12606-12615 | api.php:12606-12615 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) api.include.php:10205— api.include.php:10205-10214 | api.php:10205-10214 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Hotspot: api.include.php api.include.php:178— api.include.php changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Api.__construct at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 07:51:57 +01:00' --until='2026-11-12 07:51:57 +01:00' --full-history --no-merges -- api.include.php`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: api.php api.php:178— api.php changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Api.__construct at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 07:51:57 +01:00' --until='2026-11-12 07:51:57 +01:00' --full-history --no-merges -- api.php`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:187— src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in OpenApiRecordsBuilder.setComponentSchema at line 187. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 07:51:57 +01:00' --until='2026-11-12 07:51:57 +01:00' --full-history --no-merges -- src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
Hotspot: src/Tqdev/PhpCrudApi/Api.php src/Tqdev/PhpCrudApi/Api.php:52— src/Tqdev/PhpCrudApi/Api.php changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Api.__construct at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with `git log --since='2026-08-14 07:51:57 +01:00' --until='2026-11-12 07:51:57 +01:00' --full-history --no-merges -- src/Tqdev/PhpCrudApi/Api.php`: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each — a difference of several commits on a file whose history was re-landed or reverted inside the window.
D4 · Code Duplication· Members sharing a duplicated core (9 members, 50+ identical tokens) · ×4
Members sharing a duplicated core (9 members, 50+ identical tokens) api.include.php:1653— api.include.php:1653-1663 | api.include.php:1680-1694 | api.include.php:1740-1754 | api.php:1653-1663 | api.php:1680-1694 | api.php:1740-1754 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:57-67 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:86-100 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:150-164 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
Members sharing a duplicated core (9 members, 50+ identical tokens) api.include.php:4501— api.include.php:4501-4544 | api.include.php:4729-4881 | api.include.php:5324-5359 | api.php:4501-4544 | api.php:4729-4881 | api.php:5324-5359 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:83-126 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:35-187 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:137-172 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
Members sharing a duplicated core (9 members, 50+ identical tokens) api.include.php:6579— api.include.php:6579-6596 | api.include.php:6879-6920 | api.include.php:8081-8095 | api.php:6579-6596 | api.php:6879-6920 | api.php:8081-8095 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:123-140 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:113-154 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:57-71 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
Members sharing a duplicated core (9 members, 50+ identical tokens) api.include.php:6669— api.include.php:6669-6683 | api.include.php:7564-7578 | api.include.php:8060-8077 | api.php:6669-6683 | api.php:7564-7578 | api.php:8060-8077 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiCacheBuilder.php:32-46 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiOpenApiBuilder.php:34-48 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:35-52 — These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times.
Duplicated block (31 lines × 3) api.include.php:2159— api.include.php:2159-2189 | api.php:2159-2189 | src/Tqdev/PhpCrudApi/Database/ColumnConverter.php:20-50 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (31 lines × 3) api.include.php:2794— api.include.php:2794-2824 | api.php:2794-2824 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:141-171 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (31 lines × 3) api.include.php:6275— api.include.php:6275-6305 | api.php:6275-6305 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:24-54 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6275` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (31 lines × 3) api.include.php:7246— api.include.php:7246-7276 | api.php:7246-7276 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:95-125 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:7246` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (25 lines × 3) api.include.php:624— api.include.php:624-648 | api.php:624-648 | src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:116-140 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 3) api.include.php:1091— api.include.php:1091-1115 | api.php:1091-1115 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:18-42 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (25 lines × 3) api.include.php:2511— api.include.php:2511-2535 | api.php:2511-2535 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:198-222 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (25 lines × 3) api.include.php:7964— api.include.php:7964-7988 | api.php:7964-7988 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:250-274 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 3) api.include.php:1950— api.include.php:1950-1971 | api.php:1950-1971 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:42-63 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 3) api.include.php:5429— api.include.php:5429-5450 | api.php:5429-5450 | src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:76-97 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22 lines × 3) api.include.php:9606— api.include.php:9606-9627 | api.php:9606-9627 | src/Tqdev/PhpCrudApi/RequestUtils.php:111-132 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (22 lines × 3) api.include.php:6499— api.include.php:6499-6520 | api.php:6499-6520 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:39-60 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (20 lines × 3) api.include.php:316— api.include.php:316-335 | api.php:316-335 | src/Tqdev/PhpCrudApi/Api.php:203-222 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (20 lines × 3) api.include.php:2193— api.include.php:2193-2212 | api.php:2193-2212 | src/Tqdev/PhpCrudApi/Database/ColumnConverter.php:55-74 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (20 lines × 3) api.include.php:8156— api.include.php:8156-8175 | api.php:8156-8175 | src/Tqdev/PhpCrudApi/Record/ColumnIncluder.php:22-41 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:8156` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (20 lines × 3) api.include.php:1999— api.include.php:1999-2018 | api.php:1999-2018 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:93-112 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) api.include.php:10817— api.include.php:10817-10830 | api.php:10817-10830 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) api.include.php:10857— api.include.php:10857-10870 | api.php:10857-10870 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 2) api.include.php:10995— api.include.php:10995-11008 | api.php:10995-11008 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (14 lines × 2) api.include.php:11811— api.include.php:11811-11824 | api.php:11811-11824 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) api.include.php:1780— api.include.php:1780-1785 | api.include.php:1940-1945 | api.php:1780-1785 | api.php:1940-1945 | src/Tqdev/PhpCrudApi/Controller/GeoJsonController.php:27-32 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:31-36 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 6) api.include.php:2896— api.include.php:2896-2901 | api.include.php:2994-2999 | api.php:2896-2901 | api.php:2994-2999 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:252-257 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:356-361 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6 lines × 6) api.include.php:6904— api.include.php:6904-6909 | api.include.php:8086-8091 | api.php:6904-6909 | api.php:8086-8091 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:138-143 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:62-67 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6904` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 6) api.include.php:1960— api.include.php:1960-1965 | api.include.php:2071-2076 | api.php:1960-1965 | api.php:2071-2076 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:52-57 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:167-172 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
ValidationMiddleware.validateType (cyclomatic 59) api.include.php:6028— ValidationMiddleware.validateType has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ValidationMiddleware.validateType (cyclomatic 59) api.php:6028— ValidationMiddleware.validateType has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ValidationMiddleware.validateType (cyclomatic 59) src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:51— ValidationMiddleware.validateType has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DbAuthMiddleware.process (cyclomatic 46) api.include.php:4727— DbAuthMiddleware.process has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DbAuthMiddleware.process (cyclomatic 46) api.php:4727— DbAuthMiddleware.process has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DbAuthMiddleware.process (cyclomatic 46) src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:33— DbAuthMiddleware.process has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
Api.__construct (cyclomatic 33) api.include.php:178— Api.__construct has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Api.__construct (cyclomatic 33) api.php:178— Api.__construct has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
Api.__construct (cyclomatic 33) src/Tqdev/PhpCrudApi/Api.php:52— Api.__construct has cyclomatic complexity 33 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform — the same kind of value, with no behaviour of its own — a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing.
SanitationMiddleware.sanitizeType (cyclomatic 32) api.include.php:5797— SanitationMiddleware.sanitizeType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SanitationMiddleware.sanitizeType (cyclomatic 32) api.php:5797— SanitationMiddleware.sanitizeType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SanitationMiddleware.sanitizeType (cyclomatic 32) src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:41— SanitationMiddleware.sanitizeType has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
JwtAuthMiddleware.getVerifiedClaims (cyclomatic 29) api.include.php:5217— JwtAuthMiddleware.getVerifiedClaims has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
JwtAuthMiddleware.getVerifiedClaims (cyclomatic 29) api.php:5217— JwtAuthMiddleware.getVerifiedClaims has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
JwtAuthMiddleware.getVerifiedClaims (cyclomatic 29) src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:14— JwtAuthMiddleware.getVerifiedClaims has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefinitionService.updateColumn (cyclomatic 24) api.include.php:687— DefinitionService.updateColumn has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefinitionService.updateColumn (cyclomatic 24) api.php:687— DefinitionService.updateColumn has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DefinitionService.updateColumn (cyclomatic 24) src/Tqdev/PhpCrudApi/Column/DefinitionService.php:29— DefinitionService.updateColumn has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiRecordsBuilder.setComponentSchema (cyclomatic 23) api.include.php:7902— OpenApiRecordsBuilder.setComponentSchema has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiRecordsBuilder.setComponentSchema (cyclomatic 23) api.php:7902— OpenApiRecordsBuilder.setComponentSchema has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiRecordsBuilder.setComponentSchema (cyclomatic 23) src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:187— OpenApiRecordsBuilder.setComponentSchema has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiRecordsBuilder.setPath (cyclomatic 21) api.include.php:7833— OpenApiRecordsBuilder.setPath has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiRecordsBuilder.setPath (cyclomatic 21) api.php:7833— OpenApiRecordsBuilder.setPath has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiRecordsBuilder.setPath (cyclomatic 21) src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:117— OpenApiRecordsBuilder.setPath has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
XmlMiddleware.json2xml (cyclomatic 19) api.include.php:6273— XmlMiddleware.json2xml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
XmlMiddleware.json2xml (cyclomatic 19) api.php:6273— XmlMiddleware.json2xml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
XmlMiddleware.json2xml (cyclomatic 19) src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:22— XmlMiddleware.json2xml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiColumnsBuilder.setPaths (cyclomatic 18) api.include.php:6821— OpenApiColumnsBuilder.setPaths has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiColumnsBuilder.setPaths (cyclomatic 18) api.php:6821— OpenApiColumnsBuilder.setPaths has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
OpenApiColumnsBuilder.setPaths (cyclomatic 18) src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:54— OpenApiColumnsBuilder.setPaths has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BasicAuthMiddleware.process (cyclomatic 16) api.include.php:4499— BasicAuthMiddleware.process has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BasicAuthMiddleware.process (cyclomatic 16) api.php:4499— BasicAuthMiddleware.process has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
BasicAuthMiddleware.process (cyclomatic 16) src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:81— BasicAuthMiddleware.process has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CorsMiddleware.process (cyclomatic 16) api.include.php:4605— CorsMiddleware.process has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CorsMiddleware.process (cyclomatic 16) api.php:4605— CorsMiddleware.process has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
CorsMiddleware.process (cyclomatic 16) src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php:40— CorsMiddleware.process has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
DbAuthMiddleware.process (cognitive 115) api.include.php:4727— DbAuthMiddleware.process has cognitive complexity 115 (threshold 15). Drivers by points: if/else 35 (91 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 6 (nesting depth added 67). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DbAuthMiddleware.process (cognitive 115) api.php:4727— DbAuthMiddleware.process has cognitive complexity 115 (threshold 15). Drivers by points: if/else 35 (91 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 6 (nesting depth added 67). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DbAuthMiddleware.process (cognitive 115) src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:33— DbAuthMiddleware.process has cognitive complexity 115 (threshold 15). Drivers by points: if/else 35 (91 pts), loops 3 (9 pts), ternaries 4 (9 pts), boolean chains 6 (nesting depth added 67). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ValidationMiddleware.validateType (cognitive 109) api.include.php:6028— ValidationMiddleware.validateType has cognitive complexity 109 (threshold 15). Drivers by points: if/else 24 (82 pts), boolean chains 13, match/switch 4 (11 pts), ternaries 1 (3 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ValidationMiddleware.validateType (cognitive 109) api.php:6028— ValidationMiddleware.validateType has cognitive complexity 109 (threshold 15). Drivers by points: if/else 24 (82 pts), boolean chains 13, match/switch 4 (11 pts), ternaries 1 (3 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ValidationMiddleware.validateType (cognitive 109) src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:51— ValidationMiddleware.validateType has cognitive complexity 109 (threshold 15). Drivers by points: if/else 24 (82 pts), boolean chains 13, match/switch 4 (11 pts), ternaries 1 (3 pts) (nesting depth added 67). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
XmlMiddleware.json2xml (cognitive 66) api.include.php:6273— XmlMiddleware.json2xml has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 5 (27 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
XmlMiddleware.json2xml (cognitive 66) api.php:6273— XmlMiddleware.json2xml has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 5 (27 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
XmlMiddleware.json2xml (cognitive 66) src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:22— XmlMiddleware.json2xml has cognitive complexity 66 (threshold 15). Drivers by points: if/else 14 (34 pts), ternaries 5 (27 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 43). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
JwtAuthMiddleware.getVerifiedClaims (cognitive 48) api.include.php:5217— JwtAuthMiddleware.getVerifiedClaims has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JwtAuthMiddleware.getVerifiedClaims (cognitive 48) api.php:5217— JwtAuthMiddleware.getVerifiedClaims has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JwtAuthMiddleware.getVerifiedClaims (cognitive 48) src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:14— JwtAuthMiddleware.getVerifiedClaims has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 5, loops 1, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
XmlMiddleware.xml2json (cognitive 48) api.include.php:6330— XmlMiddleware.xml2json has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (13 pts), ternaries 2 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
XmlMiddleware.xml2json (cognitive 48) api.php:6330— XmlMiddleware.xml2json has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (13 pts), ternaries 2 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
XmlMiddleware.xml2json (cognitive 48) src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:82— XmlMiddleware.xml2json has cognitive complexity 48 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (13 pts), ternaries 2 (nesting depth added 31). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SanitationMiddleware.sanitizeType (cognitive 43) api.include.php:5797— SanitationMiddleware.sanitizeType has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SanitationMiddleware.sanitizeType (cognitive 43) api.php:5797— SanitationMiddleware.sanitizeType has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SanitationMiddleware.sanitizeType (cognitive 43) src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:41— SanitationMiddleware.sanitizeType has cognitive complexity 43 (threshold 15). Drivers by points: if/else 11 (33 pts), match/switch 2 (6 pts), boolean chains 4 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiRecordsBuilder.setComponentSchema (cognitive 42) api.include.php:7902— OpenApiRecordsBuilder.setComponentSchema has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 7, loops 3 (6 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiRecordsBuilder.setComponentSchema (cognitive 42) api.php:7902— OpenApiRecordsBuilder.setComponentSchema has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 7, loops 3 (6 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiRecordsBuilder.setComponentSchema (cognitive 42) src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:187— OpenApiRecordsBuilder.setComponentSchema has cognitive complexity 42 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 7, loops 3 (6 pts), ternaries 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiColumnsBuilder.setPaths (cognitive 36) api.include.php:6821— OpenApiColumnsBuilder.setPaths has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (9 pts), ternaries 2 (8 pts), match/switch 2 (6 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiColumnsBuilder.setPaths (cognitive 36) api.php:6821— OpenApiColumnsBuilder.setPaths has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (9 pts), ternaries 2 (8 pts), match/switch 2 (6 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiColumnsBuilder.setPaths (cognitive 36) src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:54— OpenApiColumnsBuilder.setPaths has cognitive complexity 36 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 4 (9 pts), ternaries 2 (8 pts), match/switch 2 (6 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ValidationMiddleware.process (cognitive 35) api.include.php:6157— ValidationMiddleware.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 1 (6 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ValidationMiddleware.process (cognitive 35) api.php:6157— ValidationMiddleware.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 1 (6 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
ValidationMiddleware.process (cognitive 35) src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:188— ValidationMiddleware.process has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (29 pts), loops 1 (6 pts) (nesting depth added 26). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
DefinitionService.updateColumn (cognitive 33) api.include.php:687— DefinitionService.updateColumn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefinitionService.updateColumn (cognitive 33) api.php:687— DefinitionService.updateColumn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
DefinitionService.updateColumn (cognitive 33) src/Tqdev/PhpCrudApi/Column/DefinitionService.php:29— DefinitionService.updateColumn has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GenericReflection.getTableColumns (cognitive 33) api.include.php:3576— GenericReflection.getTableColumns has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GenericReflection.getTableColumns (cognitive 33) api.php:3576— GenericReflection.getTableColumns has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GenericReflection.getTableColumns (cognitive 33) src/Tqdev/PhpCrudApi/Database/GenericReflection.php:139— GenericReflection.getTableColumns has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (26 pts), loops 4 (7 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiRecordsBuilder.setPath (cognitive 32) api.include.php:7833— OpenApiRecordsBuilder.setPath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiRecordsBuilder.setPath (cognitive 32) api.php:7833— OpenApiRecordsBuilder.setPath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiRecordsBuilder.setPath (cognitive 32) src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:117— OpenApiRecordsBuilder.setPath has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (5 pts), boolean chains 2, match/switch 1 (2 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BasicAuthMiddleware.process (cognitive 28) api.include.php:4499— BasicAuthMiddleware.process has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BasicAuthMiddleware.process (cognitive 28) api.php:4499— BasicAuthMiddleware.process has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
BasicAuthMiddleware.process (cognitive 28) src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:81— BasicAuthMiddleware.process has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TempFileCache.clean (cognitive 26) api.include.php:622— TempFileCache.clean has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TempFileCache.clean (cognitive 26) api.php:622— TempFileCache.clean has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TempFileCache.clean (cognitive 26) src/Tqdev/PhpCrudApi/Cache/TempFileCache.php:114— TempFileCache.clean has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 4, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CorsMiddleware.process (cognitive 26) api.include.php:4605— CorsMiddleware.process has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CorsMiddleware.process (cognitive 26) api.php:4605— CorsMiddleware.process has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
CorsMiddleware.process (cognitive 26) src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php:40— CorsMiddleware.process has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (22 pts), error handling 1 (2 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ReflectedTable.fromReflection (cognitive 25) api.include.php:1117— ReflectedTable.fromReflection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ReflectedTable.fromReflection (cognitive 25) api.php:1117— ReflectedTable.fromReflection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ReflectedTable.fromReflection (cognitive 25) src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:45— ReflectedTable.fromReflection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 4 (9 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JwtAuthMiddleware.process (cognitive 25) api.include.php:5322— JwtAuthMiddleware.process has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JwtAuthMiddleware.process (cognitive 25) api.php:5322— JwtAuthMiddleware.process has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JwtAuthMiddleware.process (cognitive 25) src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:135— JwtAuthMiddleware.process has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
IpAddressMiddleware.process (cognitive 23) api.include.php:4992— IpAddressMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
IpAddressMiddleware.process (cognitive 23) api.php:4992— IpAddressMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
IpAddressMiddleware.process (cognitive 23) src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:57— IpAddressMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
JoinLimitsMiddleware.process (cognitive 23) api.include.php:5073— JoinLimitsMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JoinLimitsMiddleware.process (cognitive 23) api.php:5073— JoinLimitsMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JoinLimitsMiddleware.process (cognitive 23) src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:60— JoinLimitsMiddleware.process has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (7 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsonMiddleware.convertJsonRequest (cognitive 22) api.include.php:5131— JsonMiddleware.convertJsonRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsonMiddleware.convertJsonRequest (cognitive 22) api.php:5131— JsonMiddleware.convertJsonRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsonMiddleware.convertJsonRequest (cognitive 22) src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:22— JsonMiddleware.convertJsonRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (8 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
SanitationMiddleware.process (cognitive 22) api.include.php:5878— SanitationMiddleware.process has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SanitationMiddleware.process (cognitive 22) api.php:5878— SanitationMiddleware.process has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
SanitationMiddleware.process (cognitive 22) src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:126— SanitationMiddleware.process has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 1 (6 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
RelationJoiner.addMandatoryColumns (cognitive 22) api.include.php:9129— RelationJoiner.addMandatoryColumns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RelationJoiner.addMandatoryColumns (cognitive 22) api.php:9129— RelationJoiner.addMandatoryColumns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RelationJoiner.addMandatoryColumns (cognitive 22) src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:25— RelationJoiner.addMandatoryColumns has cognitive complexity 22 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ColumnIncluder.select (cognitive 21) api.include.php:8154— ColumnIncluder.select has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ColumnIncluder.select (cognitive 21) api.php:8154— ColumnIncluder.select has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
ColumnIncluder.select (cognitive 21) src/Tqdev/PhpCrudApi/Record/ColumnIncluder.php:14— ColumnIncluder.select has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 5, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MultiTenancyMiddleware.process (cognitive 20) api.include.php:5427— MultiTenancyMiddleware.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MultiTenancyMiddleware.process (cognitive 20) api.php:5427— MultiTenancyMiddleware.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
MultiTenancyMiddleware.process (cognitive 20) src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php:74— MultiTenancyMiddleware.process has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (16 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, flatten the nesting: this score is depth rather than breadth — most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language's equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function.
WpAuthMiddleware.process (cognitive 19) api.include.php:6207— WpAuthMiddleware.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
WpAuthMiddleware.process (cognitive 19) api.php:6207— WpAuthMiddleware.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
WpAuthMiddleware.process (cognitive 19) src/Tqdev/PhpCrudApi/Middleware/WpAuthMiddleware.php:22— WpAuthMiddleware.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiColumnsBuilder.setComponentSchema (cognitive 19) api.include.php:6877— OpenApiColumnsBuilder.setComponentSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiColumnsBuilder.setComponentSchema (cognitive 19) api.php:6877— OpenApiColumnsBuilder.setComponentSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
OpenApiColumnsBuilder.setComponentSchema (cognitive 19) src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:111— OpenApiColumnsBuilder.setComponentSchema has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsonMiddleware.convertJsonResponse (cognitive 18) api.include.php:5160— JsonMiddleware.convertJsonResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsonMiddleware.convertJsonResponse (cognitive 18) api.php:5160— JsonMiddleware.convertJsonResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
JsonMiddleware.convertJsonResponse (cognitive 18) src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:54— JsonMiddleware.convertJsonResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TextSearchMiddleware.process (cognitive 18) api.include.php:5951— TextSearchMiddleware.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TextSearchMiddleware.process (cognitive 18) api.php:5951— TextSearchMiddleware.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
TextSearchMiddleware.process (cognitive 18) src/Tqdev/PhpCrudApi/Middleware/TextSearchMiddleware.php:25— TextSearchMiddleware.process has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (7 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PageLimitsMiddleware.process (cognitive 17) api.include.php:5472— PageLimitsMiddleware.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PageLimitsMiddleware.process (cognitive 17) api.php:5472— PageLimitsMiddleware.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PageLimitsMiddleware.process (cognitive 17) src/Tqdev/PhpCrudApi/Middleware/PageLimitsMiddleware.php:22— PageLimitsMiddleware.process has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RelationJoiner.addJoinsForTables (cognitive 17) api.include.php:9196— RelationJoiner.addJoinsForTables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RelationJoiner.addJoinsForTables (cognitive 17) api.php:9196— RelationJoiner.addJoinsForTables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RelationJoiner.addJoinsForTables (cognitive 17) src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:96— RelationJoiner.addJoinsForTables has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GenericDefinition.getAddTableSQL (cognitive 16) api.include.php:3284— GenericDefinition.getAddTableSQL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GenericDefinition.getAddTableSQL (cognitive 16) api.php:3284— GenericDefinition.getAddTableSQL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
GenericDefinition.getAddTableSQL (cognitive 16) src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:274— GenericDefinition.getAddTableSQL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Condition.fromString (cognitive 16) api.include.php:8233— Condition.fromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Condition.fromString (cognitive 16) api.php:8233— Condition.fromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Condition.fromString (cognitive 16) src/Tqdev/PhpCrudApi/Record/Condition/Condition.php:30— Condition.fromString has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RequestUtils.getFilterTables (cognitive 16) api.include.php:9580— RequestUtils.getFilterTables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RequestUtils.getFilterTables (cognitive 16) api.php:9580— RequestUtils.getFilterTables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
RequestUtils.getFilterTables (cognitive 16) src/Tqdev/PhpCrudApi/RequestUtils.php:85— RequestUtils.getFilterTables has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
MethodTooLong: DbAuthMiddleware.process src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:33— MethodTooLong — process runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: Api.__construct src/Tqdev/PhpCrudApi/Api.php:52— MethodTooLong — __construct runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
MethodTooLong: ValidationMiddleware.validateType src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:51— MethodTooLong — validateType runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01× the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body — the runs of statements that work on the same values and would earn the same name — into its own named unit, and have this one call them in order.
D4 · Code Duplication· Edited copies of one member (3 members, 22+ corresponding lines) · ×3
Edited copies of one member (3 members, 22+ corresponding lines) api.include.php:4140— api.include.php:4140-4161 | api.php:4140-4161 | src/Tqdev/PhpCrudApi/GeoJson/Geometry.php:28-49 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 22+ corresponding lines) api.include.php:4994— api.include.php:4994-5015 | api.php:4994-5015 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:59-80 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 22+ corresponding lines) api.include.php:5880— api.include.php:5880-5901 | api.php:5880-5901 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:128-149 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (2 corresponding lines) · ×3
Edited copy of a member (2 corresponding lines) api.include.php:995— api.include.php:995-996 | api.php:995-996 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) api.include.php:1229— api.include.php:1229-1230 | api.php:1229-1230 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (2 corresponding lines) api.include.php:2139— api.include.php:2139-2140 | api.php:2139-2140 — These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Duplicated block (15 lines × 2) api.include.php:2742— api.include.php:2742-2756 | api.php:2742-2756 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (15 lines × 2) api.include.php:4144— api.include.php:4144-4158 | api.php:4144-4158 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:4144` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (15 lines × 2) api.include.php:5411— api.include.php:5411-5425 | api.php:5411-5425 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13–14 lines × 3) api.include.php:3155— api.include.php:3155-3167 | api.php:3155-3167 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:129-142 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13–14 lines × 3) api.include.php:3188— api.include.php:3188-3200 | api.php:3188-3200 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:166-179 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13–14 lines × 3) api.include.php:3322— api.include.php:3322-3334 | api.php:3322-3334 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:314-327 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 6) api.include.php:738— api.include.php:738-748 | api.include.php:771-781 | api.php:738-748 | api.php:771-781 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:83-93 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:111-121 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `api.include.php:737` calls `fromJson`, `array_merge`, `jsonSerialize` and `api.include.php:770` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 6) api.include.php:7349— api.include.php:7349-7359 | api.include.php:7370-7380 | api.php:7349-7359 | api.php:7370-7380 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:203-213 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:225-235 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:7349` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 6) api.include.php:1360— api.include.php:1360-1370 | api.include.php:1374-1384 | api.php:1360-1370 | api.php:1374-1384 | src/Tqdev/PhpCrudApi/Config/Config.php:50-60 | src/Tqdev/PhpCrudApi/Config/Config.php:65-75 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 6) api.include.php:2982— api.include.php:2982-2990 | api.include.php:3011-3019 | api.php:2982-2990 | api.php:3011-3019 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:343-351 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:374-382 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (9 lines × 6) api.include.php:7835— api.include.php:7835-7843 | api.include.php:7904-7912 | api.php:7835-7843 | api.php:7904-7912 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:119-127 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:189-197 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:7835` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 6) api.include.php:4919— api.include.php:4919-4927 | api.include.php:4982-4990 | api.php:4919-4927 | api.php:4982-4990 | src/Tqdev/PhpCrudApi/Middleware/FirewallMiddleware.php:41-49 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:46-54 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (7 lines × 6) api.include.php:7271— api.include.php:7271-7277 | api.include.php:7894-7900 | api.php:7271-7277 | api.php:7894-7900 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:120-126 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:178-184 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:7271` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 6) api.include.php:9188— api.include.php:9188-9194 | api.include.php:9397-9403 | api.php:9188-9194 | api.php:9397-9403 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:87-93 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:27-33 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 6) api.include.php:7199— api.include.php:7199-7205 | api.include.php:7762-7768 | api.php:7199-7205 | api.php:7762-7768 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:44-50 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:41-47 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (5 lines × 2) api.include.php:1398— api.include.php:1398-1402 | api.php:1398-1402 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 2) api.include.php:9913— api.include.php:9913-9917 | api.php:9913-9917 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 2) api.include.php:10193— api.include.php:10193-10197 | api.php:10193-10197 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
AXI1 · Runtime container hardening· Container process runs as root · ×2
Container process runs as root: database — 'database' (mysql:8.0) runs as uid 0 — no user was specified, or one resolving to root was. Observed on the running container, which is the only place the answer is settled: an image's own USER, a base image's inherited one and a compose override are all invisible to a REDACTED reader. Advisory evidence for CRA Annex I (2)(b).
Container process runs as root: webserver — 'webserver' (.-webserver) runs as uid 0 — no user was specified, or one resolving to root was. Observed on the running container, which is the only place the answer is settled: an image's own USER, a base image's inherited one and a compose override are all invisible to a REDACTED reader. Advisory evidence for CRA Annex I (2)(b).
PharAutoloader.loadClass (cyclomatic 34) api.include.php:25— PharAutoloader.loadClass has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
PharAutoloader.loadClass (cyclomatic 34) api.php:25— PharAutoloader.loadClass has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
PharAutoloader.loadClass (cognitive 44) api.include.php:25— PharAutoloader.loadClass has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 16 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
PharAutoloader.loadClass (cognitive 44) api.php:25— PharAutoloader.loadClass has cognitive complexity 44 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 16 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UploadedFile.moveTo (cognitive 17) api.include.php:12135— UploadedFile.moveTo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
UploadedFile.moveTo (cognitive 17) api.php:12135— UploadedFile.moveTo has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Uri.__construct (cognitive 17) api.include.php:12525— Uri.__construct has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
Uri.__construct (cognitive 17) api.php:12525— Uri.__construct has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 3 (5 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
FileTooLong: ./api.php api.php— FileTooLong — 7540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7040 over it, 15.08× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: ./api.include.php api.include.php— FileTooLong — 7527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 7027 over it, 15.05× the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
D4 · Code Duplication· Edited copy of a member (14 corresponding lines) · ×2
Edited copy of a member (14 corresponding lines) api.include.php:5162— api.include.php:5162-5175 | api.php:5162-5175 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
Edited copy of a member (14 corresponding lines) api.include.php:8723— api.include.php:8723-8736 | api.php:8723-8736 — These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 3+ corresponding lines) · ×2
Edited copies of one member (3 members, 3+ corresponding lines) api.include.php:913— api.include.php:913-915 | api.php:913-915 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedColumn.php:109-111 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 3+ corresponding lines) api.include.php:1392— api.include.php:1392-1394 | api.php:1392-1394 | src/Tqdev/PhpCrudApi/Config/Config.php:89-91 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 2+ corresponding lines) · ×2
Edited copies of one member (3 members, 2+ corresponding lines) api.include.php:1846— api.include.php:1846-1847 | api.php:1846-1847 | src/Tqdev/PhpCrudApi/Controller/JsonResponder.php:24-25 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Edited copies of one member (3 members, 2+ corresponding lines) api.include.php:9513— api.include.php:9513-9514 | api.php:9513-9514 | src/Tqdev/PhpCrudApi/RequestUtils.php:12-13 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 2 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
Duplicated block (40 lines × 3) api.include.php:1120— api.include.php:1120-1159 | api.php:1120-1159 | src/Tqdev/PhpCrudApi/Column/Reflection/ReflectedTable.php:48-87 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (40 lines × 3) api.include.php:6600— api.include.php:6600-6639 | api.php:6600-6639 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiBuilder.php:145-184 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (35 lines × 3) api.include.php:4510— api.include.php:4510-4544 | api.php:4510-4544 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:92-126 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:4510` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (35 lines × 3) api.include.php:5075— api.include.php:5075-5109 | api.php:5075-5109 | src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:62-96 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (29 lines × 3) api.include.php:9131— api.include.php:9131-9159 | api.php:9131-9159 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:27-55 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 3) api.include.php:3546— api.include.php:3546-3574 | api.php:3546-3574 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:108-136 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 2) api.include.php:9994— api.include.php:9994-10022 | api.php:9994-10022 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (29 lines × 2) api.include.php:12707— api.include.php:12707-12735 | api.php:12707-12735 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (27 lines × 3) api.include.php:5333— api.include.php:5333-5359 | api.php:5333-5359 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:146-172 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5333` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (27 lines × 3) api.include.php:5953— api.include.php:5953-5979 | api.php:5953-5979 | src/Tqdev/PhpCrudApi/Middleware/TextSearchMiddleware.php:27-53 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (26 lines × 3) api.include.php:6732— api.include.php:6732-6757 | api.php:6732-6757 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnTypes.php:37-62 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6732` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (26 lines × 3) api.include.php:7299— api.include.php:7299-7324 | api.php:7299-7324 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:151-176 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 2) api.include.php:9879— api.include.php:9879-9902 | api.php:9879-9902 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (24 lines × 2) api.include.php:9849— api.include.php:9849-9872 | api.php:9849-9872 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (21 lines × 3) api.include.php:8777— api.include.php:8777-8797 | api.php:8777-8797 | src/Tqdev/PhpCrudApi/Record/OrderingInfo.php:11-31 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (21 lines × 3) api.include.php:1436— api.include.php:1436-1456 | api.php:1436-1456 | src/Tqdev/PhpCrudApi/Config/Config.php:137-157 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17–19 lines × 3) api.include.php:727— api.include.php:727-743 | api.php:727-743 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:70-88 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:727` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (17–19 lines × 3) api.include.php:4406— api.include.php:4406-4422 | api.php:4406-4422 | src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:84-102 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14–15 lines × 3) api.include.php:3171— api.include.php:3171-3184 | api.php:3171-3184 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:147-161 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (14–15 lines × 3) api.include.php:3219— api.include.php:3219-3232 | api.php:3219-3232 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:201-215 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 6) api.include.php:2038— api.include.php:2038-2051 | api.include.php:2098-2111 | api.php:2038-2051 | api.php:2098-2111 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:133-146 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:195-208 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (14 lines × 6) api.include.php:5002— api.include.php:5002-5015 | api.include.php:5888-5901 | api.php:5002-5015 | api.php:5888-5901 | src/Tqdev/PhpCrudApi/Middleware/IpAddressMiddleware.php:67-80 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:136-149 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5002` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `api.include.php:5886` calls `getProperty` and `api.include.php:5001` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (13 lines × 2) api.include.php:9930— api.include.php:9930-9942 | api.php:9930-9942 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (13 lines × 2) api.include.php:9956— api.include.php:9956-9968 | api.php:9956-9968 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 6) api.include.php:6669— api.include.php:6669-6680 | api.include.php:7564-7575 | api.php:6669-6680 | api.php:7564-7575 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiCacheBuilder.php:32-43 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiOpenApiBuilder.php:34-45 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6669` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 6) api.include.php:7375— api.include.php:7375-7386 | api.include.php:7974-7985 | api.php:7375-7386 | api.php:7974-7985 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:230-241 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:260-271 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:7375` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6–7 lines × 3) api.include.php:7288— api.include.php:7288-7293 | api.php:7288-7293 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:138-144 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (6–7 lines × 3) api.include.php:3264— api.include.php:3264-3269 | api.php:3264-3269 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:250-256 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (5 lines × 15) api.include.php:7400— api.include.php:7400-7404 | api.include.php:7406-7410 | api.include.php:7706-7710 | api.include.php:7717-7721 | api.include.php:7723-7727 | api.php:7400-7404 | api.php:7406-7410 | api.php:7706-7710 | api.php:7717-7721 | api.php:7723-7727 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:257-261 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:264-268 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:164-168 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:177-181 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:184-188 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `api.include.php:7728` calls `getTextSearchParameter`, `set` and `api.include.php:7405` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (5 lines × 15) api.include.php:7394— api.include.php:7394-7398 | api.include.php:7400-7404 | api.include.php:7695-7699 | api.include.php:7706-7710 | api.include.php:7717-7721 | api.php:7394-7398 | api.php:7400-7404 | api.php:7695-7699 | api.php:7706-7710 | api.php:7717-7721 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:250-254 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:257-261 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:151-155 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:164-168 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:177-181 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7 lines × 2) api.include.php:11386— api.include.php:11386-11392 | api.php:11386-11392 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 2) api.include.php:11741— api.include.php:11741-11747 | api.php:11741-11747 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Outbound HTTP without resilience install.php:6— `file_get_contents('https://` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
Outbound HTTP without resilience update.php:6— `file_get_contents('https://` makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service's request, thread or connection until the call gives up on its own — or never, for a client with no default timeout.
AXR1 · Runtime accessibility (rendered)· WCAG 2.4.2 reproducibly failed in a rendered surface · ×1
WCAG 2.4.2 reproducibly failed in a rendered surface — axe-core rule(s) document-title failed on: html. Runtime evidence (advisory — not scored); fix and re-scan to verify it clears.
AXR1 · Runtime accessibility (rendered)· WCAG 3.1.1 reproducibly failed in a rendered surface · ×1
WCAG 3.1.1 reproducibly failed in a rendered surface — axe-core rule(s) html-has-lang failed on: html. Runtime evidence (advisory — not scored); fix and re-scan to verify it clears.
D4 · Code Duplication· Near-duplicate member family (6 members, 15 shared lines) · ×1
Near-duplicate member family (6 members, 15 shared lines) api.include.php:7394— api.include.php:7394-7410 | api.include.php:7689-7735 | api.php:7394-7410 | api.php:7689-7735 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:250-268 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:143-197 — These 6 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 6 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times.
D4 · Code Duplication· Near-duplicate member family (3 members, 23 shared lines) · ×1
Near-duplicate member family (3 members, 23 shared lines) api.include.php:8235— api.include.php:8235-8266 | api.php:8235-8266 | src/Tqdev/PhpCrudApi/Record/Condition/Condition.php:32-65 — These 3 members are variants of one another: a block of 23 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication· Near-duplicate member family (3 members, 15 shared lines) · ×1
Near-duplicate member family (3 members, 15 shared lines) api.include.php:9483— api.include.php:9483-9500 | api.php:9483-9500 | src/Tqdev/PhpCrudApi/RequestFactory.php:23-41 — These 3 members are variants of one another: a block of 15 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times.
D4 · Code Duplication· Edited copy of a member (25 corresponding lines) · ×1
Edited copy of a member (25 corresponding lines) api.include.php:8156— api.include.php:8156-8180 | api.php:8156-8180 — These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (9 corresponding lines) · ×1
Edited copy of a member (9 corresponding lines) api.include.php:5299— api.include.php:5299-5307 | api.php:5299-5307 — These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Members sharing a duplicated core (15 members, 50+ identical tokens) · ×1
Members sharing a duplicated core (15 members, 50+ identical tokens) api.include.php:1949— api.include.php:1949-1971 | api.include.php:1995-2018 | api.include.php:2022-2053 | api.include.php:2057-2078 | api.include.php:2082-2113 | api.php:1949-1971 | api.php:1995-2018 | api.php:2022-2053 | api.php:2057-2078 | api.php:2082-2113 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:41-63 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:89-112 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:117-148 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:153-174 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:179-210 — These 15 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below — it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 15 times. The repair is at the members' grain — factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times.
D4 · Code Duplication· Edited copies of one member (3 members, 77+ corresponding lines) · ×1
Edited copies of one member (3 members, 77+ corresponding lines) api.include.php:5219— api.include.php:5219-5295 | api.php:5219-5295 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:16-101 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 77 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 54+ corresponding lines) · ×1
Edited copies of one member (3 members, 54+ corresponding lines) api.include.php:6275— api.include.php:6275-6328 | api.php:6275-6328 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:24-79 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 54 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (43 corresponding lines) · ×1
Edited copy of a member (43 corresponding lines) api.include.php:6209— api.include.php:6209-6251 | api.php:6209-6251 — These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 40+ corresponding lines) · ×1
Edited copies of one member (3 members, 40+ corresponding lines) api.include.php:9198— api.include.php:9198-9237 | api.php:9198-9237 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:98-142 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (31 corresponding lines) · ×1
Edited copy of a member (31 corresponding lines) api.include.php:9430— api.include.php:9430-9460 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:62-96 — These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (24 corresponding lines) · ×1
Edited copy of a member (24 corresponding lines) api.include.php:5179— api.include.php:5179-5202 | api.php:5179-5202 — These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 27+ corresponding lines) · ×1
Edited copies of one member (3 members, 27+ corresponding lines) api.include.php:6159— api.include.php:6159-6185 | api.php:6159-6185 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:190-216 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 12+ corresponding lines) · ×1
Edited copies of one member (3 members, 12+ corresponding lines) api.include.php:1620— api.include.php:1620-1631 | api.php:1620-1631 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:21-32 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 21+ corresponding lines) · ×1
Edited copies of one member (3 members, 21+ corresponding lines) api.include.php:7370— api.include.php:7370-7390 | api.php:7370-7390 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:225-245 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 18+ corresponding lines) · ×1
Edited copies of one member (3 members, 18+ corresponding lines) api.include.php:7349— api.include.php:7349-7366 | api.php:7349-7366 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiGeoJsonBuilder.php:203-220 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (15 corresponding lines) · ×1
Edited copy of a member (15 corresponding lines) api.include.php:8987— api.include.php:8987-9001 | src/Tqdev/PhpCrudApi/Record/RecordService.php:32-46 — These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 8+ corresponding lines) · ×1
Edited copies of one member (3 members, 8+ corresponding lines) api.include.php:1929— api.include.php:1929-1936 | api.php:1929-1936 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:19-26 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copies of one member (3 members, 9+ corresponding lines) · ×1
Edited copies of one member (3 members, 9+ corresponding lines) api.include.php:2994— api.include.php:2994-3002 | api.php:2994-3002 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:356-364 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart.
D4 · Code Duplication· Edited copy of a member (6 corresponding lines) · ×1
Edited copy of a member (6 corresponding lines) api.include.php:9980— api.include.php:9980-9985 | api.php:9980-9985 — These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copy of a member (1 corresponding lines) · ×1
Edited copy of a member (1 corresponding lines) api.include.php:3037— api.include.php:3037-3037 | api.php:3037-3037 — These two members are one piece of code written twice and then edited apart: 1 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below — the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain — factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart.
D4 · Code Duplication· Edited copies of one member (4 members, 4+ corresponding lines) · ×1
Edited copies of one member (4 members, 4+ corresponding lines) api.include.php:4297— api.include.php:4297-4300 | api.php:4297-4300 | src/Tqdev/PhpCrudApi/Middleware/ApiKeyDbAuthMiddleware.php:27-30 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:27-30 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members' grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart.
Duplicated block (123 lines × 3) api.include.php:4759— api.include.php:4759-4881 | api.php:4759-4881 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:65-187 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:4759` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (111 lines × 3) api.include.php:181— api.include.php:181-291 | api.php:181-291 | src/Tqdev/PhpCrudApi/Api.php:66-176 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (100–105 lines × 3) api.include.php:6036— api.include.php:6036-6135 | api.php:6036-6135 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:62-166 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6036` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (79 lines × 2) api.include.php:11845— api.include.php:11845-11923 | api.php:11845-11923 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:11845` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (78 lines × 2) api.include.php:27— api.include.php:27-104 | api.php:27-104 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (2–77 lines × 6) api.include.php:5802— api.include.php:5802-5876 | api.include.php:6032-6033 | api.php:5802-5876 | api.php:6032-6033 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:47-123 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:55-59 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5802` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `api.include.php:5802` calls `is_null` and `api.include.php:6032` does not — after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (63 lines × 3) api.include.php:7837— api.include.php:7837-7899 | api.php:7837-7899 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:121-183 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:7837` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (62 lines × 3) api.include.php:2446— api.include.php:2446-2507 | api.php:2446-2507 | src/Tqdev/PhpCrudApi/Database/ConditionsBuilder.php:132-193 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (55–56 lines × 3) api.include.php:5220— api.include.php:5220-5274 | api.php:5220-5274 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:23-78 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5220` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (55 lines × 3) api.include.php:7906— api.include.php:7906-7960 | api.php:7906-7960 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordsBuilder.php:191-245 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (53 lines × 3) api.include.php:6823— api.include.php:6823-6875 | api.php:6823-6875 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:56-108 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (52 lines × 3) api.include.php:4607— api.include.php:4607-4658 | api.php:4607-4658 | src/Tqdev/PhpCrudApi/Middleware/CorsMiddleware.php:42-93 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (45 lines × 3) api.include.php:3578— api.include.php:3578-3622 | api.php:3578-3622 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:141-185 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (42 lines × 3) api.include.php:6332— api.include.php:6332-6373 | api.php:6332-6373 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:84-125 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (41 lines × 3) api.include.php:8666— api.include.php:8666-8706 | api.php:8666-8706 | src/Tqdev/PhpCrudApi/Record/FilterInfo.php:30-70 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (30–33 lines × 3) api.include.php:9208— api.include.php:9208-9237 | api.php:9208-9237 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:110-142 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:9208` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (31–34 lines × 3) api.include.php:695— api.include.php:695-725 | api.php:695-725 | src/Tqdev/PhpCrudApi/Column/DefinitionService.php:32-65 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Tqdev/PhpCrudApi/Column/DefinitionService.php:32` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (30–31 lines × 3) api.include.php:6222— api.include.php:6222-6251 | api.php:6222-6251 | src/Tqdev/PhpCrudApi/Middleware/WpAuthMiddleware.php:39-69 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6222` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (28–31 lines × 3) api.include.php:9430— api.include.php:9430-9457 | api.php:9430-9457 | src/Tqdev/PhpCrudApi/Record/RelationResolver.php:62-92 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:9430` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (30 lines × 3) api.include.php:6879— api.include.php:6879-6908 | api.php:6879-6908 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:113-142 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6879` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (28 lines × 3) api.include.php:2864— api.include.php:2864-2891 | api.php:2864-2891 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:219-246 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22–28 lines × 3) api.include.php:9336— api.include.php:9336-9357 | api.php:9336-9357 | src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:252-279 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (28 lines × 2) api.include.php:12083— api.include.php:12083-12110 | api.php:12083-12110 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (25–26 lines × 3) api.include.php:3236— api.include.php:3236-3260 | api.php:3236-3260 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:220-245 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (25 lines × 2) api.include.php:12137— api.include.php:12137-12161 | api.php:12137-12161 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (22–23 lines × 3) api.include.php:7664— api.include.php:7664-7685 | api.php:7664-7685 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:116-138 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (33–34 lines × 3) api.include.php:3286— api.include.php:3286-3318 | api.php:3286-3318 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:276-309 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (22 lines × 2) api.include.php:10406— api.include.php:10406-10427 | api.php:10406-10427 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (20–21 lines × 3) api.include.php:9582— api.include.php:9582-9602 | api.php:9582-9602 | src/Tqdev/PhpCrudApi/RequestUtils.php:87-106 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (19–20 lines × 3) api.include.php:6307— api.include.php:6307-6325 | api.php:6307-6325 | src/Tqdev/PhpCrudApi/Middleware/XmlMiddleware.php:57-76 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:6307` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (19 lines × 2) api.include.php:2720— api.include.php:2720-2738 | api.php:2720-2738 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (18 lines × 9) api.include.php:4501— api.include.php:4501-4518 | api.include.php:4729-4746 | api.include.php:5324-5341 | api.php:4501-4518 | api.php:4729-4746 | api.php:5324-5341 | src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:83-100 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:35-52 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:137-154 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17–18 lines × 3) api.include.php:5186— api.include.php:5186-5202 | api.php:5186-5202 | src/Tqdev/PhpCrudApi/Middleware/JsonMiddleware.php:84-101 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5186` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (18 lines × 2) api.include.php:9825— api.include.php:9825-9842 | api.php:9825-9842 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:9825` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (16–17 lines × 3) api.include.php:3136— api.include.php:3136-3151 | api.php:3136-3151 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:108-124 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15–17 lines × 3) api.include.php:5744— api.include.php:5744-5758 | api.php:5744-5758 | src/Tqdev/PhpCrudApi/Middleware/Router/SimpleRouter.php:126-142 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (17 lines × 2) api.include.php:11668— api.include.php:11668-11684 | api.php:11668-11684 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:11668` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15–16 lines × 3) api.include.php:9486— api.include.php:9486-9500 | api.php:9486-9500 | src/Tqdev/PhpCrudApi/RequestFactory.php:26-41 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The `return` at the foot of the matched lines is the enclosing body's own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that `return` occupied — no decision has to be handed back and re-acted on.
Duplicated block (14–15 lines × 6) api.include.php:9633— api.include.php:9633-9646 | api.include.php:9732-9745 | api.php:9633-9646 | api.php:9732-9745 | src/Tqdev/PhpCrudApi/RequestUtils.php:139-153 | src/Tqdev/PhpCrudApi/ResponseUtils.php:35-49 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (4–15 lines × 3) api.include.php:8987— api.include.php:8987-9001 | api.php:8987-9001 | src/Tqdev/PhpCrudApi/Record/RecordService.php:38-41 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Tqdev/PhpCrudApi/Record/RecordService.php:38` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `src/Tqdev/PhpCrudApi/Record/RecordService.php:41` calls `getTable`, `getColumn`, `getName` and `api.include.php:9001` does not — after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (47–55 lines × 3) api.include.php:7689— api.include.php:7689-7735 | api.php:7689-7735 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiRecordParameters.php:143-197 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (12–13 lines × 3) api.include.php:3204— api.include.php:3204-3215 | api.php:3204-3215 | src/Tqdev/PhpCrudApi/Database/GenericDefinition.php:184-196 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 9) api.include.php:1653— api.include.php:1653-1662 | api.include.php:1680-1689 | api.include.php:1740-1749 | api.php:1653-1662 | api.php:1680-1689 | api.php:1740-1749 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:57-66 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:86-95 | src/Tqdev/PhpCrudApi/Controller/ColumnController.php:150-159 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (10 lines × 6) api.include.php:5880— api.include.php:5880-5889 | api.include.php:6159-6168 | api.php:5880-5889 | api.php:6159-6168 | src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:128-137 | src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php:190-199 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `api.include.php:5880` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9–10 lines × 3) api.include.php:6949— api.include.php:6949-6957 | api.php:6949-6957 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiColumnsBuilder.php:186-195 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (9 lines × 12) api.include.php:1996— api.include.php:1996-2004 | api.include.php:2023-2031 | api.include.php:2058-2066 | api.include.php:2083-2091 | api.php:1996-2004 | api.php:2023-2031 | api.php:2058-2066 | api.php:2083-2091 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:90-98 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:118-126 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:154-162 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:180-188 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (8 lines × 9) api.include.php:6676— api.include.php:6676-6683 | api.include.php:7571-7578 | api.include.php:8068-8075 | api.php:6676-6683 | api.php:7571-7578 | api.php:8068-8075 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiCacheBuilder.php:39-46 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiOpenApiBuilder.php:41-48 | src/Tqdev/PhpCrudApi/OpenApi/OpenApiStatusBuilder.php:43-50 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (7–8 lines × 3) api.include.php:5299— api.include.php:5299-5305 | api.php:5299-5305 | src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:106-113 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php:106` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 15) api.include.php:1949— api.include.php:1949-1955 | api.include.php:1995-2001 | api.include.php:2022-2028 | api.include.php:2057-2063 | api.include.php:2082-2088 | api.php:1949-1955 | api.php:1995-2001 | api.php:2022-2028 | api.php:2057-2063 | api.php:2082-2088 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:41-47 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:89-95 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:117-123 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:153-159 | src/Tqdev/PhpCrudApi/Controller/RecordController.php:179-185 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place.
Duplicated block (4–5 lines × 3) api.include.php:4750— api.include.php:4750-4754 | api.php:4750-4754 | src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:53-56 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:53` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `api.include.php:4748` calls `getMethod`, `in_array`, `getParsedBody` and `src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php:53` does not — after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live.
Duplicated block (11 lines × 15) api.include.php:2706— api.include.php:2706-2716 | api.include.php:3486-3496 | api.include.php:3500-3510 | api.include.php:3514-3524 | api.include.php:3528-3538 | api.php:2706-2716 | api.php:3486-3496 | api.php:3500-3510 | api.php:3514-3524 | api.php:3528-3538 | src/Tqdev/PhpCrudApi/Database/GenericDB.php:32-42 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:43-53 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:58-68 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:73-83 | src/Tqdev/PhpCrudApi/Database/GenericReflection.php:88-98 — before extracting anything, compare `api.include.php` and `api.php` as WHOLE FILES: this scan already matched 405 separate duplicated blocks between them, totalling at least 6083 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together — extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `src/Tqdev/PhpCrudApi/Database/GenericReflection.php:43` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Off the main sequence: (root) — (root): abstractness 0.17, instability 0.00, distance 0.83 — zone of pain — concrete and depended on by 2 project(s), so it's rigid to change.
No structured logging — No logging call was found in the 112 PHP production file(s) this check read across 1 module(s). Each was searched for its ecosystem's logging libraries (PHP: PSR-3 loggers (Monolog), Laravel's Log facade, error_log()) and for a call on a receiver named `log`/`logger` (or ending in `Logger`/`_logger`) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read — this is 'no logging found by this walk', not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose.
Duplicated predicate src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php:95— `!ini_get('session.cookie_secure') && isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off'` appears character-identically in 3 files — src/Tqdev/PhpCrudApi/Middleware/BasicAuthMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/DbAuthMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/JwtAuthMiddleware.php. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php:94— `$path == 'records' || $path == 'geojson'` appears character-identically in 2 files — src/Tqdev/PhpCrudApi/Middleware/AuthorizationMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/MultiTenancyMiddleware.php. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php:46— `(in_array('all', $tables) || in_array($table->getName(), $tables)) && (in_array('all', $types) || in_array($column->getType(), $types))` appears character-identically in 2 files — src/Tqdev/PhpCrudApi/Middleware/SanitationMiddleware.php, src/Tqdev/PhpCrudApi/Middleware/ValidationMiddleware.php. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate src/Tqdev/PhpCrudApi/Record/RelationJoiner.php:89— `count($t3->getFksTo($t1->getName())) > 0 && count($t3->getFksTo($t2->getName())) > 0` appears character-identically in 2 files — src/Tqdev/PhpCrudApi/Record/RelationJoiner.php, src/Tqdev/PhpCrudApi/Record/RelationResolver.php. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Duplicated predicate src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php:25— `substr($key, 0, 6) != 'filter' || !is_array($values)` appears character-identically in 2 files — src/Tqdev/PhpCrudApi/Middleware/JoinLimitsMiddleware.php, src/Tqdev/PhpCrudApi/RequestUtils.php. It is one line, so the duplication detector's token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home.
Fat interface: UriInterface (16 methods) api.include.php:12204— `UriInterface` declares 16 methods: `getScheme`, `getAuthority`, `getUserInfo`, `getHost`, `getPort`, `getPath`, `getQuery`, `getFragment`, `withScheme`, `withUserInfo`, `withHost`, `withPort`, `withPath`, `withQuery`, `withFragment`, `__toString`. Counted over its public instance methods, once per name; constants and static methods are not counted. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
Fat interface: UriInterface (16 methods) api.php:12204— `UriInterface` declares 16 methods: `getScheme`, `getAuthority`, `getUserInfo`, `getHost`, `getPort`, `getPath`, `getQuery`, `getFragment`, `withScheme`, `withUserInfo`, `withHost`, `withPort`, `withPath`, `withQuery`, `withFragment`, `__toString`. Counted over its public instance methods, once per name; constants and static methods are not counted. A wide interface forces every implementer and caller to depend on methods they don't use (the Interface-Segregation 'I' in SOLID). Split it into focused role-interfaces.
D28 · Secrets (history)· Rotate the exposed credentials · ×1
REDACTED
P4 · Deployment & Rollback· No rollback/health safety · ×1
No rollback/health safety — Deployment is orchestrated by compose, but no service declares a `healthcheck:` and nothing pins a previous image to fall back to — the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse.
No changelog — No CHANGELOG/HISTORY/RELEASES file — what shipped when isn't easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)
No security response headers detected REDACTED:1— None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, …) is configured — defense in depth, even when a reverse proxy could set them. This is reported because `REDACTED` builds the web-server image that serves this application, so the configuration that would carry these headers is in this repository and was read in full. (−2.0 on this card.)
X5 · Nullable reference types· PHP static analysis does not check null everywhere · ×1
PHP static analysis does not check null everywhere — 0/1 of this repository's PHPStan/Psalm configuration(s) run at a level that checks null — PHPStan level 8 or above (`max` included), or Psalm `errorLevel` 3 or below (Psalm's default, with none stated, is 1). A PHPStan level written neither in the file nor in an include inside the repository is 0, PHPStan's own default. Below those levels the checker removes `null` from a union before any rule looks, so `$order->customer()->name()` on a `?Customer` passes, and the first null reaching it is an `Error: Call to a member function name() on null` in production.
Appendix B — Reproduction & audit trail
Every external tool invocation behind a deep-scan dimension — the tool, its captured version, the exact command, how many findings it yielded, and a link to the retained raw output. To reproduce any finding: check out the same commit and run the command shown (repo-relative — never an absolute scratch path). The complete raw scanner output is retained verbatim under artifacts/raw/ (indexed in artifacts/raw/index.json); per-invocation exit codes and wall-clock durations are in sidecar.json — kept out of this table so the rendered report stays byte-identical across runs of the same commit.
semgrep: not applicable — No personal data was found crossing a boundary the PII/GDPR ruleset checks — nothing written to a log or console sink, placed in a URL or query string, or persisted to browser storage. That is a clean result for the LEAK surface only: this ruleset detects personal data escaping, it does not inventory the personal data a repository holds, so it is not evidence that this repository has no personal-data surface. The personal-data map (Appendix C) and the C1-C5 compliance cards are what speak to that.
provenance: not applicable — No CI/build pipeline found (.github/.forgejo/.gitea workflows, .circleci, .buildkite, .woodpecker, .teamcity, .gitlab-ci.yml, .travis.yml, bitbucket-pipelines.yml, .drone.yml, .cirrus.yml, .woodpecker.yml, appveyor.yml, azure-pipelines*.yml, .pipelines/, .vsts-ci/, .azuredevops/, Jenkinsfile); there is no build to attest provenance for.
disclosure: not applicable — No vulnerability-disclosure policy file found (SECURITY.md/.markdown/.rst/.txt at root or under .github/.forgejo/.gitea/docs, .well-known/security.txt). A coordinated-disclosure policy may live off-repo, so this is not evidenced rather than failed.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
runtime-hardening: not applicable — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
Run 01a1ea53-9e77-758b-a425-ff53c74e1ba2 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.
Issues: 16 · Warnings: 659 · Recommendations: 16 — Appendix A · all findings · full markdown report.
Generated by the Canine Code Analyzer: deterministic code-health analysis. 17-11-2026 @ 16:25 UTC.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.