Public report of googleads/google-ads-php, 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 report Measured 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, 11:20 UTC · Survey ID cd_535384f04be244d28e64b1d86a645c38

googleads/google-ads-php

Measured 17 November 2026, 11:15 UTC, at code version 4dec462

First survey, so nothing to compare with yet Supply-chain provenance & signing: not measured

Supply-chain provenance & signing is not measured: Supply-chain provenance is not scored (this pipeline releases no artifact), but its build steps or GitHub Actions workflows have integrity defects, or nothing watches its dependency set for published advisories.

CAI score 62.4out of 100 Adequate
CriticalWeakAdequateStrongExemplary

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 very large codebase: 1,866,386 lines of product code in 3 projects, tests not counted · Estimated rebuild effort: about 15.3 person-years · Weakest lens: Production Readiness, 54.6

Findings by how serious they are

3 critical 234 serious 304 minor

18 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

Assert small markCanine Code Analyzer
Producer
Canine Development
Analyzer
Canine Code Analyzer engine 1.0.0
Measured
17 November 2026, 11:15 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 ▸

40of 40 dimensions measured by tools.
531of 541 findings point to an exact file and line, so you can open each one in the code. The other 10 concern the repository as a whole, such as missing documentation.
40dimensions across 5 lenses, read from 1,866,386 lines of product code in 3 projects.
Chapters

Executive summary

googleads/google-ads-php falls short of our standard for production because we found no automated security scanning of the code, its secrets or its dependencies. It scores 62.4 out of 100 and is rated Adequate, and all three of its critical findings are security problems in its servers and containers.

Production Readiness, at 54.6, is the weakest lens and counts most in the score. The best first step is recording design decisions, worth about 5.8 points. Adding a release approval would lift Production Readiness itself, worth about 2.9 points. Raising Production Readiness to 70 would lift the score to about 66.7.

Three settings leave the servers or containers unsafe. Correcting the unsafe settings would close this risk.

The product code is 1,866,386 lines, about €2,200,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 for The 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.
Production Readiness 54.6 · counts for 47%Maturity 55.9 · counts for 26%Code Health 70.2 · counts for 14%Architecture 96.9 · counts for 8%Security and Compliance 97.2 · counts for 4%

If Production Readiness rose from 54.6 to 70, the lowest score rated Strong, the score would rise from 62.4 to about 66.7.

Code composition: what the lines of code are
Product code 94%Tests 6%
Rebuild cost: about €2,200,000 · Estimate
Cost to rebuild€740,000 to €3,700,000, for 12,314 to 39,067 hours of work, about 15.3 person-years for 9 to 29 engineers
Difficulty of the problemStandard, 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.9 at a score of 62. 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.
SizeVery large: 1,866,386 lines of product code
What it is notNot 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
Record your significant design decisions.
Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
Raises the score by about 5.8 points · Medium effort · Architecture documentation
2
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.
Raises the score by about 3.6 points · Medium effort · Nullable reference types
3
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
Raises the score by about 2.9 points · Medium effort · Deployment & Rollback

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 €2,200,000 to build again, about 15.3 person-years of work. Its weakest lens is Production Readiness, at 54.6 (Adequate). 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
Record your significant design decisions. Of all the actions in this report, it raises the score most for the work it takes: about 5.8 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

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.

arch metadata metadata scripts scripts src/Google Google src/Google->metadata

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.

2555 modules, with 49 dependencies between them. Every module uses only modules listed above it, so there are no loops.

The table shows the 40 modules with the most connections; 2515 more are left out to keep it readable.

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.
uses →1 GPBMetadata.Google.Ads.GoogleAds.V20.Common2 GPBMetadata.Google.Ads.GoogleAds.V20.Enums3 GPBMetadata.Google.Ads.GoogleAds.V20.Errors4 GPBMetadata.Google.Ads.GoogleAds.V20.Resources5 GPBMetadata.Google.Ads.GoogleAds.V20.Services6 GPBMetadata.Google.Ads.GoogleAds.V21.Common7 GPBMetadata.Google.Ads.GoogleAds.V21.Enums8 GPBMetadata.Google.Ads.GoogleAds.V21.Errors9 Google.Ads.GoogleAds.Util10 Google.Ads.GoogleAds.V23.Common11 Google.Ads.GoogleAds.V23.Errors12 Google.Ads.GoogleAds.V23.Resources13 Google.Ads.GoogleAds.V24.Common14 Google.Ads.GoogleAds.V24.Errors15 Google.Ads.GoogleAds.V24.Resources16 Google.Ads.GoogleAds.V25.Common17 Google.Ads.GoogleAds.V25.Errors18 Google.Ads.GoogleAds.V25.Resources19 Google.Ads.GoogleAds.V26.Common20 Google.Ads.GoogleAds.V26.Errors21 Google.Ads.GoogleAds.V26.Resources22 Google.Ads.GoogleAds.Lib23 Google.Ads.GoogleAds.Util.V2324 Google.Ads.GoogleAds.Util.V2425 Google.Ads.GoogleAds.Util.V2526 Google.Ads.GoogleAds.Util.V2627 Google.Ads.GoogleAds.V23.Services28 Google.Ads.GoogleAds.V24.Services29 Google.Ads.GoogleAds.V25.Services30 Google.Ads.GoogleAds.V26.Services31 Google.Ads.GoogleAds.Lib.V2032 Google.Ads.GoogleAds.Lib.V2133 Google.Ads.GoogleAds.V23.Services.Client34 Google.Ads.GoogleAds.V24.Services.Client35 Google.Ads.GoogleAds.V25.Services.Client36 Google.Ads.GoogleAds.V26.Services.Client37 Google.Ads.GoogleAds.Lib.V2338 Google.Ads.GoogleAds.Lib.V2439 Google.Ads.GoogleAds.Lib.V2540 Google.Ads.GoogleAds.Lib.V26
1 GPBMetadata.Google.Ads.GoogleAds.V20.Common
2 GPBMetadata.Google.Ads.GoogleAds.V20.Enums
3 GPBMetadata.Google.Ads.GoogleAds.V20.Errors
4 GPBMetadata.Google.Ads.GoogleAds.V20.Resources
5 GPBMetadata.Google.Ads.GoogleAds.V20.Services
6 GPBMetadata.Google.Ads.GoogleAds.V21.Common
7 GPBMetadata.Google.Ads.GoogleAds.V21.Enums
8 GPBMetadata.Google.Ads.GoogleAds.V21.Errors
9 Google.Ads.GoogleAds.Util
10 Google.Ads.GoogleAds.V23.Common
11 Google.Ads.GoogleAds.V23.Errors
12 Google.Ads.GoogleAds.V23.Resources
13 Google.Ads.GoogleAds.V24.Common
14 Google.Ads.GoogleAds.V24.Errors
15 Google.Ads.GoogleAds.V24.Resources
16 Google.Ads.GoogleAds.V25.Common
17 Google.Ads.GoogleAds.V25.Errors
18 Google.Ads.GoogleAds.V25.Resources
19 Google.Ads.GoogleAds.V26.Common
20 Google.Ads.GoogleAds.V26.Errors
21 Google.Ads.GoogleAds.V26.Resources
22 Google.Ads.GoogleAds.Lib3
23 Google.Ads.GoogleAds.Util.V231
24 Google.Ads.GoogleAds.Util.V241
25 Google.Ads.GoogleAds.Util.V251
26 Google.Ads.GoogleAds.Util.V261
27 Google.Ads.GoogleAds.V23.Services38
28 Google.Ads.GoogleAds.V24.Services38
29 Google.Ads.GoogleAds.V25.Services38
30 Google.Ads.GoogleAds.V26.Services38
31 Google.Ads.GoogleAds.Lib.V2028
32 Google.Ads.GoogleAds.Lib.V2128
33 Google.Ads.GoogleAds.V23.Services.Client1323
34 Google.Ads.GoogleAds.V24.Services.Client1325
35 Google.Ads.GoogleAds.V25.Services.Client1322
36 Google.Ads.GoogleAds.V26.Services.Client1326
37 Google.Ads.GoogleAds.Lib.V2323581111
38 Google.Ads.GoogleAds.Lib.V2423581112
39 Google.Ads.GoogleAds.Lib.V2523582112
40 Google.Ads.GoogleAds.Lib.V2623582114
Uses a module listed above itPart of a loopThe module itself
1 GPBMetadata.Google.Ads.GoogleAds.V20.Common2 GPBMetadata.Google.Ads.GoogleAds.V20.Enums3 GPBMetadata.Google.Ads.GoogleAds.V20.Errors4 GPBMetadata.Google.Ads.GoogleAds.V20.Resources5 GPBMetadata.Google.Ads.GoogleAds.V20.Services6 GPBMetadata.Google.Ads.GoogleAds.V21.Common7 GPBMetadata.Google.Ads.GoogleAds.V21.Enums8 GPBMetadata.Google.Ads.GoogleAds.V21.Errors9 Google.Ads.GoogleAds.Util10 Google.Ads.GoogleAds.V23.Common11 Google.Ads.GoogleAds.V23.Errors12 Google.Ads.GoogleAds.V23.Resources13 Google.Ads.GoogleAds.V24.Common14 Google.Ads.GoogleAds.V24.Errors15 Google.Ads.GoogleAds.V24.Resources16 Google.Ads.GoogleAds.V25.Common17 Google.Ads.GoogleAds.V25.Errors18 Google.Ads.GoogleAds.V25.Resources19 Google.Ads.GoogleAds.V26.Common20 Google.Ads.GoogleAds.V26.Errors21 Google.Ads.GoogleAds.V26.Resources22 Google.Ads.GoogleAds.Lib23 Google.Ads.GoogleAds.Util.V2324 Google.Ads.GoogleAds.Util.V2425 Google.Ads.GoogleAds.Util.V2526 Google.Ads.GoogleAds.Util.V2627 Google.Ads.GoogleAds.V23.Services28 Google.Ads.GoogleAds.V24.Services29 Google.Ads.GoogleAds.V25.Services30 Google.Ads.GoogleAds.V26.Services31 Google.Ads.GoogleAds.Lib.V2032 Google.Ads.GoogleAds.Lib.V2133 Google.Ads.GoogleAds.V23.Services.Client34 Google.Ads.GoogleAds.V24.Services.Client35 Google.Ads.GoogleAds.V25.Services.Client36 Google.Ads.GoogleAds.V26.Services.Client37 Google.Ads.GoogleAds.Lib.V2338 Google.Ads.GoogleAds.Lib.V2439 Google.Ads.GoogleAds.Lib.V2540 Google.Ads.GoogleAds.Lib.V26GPBMetadata.Google.Ads.GoogleAds.V20.Common1GPBMetadata.Google.Ads.GoogleAds.V20.Enums2GPBMetadata.Google.Ads.GoogleAds.V20.Errors3GPBMetadata.Google.Ads.GoogleAds.V20.Resources4GPBMetadata.Google.Ads.GoogleAds.V20.Services5GPBMetadata.Google.Ads.GoogleAds.V21.Common6GPBMetadata.Google.Ads.GoogleAds.V21.Enums7GPBMetadata.Google.Ads.GoogleAds.V21.Errors8Google.Ads.GoogleAds.Util9Google.Ads.GoogleAds.V23.Common10Google.Ads.GoogleAds.V23.Errors11Google.Ads.GoogleAds.V23.Resources12Google.Ads.GoogleAds.V24.Common13Google.Ads.GoogleAds.V24.Errors14Google.Ads.GoogleAds.V24.Resources15Google.Ads.GoogleAds.V25.Common16Google.Ads.GoogleAds.V25.Errors17Google.Ads.GoogleAds.V25.Resources18Google.Ads.GoogleAds.V26.Common19Google.Ads.GoogleAds.V26.Errors20Google.Ads.GoogleAds.V26.Resources21Google.Ads.GoogleAds.Lib22Google.Ads.GoogleAds.Util.V2323Google.Ads.GoogleAds.Util.V2424Google.Ads.GoogleAds.Util.V2525Google.Ads.GoogleAds.Util.V2626Google.Ads.GoogleAds.V23.Services27Google.Ads.GoogleAds.V24.Services28Google.Ads.GoogleAds.V25.Services29Google.Ads.GoogleAds.V26.Services30Google.Ads.GoogleAds.Lib.V2031Google.Ads.GoogleAds.Lib.V2132Google.Ads.GoogleAds.V23.Services.Client33Google.Ads.GoogleAds.V24.Services.Client34Google.Ads.GoogleAds.V25.Services.Client35Google.Ads.GoogleAds.V26.Services.Client36Google.Ads.GoogleAds.Lib.V2337Google.Ads.GoogleAds.Lib.V2438Google.Ads.GoogleAds.Lib.V2539Google.Ads.GoogleAds.Lib.V264031111383838382828132313251322132623581111235811122358211223582114+2515 more modules (most-connected shown)

At a glance — Code Health · 70.2 · Adequate · gated by X5 ·

At a glance — Architecture · 96.9 · Exemplary ·

At a glance — Maturity · 55.9 · Adequate · gated by M2 ·

At a glance — Readiness · 54.6 · Adequate · gated by P3 ·

At a glance — Security · 97.2 · Exemplary ·

Security & Compliance — OWASP Top-10 mapping

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 categoryFindingsSeverity
A02:2025 — Security Misconfiguration4High / Critical

Roadmap

Top priorities: Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them; Resolve the 277 Orphaned file finding(s) in Knowledge Freshness — start with GoogleAdsClientBuilder.php (4), InfoRedactor.php (4), GoogleAdsCallLogger.php (4); 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.

Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.

Do thisHelpsEffortDimension
Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.+5.8 ptsMediumArchitecture documentation
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.+3.6 ptsMediumNullable reference types
Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.+2.9 ptsMediumDeployment & Rollback
Resolve the 277 Orphaned file finding(s) in Knowledge Freshness — start with GoogleAdsClientBuilder.php (4), InfoRedactor.php (4), GoogleAdsCallLogger.php (4).+4.1 ptsHighKnowledge Freshness
Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.+1.8 ptsMediumDocumentation (README)
Add an explicit build step to your CI pipeline — your stack's own build command, or, if the pipeline delegates to a task runner, a build task that runner executes in CI — so every change is built before merge.+1.2 ptsMediumCI/CD gates
Resolve the 8 No assertions finding(s) in Test Quality — start with GoogleAdsLoggingServerStreamingCallTest.php (8).+0.4 ptsLowTest Quality
Resolve the 1 Off the main sequence finding(s) in Coupling.+0.1 ptsLowCoupling

File quality

Per-file score 0–10 — a quality signature. Of 104 files carrying findings, judged against the Production bar: 1% slop · 51% mixed · 48% near-clean.

FileScoreBandWorst signal
REDACTED3.0SlopIaC & Container Security: High IaC: REDACTED
src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php5.5MixedCyclomatic Complexity: GoogleAdsClientBuilder.validate (cyclomatic 30)
src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php5.7MixedGod Classes: TooManyMethods: BatchJobServiceClient
src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php5.7MixedGod Classes: TooManyMethods: BatchJobServiceClient
src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php5.9MixedCyclomatic Complexity: GoogleAdsClientBuilder.validate (cyclomatic 30)
src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php5.9MixedCyclomatic Complexity: GoogleAdsClientBuilder.validate (cyclomatic 30)
src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php5.9MixedCyclomatic Complexity: GoogleAdsClientBuilder.validate (cyclomatic 30)
src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php5.9MixedCyclomatic Complexity: GoogleAdsClientBuilder.validate (cyclomatic 30)
src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php5.9MixedCyclomatic Complexity: GoogleAdsClientBuilder.validate (cyclomatic 30)
src/Google/Ads/GoogleAds/Util/FieldMasks.php6.0MixedExplicit Debt: TodoComment
src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php7.0MixedGod Classes: TooManyMethods: BatchJobServiceClient
src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php7.0MixedGod Classes: TooManyMethods: BatchJobServiceClient
src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php7.0MixedCode Duplication: Members sharing a duplicated core (6 members, 50+ identical tokens)
src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php7.0MixedCode Duplication: Duplicated block (453 lines × 2)
src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php7.0MixedCode Duplication: Duplicated block (475 lines × 2)
examples/AdvancedOperations/AddPerformanceMaxCampaign.php7.0MixedCode Duplication: Edited copy of a member (104 corresponding lines)
src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php7.0MixedCode Duplication: Members sharing a duplicated core (6 members, 50+ identical tokens)
src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php7.1MixedCode Duplication: Members sharing a duplicated core (6 members, 50+ identical tokens)
examples/AdvancedOperations/AddAdCustomizer.php7.1MixedCode Duplication: Members sharing a duplicated core (7 members, 50+ identical tokens)
examples/Remarketing/AddCustomerMatchUserList.php7.1MixedCode Duplication: Edited copy of a member (50 corresponding lines)

How the grades work

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 — 3

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 — 234

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 — 304

Recorded, with no effect on how the codebase functions. Present so the survey is complete, not because it needs doing.

Could not be resolved — 18

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 40 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 — 40 dimensions across the health lenses
D1D2D3D4D5D6D10D13D15D16D17D19D28D29D31D34D35D44AX10AX3AX4AX6AX8M1M2M3M4P1P3P4P6X19X21X25X27X29X3X30X4X5

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
  1. 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, 531 of 541 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.)
  2. Is there a tool behind the number? Every score below names the method that produced it: Roslyn, git or a scanner, not a narrative.
  3. 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.

MethodBacksVersionEvaluator
Roslyn static analysisComplexity, cohesion, coupling, dead code, API surface, layering5.3.0✓ deterministic
Native secret scannerHardcoded secrets / credentials1.0.0✓ deterministic
Canine Code Analyzer duplication detector (in-process)Code duplication1.0.0✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.400✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.400✓ deterministic
git / LibGit2SharpChurn hotspots, knowledge concentration, history2.43.0 · 0.31.0✓ deterministic
gitleaks · semgrep · trivy · checkovSecrets in history, SAST, CVEs, IaC & container, PII / GDPR1.86.0 · 0.69.3 · 3.2.533✓ deterministic

Every finding is locatable in findings.md. Run 01a1e938-77ca-7b38-99e1-7e2625b44408.

The exact command behind every deep-scan dimension — tool, version, invocation and retained raw output — is in Appendix B — Reproduction & audit trail.

Run transparency — what happened this run

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 READ here — but this repository measures it: a coverage step in CI (`phpunit --configuration phpunit.xml.dist --coverage`) shows that coverage is collected and tracked in your own CI. The built-in collector has no runner for this ecosystem (.php), so the analyzer could not read the number — a gap in the analyzer's language coverage, not an unmeasured repo. Not scored.
  • 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.
  • D12 Dependency Hygiene — 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. Not scored — 5 direct Composer requirement(s) were read, but the outdated signal needs Packagist, and no committed composer.lock resolves them to releases, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — 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. Not scored — this repository declares a composer.json but commits no composer.lock this pass can read, so the set of packages it installs is not on disk: its composer.json states version CONSTRAINTS, and Composer's guidance is that a library leaves the lock uncommitted. Producing the graph needs Composer's solver, which this pass does not run, and grading whichever release happens to be newest today would be a verdict about a dependency graph nobody resolved. NOT a finding that this repository's licences are compliant: this dimension asserts nothing about its licensing in either direction.
  • 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 identifies the intentionally-exposed surface from `IsPackable` and `.Contracts` project names, MSBuild conventions read off the loaded project set. This target exposed no such projects, so the probe never ran; this says nothing about whether the repository has a public API. This repository commits no C#/VB source at all, so there was never an MSBuild project set to read these conventions off. That is OUR side and it is an ADMISSION gap, not an environment fault: it declares a published package (composer.json), but no published-package marker D22 reads admitted any project here. D22 DOES collect the public API of every language in this tree, and admits a project only when its manifest makes that ecosystem's publication act in a form the marker recognises — so what is missing is not a collector but an admission rule for the publication act this repository makes, if it makes one. The remedy is a better discriminator for that marker — not a collector, and no change to the scan image can close it. The marker's rules are measured to refuse applications, so one refused repository is the rule working as calibrated; several are the evidence that it is too strict.
  • 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. This check's reader does not cover the language this repository's product is written in, so it had nothing of the product to read. That is a gap in this analyzer's language reach — not a finding about this repository.
  • 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)` (1798920 LoC, 16866 module-visible types across 2571 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.
  • AXR1 Runtime accessibility — 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. Render strategy: boot via DockerCompose (docker-compose.yml). compose up failed (exit 18 — an image could not be pulled) — web Pulling web Error Get "https://us-central1-docker.pkg.dev/v2/": Forbidden Error response from daemon: Get "https://us-central1-docker.pkg.dev/v2/": Forbidden; the earlier `compose pull` step reported: web Pulling web Error Get "https://us-central1-docker.pkg.dev/v2/": Forbidden Error response from daemon: Get "https://us-central1-docker.pkg.dev/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped.
  • 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.
  • M4 Documentation accuracy — measured, with a gap in what it reached — We measured this, but not all of it. What we did not reach is a gap on our side — a collector, parser or image we have not built yet — so the numbers on that dimension cover less than the repository, and the part left out is not evidence that it would have passed. M4 checks only the claim kinds adjudicated at or above 95 % precision: links and versions (PREREGISTRATION version 9), and artefact counts an order of magnitude off. Paths, command arguments, installs, environment variables, settings, projects, packages, routes, cd targets, infrastructure products and removed modules are read but not checked, and none of them is reported or counted.
  • P5 DR & Backup — 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. No backup/snapshot/replication config, RTO/RPO or restore-procedure documentation was found — and no production persistence was detected either (no data-access packages, no data-store services, no database resources), so there is nothing in this repository whose loss a DR control would recover. If this system's data lives in a platform or ops repo we can't see, that's where the DR evidence belongs.
  • S1 Web-Security Posture — 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. These web-security controls are read from declarative annotations, request middleware, entity/column names and guard methods in a C# source model, and none was loaded on this run, so there was nothing to gather. That is a gap in this analyzer's language reach — not a finding that the repository lacks web-security controls.
  • 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.

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.
  • D10 Test Quality: Assertion density is structural — it cannot tell a meaningful behavioural assertion from a trivial one, only that an assertion is present.
  • 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").
  • 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.
  • D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
  • 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.
  • 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").
  • 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.
  • 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.
  • M4 Documentation accuracy: Documentation accuracy checks links, versions and artefact counts against the tree: other claims (paths, commands, settings, routes) are read but not checked, and it cannot run the onboarding or measure how long a real new joiner takes.
  • 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.

Dimensions

D1 · Cyclomatic Complexity8.4 / 10Strong✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 8.4 / 10 · rule-coverage 100% · ceiling Prevented

7 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was FieldMasks.buildPaths at 41.

GoogleAdsClientBuilder.validate (cyclomatic 30) · ×6src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:379
FieldMasks.buildPaths (cyclomatic 41)src/Google/Ads/GoogleAds/Util/FieldMasks.php:112

What to do

  1. Bring the 1 body over 30 down to 30 or less in Cyclomatic Complexity — start with FieldMasks.buildPaths (cyclomatic 41). — Refactoring it lifts Cyclomatic Complexity from 8.4 to about 8.7/10.

Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.

D2 · Cognitive Complexity8.2 / 10Strong✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 8.2 / 10 · rule-coverage 100% · ceiling Prevented

8 method(s) exceeded the cognitive complexity threshold of 15; the worst was FieldMasks.buildPaths at 44.

GoogleAdsClientBuilder.validate (cognitive 28) · ×6src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:379
FieldMasks.buildPaths (cognitive 44)src/Google/Ads/GoogleAds/Util/FieldMasks.php:112
FieldMasks.getFieldValue (cognitive 17)src/Google/Ads/GoogleAds/Util/FieldMasks.php:283

What to do

  1. Bring the 1 body over 30 down to 30 or less in Cognitive Complexity — start with FieldMasks.buildPaths (cognitive 44). — Refactoring it lifts Cognitive Complexity from 8.2 to about 8.6/10.

Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.

D3 · God Classes10.0 / 10Stronggated by 14 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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

14 god class(es) detected.

TooManyMethods: BatchJobServiceClient · ×14src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php:67

What to do

  1. Resolve the 14 TooManyMethods finding(s) in God Classes — start with GoogleAdsClientBuilder.php (6), BatchJobServiceClient.php (4), GoogleAdsServiceClient.php (4). — One of this dimension's main actionable groups (14 warning-level).

Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.

D4 · Code Duplication7.6 / 10Strong✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 7.6 / 10 · rule-coverage 100% · ceiling Verified

125 duplicated block group(s) detected. 6.0 % of the production lines (112,294 of 1,866,386) are in a reported copy. A further 43 rows report members as variants of one another; the share counts each copied line once, however many rows cite it. 69 of the 168 are in trees this repository does not ship — vendored, example/demo, project-template, fixture and benchmark code — and are ranked below the shipped groups rather than excluded from them: the duplication there is real and is still counted in this dimension's score. The dimensions that publish a production-file census leave those trees out of theirs, so this count is deliberately drawn over the wider population.

Members sharing a duplicated core (6 members, 50+ identical tokens) · ×19src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClient.php:43
Duplicated block (6 lines × 6) · ×4src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:45
Duplicated block (32 lines × 6) · ×3src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:252
Duplicated block (7 lines × 6) · ×3src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:74
Duplicated block (26 lines × 6) · ×2src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:55

+ 126 more group(s) — more in Appendix A; the complete list is findings.md.

What to do

  1. Resolve the 19 Members sharing a duplicated core (6 members, 50+ identical tokens) finding(s) in Code Duplication — start with GoogleAdsClientBuilder.php (3), InfoRedactor.php (3), LogMessageFormatter.php (3). — One of this dimension's main actionable groups (19 warning-level).
  2. Resolve the 4 Duplicated block (6 lines × 6) finding(s) in Code Duplication — start with InfoRedactor.php (2), GoogleAdsLoggingServerStreamingCall.php, LogMessageFormatter.php. — One of this dimension's main actionable groups (4 warning-level).
  3. Resolve the 3 Duplicated block (32 lines × 6) finding(s) in Code Duplication — start with InfoRedactor.php, StatusMetadataExtractor.php, UnaryGoogleAdsExceptionMiddleware.php. — One of this dimension's main actionable groups (3 warning-level).

Detailed fixes: d4_recommendation.md · top locations in Appendix A, every location in findings.md.

D5 · Coupling7.3 / 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.

Maturity: Documented → Verified → Prevented · effective 7.3 / 10 · rule-coverage 100% · ceiling Prevented

3 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.

Off the main sequence: metadata

What to do

  1. 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.

D6 · Cohesion (LCOM4)9.8 / 10Stronggated by 25 serious findings✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 9.8 / 10 · rule-coverage 100% · ceiling Verified

25 of 1468 classes have LCOM4 above 3.

Low cohesion: CampaignSpecificAppGoalRecommendation (LCOM4 11) · ×25src/Google/Ads/GoogleAds/V25/Resources/Recommendation/CampaignSpecificAppGoalRecommendation.php:18

What to do

  1. Resolve the 25 Low cohesion finding(s) in Cohesion (LCOM4) — start with GoogleAdsClientBuilder.php (6), BatchJobServiceClient.php (4), CampaignDraftServiceClient.php (4). — One of this dimension's main actionable groups (25 warning-level).

Detailed fixes: d6_recommendation.md · top locations in Appendix A, every location in findings.md.

D10 · Test Quality9.9 / 10Stronggated by 8 serious findings✓ Tool-verified

What it measures: Whether the tests truly assert behaviour rather than just running the code.

Method: Per-test assertions, skips, and mock references analyzed via Roslyn; structured skip-reason tags (BUG:/ENV:) separate documented deferrals from debt. Deterministic.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Prevented

0 skipped, 8 zero-assertion, no mocking-framework packages referenced (hand-written doubles or no mocking) across 1305 tests.

No assertions: testGetStatus · ×8tests/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingServerStreamingCallTest.php:69

What to do

  1. Resolve the 8 No assertions finding(s) in Test Quality — start with GoogleAdsLoggingServerStreamingCallTest.php (8). — One of this dimension's main actionable groups (8 warning-level).

Detailed fixes: d10_recommendation.md · top locations in Appendix A, every location in findings.md.

D13 · Secret Scanning10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

Secret scan ran and found no leaked secrets.

✓ On the Gold path — maintain.

Detailed fixes: d13_recommendation.md.

D15 · Churn × Complexity Hotspots10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No churn × complexity hotspots in the window.

✓ On the Gold path — maintain.

Detailed fixes: d15_recommendation.md.

D16 · Bus Factor9.9 / 10Exemplary✓ Tool-verified

What it measures: Whether knowledge is concentrated in too few people (the "bus factor").

Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.

Maturity: Documented → Verified → Prevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

4 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is src/Google/Ads/GoogleAds/Lib/OAuth2TokenBuilder.php. Counted over 549 of the 16766 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Off-boarding risk: anonymized user #1

✓ On the Gold path — maintain.

Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.

D17 · Explicit Debt10.0 / 10Stronggated by 1 serious finding✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Prevented

1 deducted task-comment markers across 1866386 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.

TodoCommentsrc/Google/Ads/GoogleAds/Util/FieldMasks.php:379

What to do

  1. Resolve the 1 TodoComment finding(s) in Explicit Debt — start with FieldMasks.php. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d17_recommendation.md · top locations in Appendix A, every location in findings.md.

D19 · Documentation Quality10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

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.

D28 · Secrets (history)10.0 / 10Exemplary○ Nothing flagged

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

gitleaks scanned the full history AND the current working tree and found no secrets.

✓ On the Gold path — maintain.

Detailed fixes: d28_recommendation.md.

D29 · Static Analysis (SAST)10.0 / 10Exemplary○ Nothing flagged

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).

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

semgrep found no security issues. semgrep hit a parse error in 67 file(s) — `examples/Remarketing/AddMerchantCenterDynamicRemarketingCampaign.php` (line 211), `metadata/Google/Ads/GoogleAds/V20/Services/AdGroupAdService.php`, `metadata/Google/Ads/GoogleAds/V20/Services/BatchJobService.php`, `metadata/Google/Ads/GoogleAds/V20/Services/CampaignDraftService.php`, `metadata/Google/Ads/GoogleAds/V20/Services/ExperimentService.php`, … (+62 more) — 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.

✓ On the Gold path — maintain.

Detailed fixes: d29_recommendation.md.

D31 · IaC & Container Security8.9 / 10Adequategated by 3 critical findings✓ Tool-verified

What it measures: Whether Dockerfiles / Terraform / Kubernetes config follow security best practices.

Method: IaC/container misconfiguration scan via trivy config (REDACTED/Terraform/K8s/Helm/CloudFormation); severity rules to 0-10 moderate normalizer. NotApplicable without manifests. Exhaustive, deterministic.

Maturity: Documented → Verified → Prevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Documented

4 finding(s): 0 critical, 3 high, 1 medium, 0 low.

REDACTED
REDACTED

What to do

  1. Resolve the 3 High IaC finding(s) in IaC & Container Security — start with REDACTED (3). — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 1 Medium IaC finding(s) in IaC & Container Security — start with REDACTED. — One of this dimension's main actionable groups (1 warning-level).

Detailed fixes: d31_recommendation.md · top locations in Appendix A, every location in findings.md.

D34 · Knowledge Freshness4.9 / 10Weak✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 4.9 / 10 · rule-coverage 100% · ceiling Documented

280 of 549 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php. Counted over 549 of the 16766 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over.

Orphaned file · ×277src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:1
Most significant orphaned file · ×3src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:1
Concentrated knowledge decay

What to do

  1. Resolve the 277 Orphaned file finding(s) in Knowledge Freshness — start with GoogleAdsClientBuilder.php (4), InfoRedactor.php (4), GoogleAdsCallLogger.php (4). — One of this dimension's main actionable groups (277 recommendation-level).
  2. Resolve the 3 Most significant orphaned file finding(s) in Knowledge Freshness — start with BatchJobServiceClient.php (2), GoogleAdsServiceClient.php. — One of this dimension's main actionable groups (3 recommendation-level).
  3. Resolve the 1 Concentrated knowledge decay finding(s) in Knowledge Freshness. — One of this dimension's main actionable groups (1 recommendation-level).

Detailed fixes: d34_recommendation.md · top locations in Appendix A, every location in findings.md.

D35 · Change Coupling10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No strong hidden change-coupling between production files.

✓ On the Gold path — maintain.

Detailed fixes: d35_recommendation.md.

D44 · Platform End-of-Life10.0 / 10Exemplary✓ Tool-verified

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.

Maturity: Documented → Verified → Prevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

0 end-of-life runtime(s) and 0 end-of-life framework(s), read from 0 platform declaration(s) and 5 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.

✓ On the Gold path — maintain.

Detailed fixes: d44_recommendation.md.

Frontend & cross-cutting dimensions

R = React/JS · M = Maturity · P = Readiness.

AX10 · Code composition10.0 / 10Exemplary✓ Tool-verified

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.

AX3 · Project dependency cycles10.0 / 10Exemplary✓ Tool-verified

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.

AX4 · Dependency direction10.0 / 10Exemplary✓ Tool-verified

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.

AX6 · Interface segregation10.0 / 10Exemplary✓ Tool-verified

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.

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.

M1 · Documentation (README)6.7 / 10Adequate✓ Tool-verified

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.

What to do

  • Explain in the README how to run the tests. Add a section called Testing to the README in the repository's top folder, saying how to run the test suite.
M2 · Architecture documentation0.0 / 10Critical✓ Tool-verified

Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.

Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.

  • No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
  • No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.

What to do

  • Record your significant design decisions. Write one short document per decision, giving its date, the situation, the decision and its consequences, and keep them together with your other design documents. A docs/adr folder with each file named by number and title is the easiest place to find them.
  • Add a C4 context/container diagram (Structurizr, PlantUML or Mermaid) or an architecture.md overview.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

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.

M4 · Documentation accuracy10.0 / 10Exemplary○ Nothing flagged

Maturity · Maturity — Whether the project's current-state documentation describes the code that exists.

Method: Every current-state document's checkable claims looked up in the tree (links, versions, and artefact counts an order of magnitude off), plus two README checks: an advertised infrastructure product with no footprint, and a module the CHANGELOG records as removed. Deterministic, no model. Advisory.

P1 · CI/CD gates8.0 / 10Strong✓ 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.

  • A CI pipeline exists but no build step was matched — changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves.

What to do

  • Add an explicit build step to your CI pipeline — your stack's own build command, or, if the pipeline delegates to a task runner, a build task that runner executes in CI — so every change is built before merge.
P3 · Security & performance tooling0.0 / 10Critical✓ Tool-verified

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.

  • No static application security testing detected. For this repository's stack, add phpstan or psalm (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.

What to do

  • Add a SAST step to CI running what this repository's stack ships: phpstan or psalm — or `semgrep --config=auto`, which runs on any language — so a security regression fails the build instead of landing.
  • Enable Dependabot/Renovate or a dependency-review gate.
  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback5.0 / 10Adequate✓ Tool-verified

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.

What to do

  • Nothing pauses a release for a human: publish as a draft release (or gate the release job on a protected tag/manual dispatch) so a bad build can be stopped before users can download it.
P6 · Release Hygiene10.0 / 10Exemplary✓ Tool-verified

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.

X19 · Unrestored process-global state10.0 / 10Exemplary○ Nothing flagged

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.

X21 · Side-effecting pattern guard10.0 / 10Exemplary○ Nothing flagged

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.

X25 · Inert configuration knob10.0 / 10Exemplary○ Nothing flagged

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.

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.

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.

X3 · Exception handling10.0 / 10Exemplary○ Nothing flagged

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.

X30 · Support guard that admits what it rejects10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether a guard written as a NEGATED `||` says what its author meant — `!(a || b || x != k)` is `!a && !b && x == k` by De Morgan, so a bail-out that mixes capabilities the code needs with a fault it refuses turns inside out: it fires only where the capabilities are ABSENT, and lets every value the fault term names walk straight into the body that cannot handle it.

Method: Roslyn syntax only, no semantic model: every logical-not whose operand is a parenthesised `||` chain of two or more disjuncts, flattened (a left-nested `a || b || c` read once would see `(a || b)` as one disjunct). A site enters the population on that shape alone. A finding additionally needs the disjuncts to DISAGREE in polarity: at least one bare boolean read — an identifier or member access, never an invocation, which is a predicate rather than a capability flag — and at least one `x != <constant>`, the only form that negates into an exact-value pin (`== null` negates into a looser requirement and is outside the fault set). Consistently-polarised disjunctions, all-fault or all-capability, are counted and never reported; a negated `&&` is outside the population entirely. No same-receiver gate: it was measured to cost a real defect and remove no false positive. Deterministic, provable per finding. Advisory.

X4 · Structured logging10.0 / 10Exemplary○ Nothing flagged

Other · Code Health — Whether log calls use message templates (queryable) rather than interpolated strings.

Method: Roslyn syntax scan: every log call-site counted; interpolated-string first-argument violations flagged. Population is all log calls, not estimated. 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 `trace`/`debug`/`info`/`warn`/`error`/`fatal`/`verbose`/`silly`/`http`/`log` call on a receiver named for a logger, in a package whose own or an enclosing `package.json` declares a logger that carries values as fields (pino, pino-http, nestjs-pino, Fastify, winston, bunyan, tslog, LogTape, roarr), whose first deciding argument is a template literal with substitutions; an object-literal fields argument is stepped over, a plain string message clears the call. Python is read the same way: a `debug`/`info`/`warning`/`error`/`exception`/`critical`/`log` call on a logger in a file that imports the standard library’s `logging` or structlog (loguru, which formats at the call, is not judged), whose message is a whole f-string with a non-constant field; a `%`-formatted, `.format()`-ed or concatenated message is not convicted, as in C#. PHP is read the same way: a PSR-3 level call (`emergency`…`debug`, `log`) on a logger (`$logger`, `$this->logger`, Laravel’s `Log::`, `logger()`, `\Drupal::logger()`) in a package whose `composer.json` requires a PSR-3 logger or a framework that hands one out (psr/log, Monolog, Laravel, Symfony, Drupal, CakePHP), or a file that imports one, whose message is a double-quoted string interpolating a variable; a single-quoted message clears the call, and `sprintf` or `.` concatenation is not convicted, as in C#. Dart is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on Sentry’s structured logger (`Sentry.logger`) whose message is a whole string literal interpolating a value (`$name`, `${…}`); the `Sentry.logger.fmt` template API clears the call. Dart that logs only through loggers with one message and no fields (package:logging, package:logger, talker, dart:developer) is not applicable rather than a reach gap. Ruby is read the same way: a `trace`/`debug`/`info`/`warn`/`error`/`fatal` call on the console gem’s `Console` (declared by a Gemfile, gemspec or Gemfile.lock, or required) or, where SemanticLogger, Ougai or dry-logger is declared or required, on a receiver named for a logger (`logger`, `@logger`, `Rails.logger`, `log`), whose first deciding argument is, as the whole argument, a double-quoted string interpolating a non-constant value (`#{…}`, `#@ivar`); a plain literal clears the call, keyword arguments are the fields, and a block, `%`-format or `+` concatenation is not convicted. Ruby that logs only through the standard Logger (Rails.logger) is not applicable rather than a reach gap. Deterministic.

X5 · Nullable reference types2.0 / 10Critical✓ Tool-verified

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.

  • This repository commits no PHPStan or Psalm configuration (`phpstan.neon[.dist]`, `phpstan.dist.neon`, `psalm.xml[.dist]`, or one a composer.json script names with `--configuration`), so nothing checks null: a `?Customer` reaches `->name()` silently and throws `Error: Call to a member function name() on null` the first time it is null. If the build passes a level on a command line instead, put it in a committed configuration — this check reads configuration, and configuration is all it can read.

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.

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.

LensScoreRatingImpact
Code Health70.2Adequate — gated by X5Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture96.9ExemplarySolid.
Maturity55.9Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness54.6Adequate — gated by P3Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security97.2ExemplaryStrongest area.
Unscored — 2 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.

  • P12 CI test-gate honesty — 1 observation(s) recorded · Reported, not scored — this card publishes what the CI gate does with the test inventory rather than grading it. The findings above are its output.
  • X10 Duplicated predicate — 16 observation(s) recorded · Advisory — this card reports evidence and never carries a score.
Not evidenced — 1 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.

  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
Not included — 73 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 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.
  • 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
  • AXB2 Runtime readiness — Advisory — this card reports evidence and never carries a score, so there is nothing missing here.
  • AXR1 Runtime accessibility — compose up failed (exit 18 — an image could not be pulled) — web Pulling web Error Get "https://us-central1-docker.pkg.dev/v2/": Forbidden Error response from daemon: Get "https://us-central1-docker.pkg.dev/v2/": Forbidden; the earlier `compose pull` step reported: web Pulling web Error Get "https://us-central1-docker.pkg.dev/v2/": Forbidden Error response from daemon: Get "https://us-central1-docker.pkg.dev/v2/": Forbidden; the runtime sandbox reaches registries only through the in-fence pull-through mirror, so an image the mirror does not carry cannot be fetched — this is a limit of our sandbox, not of your stack; runtime evidence skipped This is a statement about this run, not a statement about your application: nothing here says the surface is inaccessible, only that it was never rendered.
  • C1 Data Protection — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Laravel migration, an Eloquent $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no data at rest for these controls to protect.
  • 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.
  • C3 Audit Trail — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone_number, …) or stored credential in a Laravel migration, an Eloquent model's $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no sensitive data whose changes an audit trail would record. If it does (through a hosted backend configured outside this repository, for instance), the trail belongs to wherever that data is stored.
  • C4 Data Retention — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Laravel migration, an Eloquent $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no personal data whose lifetime a retention limit would bound.
  • C5 Data-Subject Rights — No personal data detected in a persisted data model — no PII-named field (email, first_name, date_of_birth, phone, …) or stored credential in a Laravel migration, an Eloquent $fillable/$hidden list or a Doctrine #[ORM\Column] property — and no database client (PDO, mysqli, Laravel's DB facade, $wpdb) in the source either, so this repository keeps no personal data for a data subject to erase, export or consent over.
  • D11 Test Reliability — Test reliability not included — no .php test runner
  • D12 Dependency Hygiene — Not scored — 5 direct Composer requirement(s) were read, but the outdated signal needs Packagist, and no committed composer.lock resolves them to releases, so this dimension's own question is only partly answered. NOT a finding that these dependencies are current or healthy.
  • D14 License Compliance — Composer package licences not graded — this repository commits no composer.lock and this pass does not run Composer's solver
  • 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 — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
  • D21 Naming Consistency — Naming consistency does not read PHP yet; not measured.
  • D22 Internal API Consistency — The exposed public-API surface could not be collected — no C#/VB projects loaded.
  • 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 — this repository's production source is .php, which was left unread. Not scored: this is a gap in the analyzer, not a verdict about this repository.
  • 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.
  • D27 Navigability — symbol resolution incomplete — navigability not assessed
  • D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (composer.json — not scanned yet).
  • 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 — The CI pipeline publishes no artifact — no package publish, container push or release with files to download. Supply-chain provenance, signing and an SBOM describe a PUBLISHED artifact for the people who obtain it, so there is nothing to attest here; a deployment of the service itself publishes nothing for anyone else to verify. Add them to the release pipeline when this repo starts publishing artifacts (a package, a container image, or a release with downloadable files). Build integrity and workflow-token hygiene are reported below: they describe what the CI runs and the token it runs with, neither of which is affected by whether the pipeline ships an artifact.
  • 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.
  • D43 Malicious Dependencies — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (composer.json — not scanned yet).
  • 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
  • P2 Observability — This repository's PHP source (1 module(s), 17640 file(s) read) declares no entry point and bootstraps no server, and nothing here deploys a service — it is a library, run inside whatever hosts it, so production observability (structured logging, tracing/metrics, health checks) is N/A. If it grows a binary or a service, the dimension reactivates.
  • P7 Outbound HTTP resilience — not applicable — no HTTP server, API framework or worker entry point was found in the PHP source, so there is no service whose uptime a failing dependency could take down
  • 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.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) 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. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
  • 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
  • X16 Unfloored truncation loop — 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
  • X18 Disposal-pattern correctness — not applicable — the code was read and holds no site of this kind, so there is nothing for this check to judge
  • 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.
  • X28 Index access outside its own emptiness guard — 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.
  • 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.

Critical — 3 finding(s)
D31 · IaC & Container Security · High IaC · ×3
  • REDACTED
  • REDACTED
  • REDACTED
Serious — 234 finding(s)
D6 · Cohesion (LCOM4) · Low cohesion · ×25
  • Low cohesion: CampaignSpecificAppGoalRecommendation (LCOM4 11) src/Google/Ads/GoogleAds/V25/Resources/Recommendation/CampaignSpecificAppGoalRecommendation.php:18 — CampaignSpecificAppGoalRecommendation's methods fall into 11 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 11 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: CampaignSpecificAppGoalRecommendation (LCOM4 11) src/Google/Ads/GoogleAds/V26/Resources/Recommendation/CampaignSpecificAppGoalRecommendation.php:18 — CampaignSpecificAppGoalRecommendation's methods fall into 11 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 11 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: ConversionTrackingSetting (LCOM4 6) src/Google/Ads/GoogleAds/V25/Resources/ConversionTrackingSetting.php:17 — ConversionTrackingSetting'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: GoogleAdsClientBuilder (LCOM4 5) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:42 — GoogleAdsClientBuilder'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: GoogleAdsClientBuilder (LCOM4 5) src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:42 — GoogleAdsClientBuilder'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: GoogleAdsClientBuilder (LCOM4 5) src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:42 — GoogleAdsClientBuilder'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: GoogleAdsClientBuilder (LCOM4 5) src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:42 — GoogleAdsClientBuilder'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: GoogleAdsClientBuilder (LCOM4 5) src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:42 — GoogleAdsClientBuilder'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: GoogleAdsClientBuilder (LCOM4 5) src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:42 — GoogleAdsClientBuilder'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: BatchJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:67 — BatchJobServiceClient's methods fall into 4 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 4 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: CampaignDraftServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V23/Services/Client/CampaignDraftServiceClient.php:63 — CampaignDraftServiceClient's methods fall into 4 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 4 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: ExperimentServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php:69 — ExperimentServiceClient's methods fall into 4 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 4 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: OfflineUserDataJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V23/Services/Client/OfflineUserDataJobServiceClient.php:63 — OfflineUserDataJobServiceClient's methods fall into 4 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 4 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: BatchJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php:67 — BatchJobServiceClient's methods fall into 4 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 4 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: CampaignDraftServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V24/Services/Client/CampaignDraftServiceClient.php:63 — CampaignDraftServiceClient's methods fall into 4 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 4 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: ExperimentServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentServiceClient.php:69 — ExperimentServiceClient's methods fall into 4 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 4 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: OfflineUserDataJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V24/Services/Client/OfflineUserDataJobServiceClient.php:63 — OfflineUserDataJobServiceClient's methods fall into 4 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 4 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: BatchJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:67 — BatchJobServiceClient's methods fall into 4 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 4 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: CampaignDraftServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V25/Services/Client/CampaignDraftServiceClient.php:63 — CampaignDraftServiceClient's methods fall into 4 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 4 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: ExperimentServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php:69 — ExperimentServiceClient's methods fall into 4 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 4 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: OfflineUserDataJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V25/Services/Client/OfflineUserDataJobServiceClient.php:63 — OfflineUserDataJobServiceClient's methods fall into 4 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 4 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: BatchJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php:67 — BatchJobServiceClient's methods fall into 4 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 4 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: CampaignDraftServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V26/Services/Client/CampaignDraftServiceClient.php:63 — CampaignDraftServiceClient's methods fall into 4 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 4 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: ExperimentServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentServiceClient.php:69 — ExperimentServiceClient's methods fall into 4 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 4 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: OfflineUserDataJobServiceClient (LCOM4 4) src/Google/Ads/GoogleAds/V26/Services/Client/OfflineUserDataJobServiceClient.php:69 — OfflineUserDataJobServiceClient's methods fall into 4 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 4 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.
D4 · Code Duplication · Members sharing a duplicated core (6 members, 50+ identical tokens) · ×19
  • Members sharing a duplicated core (6 members, 50+ identical tokens) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClient.php:43 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClient.php:44-65 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClient.php:44-65 — 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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:89 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:89-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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:132 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:132-143 — 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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:381 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:381-469 — 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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsExceptionTrait.php:42 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsExceptionTrait.php:42-63 — 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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:55 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsGapicClientTrait.php:55-80 — 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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:88 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:88-104 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php:88-104 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php:88-104 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:91-107 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php:91-107 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsGapicClientTrait.php:91-107 — 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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:58 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingServerStreamingCall.php:58-66 — 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) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:149 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:149-195 — 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) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:219 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:219-236 — 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) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:252 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:252-283 — 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) src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:53 — src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V23/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V24/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V25/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V26/LogMessageFormatter.php:53-64 — 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) src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:80 — src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V23/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V24/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V25/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V26/LogMessageFormatter.php:80-99 — 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) src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:115 — src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V23/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V24/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V25/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V26/LogMessageFormatter.php:115-157 — 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) src/Google/Ads/GoogleAds/Lib/V20/LoggerFactory.php:43 — src/Google/Ads/GoogleAds/Lib/V20/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V21/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V23/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V24/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V25/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V26/LoggerFactory.php:43-50 — 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) src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsExceptionMiddleware.php:58 — src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V21/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V23/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V24/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V25/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V26/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 — 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) src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsResponseMetadataCallable.php:37 — src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V21/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V23/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V24/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V25/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V26/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 — 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) src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsResponseMetadataCallable.php:50 — src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V21/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V23/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V24/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V25/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V26/UnaryGoogleAdsResponseMetadataCallable.php:50-76 — 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) src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php:111 — src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V21/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V23/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V24/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V25/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V26/GoogleAdsErrors.php:111-126 — 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.
D3 · God Classes · TooManyMethods · ×14
  • TooManyMethods: BatchJobServiceClient src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php:67 — TooManyMethods — 89 methods. The bar is 30 methods; this is 59 over it, 2.97× 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: BatchJobServiceClient src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:67 — TooManyMethods — 88 methods. The bar is 30 methods; this is 58 over it, 2.93× 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: BatchJobServiceClient src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:67 — TooManyMethods — 87 methods. The bar is 30 methods; this is 57 over it, 2.90× 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: BatchJobServiceClient src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php:67 — TooManyMethods — 87 methods. The bar is 30 methods; this is 57 over it, 2.90× 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: GoogleAdsServiceClient src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:78 — TooManyMethods — 84 methods. The bar is 30 methods; this is 54 over it, 2.80× 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: GoogleAdsServiceClient src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:61 — TooManyMethods — 83 methods. The bar is 30 methods; this is 53 over it, 2.77× 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: GoogleAdsServiceClient src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:61 — TooManyMethods — 82 methods. The bar is 30 methods; this is 52 over it, 2.73× 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: GoogleAdsServiceClient src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:61 — TooManyMethods — 82 methods. The bar is 30 methods; this is 52 over it, 2.73× 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: GoogleAdsClientBuilder src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:42 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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: GoogleAdsClientBuilder src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:42 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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: GoogleAdsClientBuilder src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:42 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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: GoogleAdsClientBuilder src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:42 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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: GoogleAdsClientBuilder src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:42 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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: GoogleAdsClientBuilder src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:42 — TooManyMethods — 39 methods. The bar is 30 methods; this is 9 over it, 1.30× 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.
D10 · Test Quality · No assertions · ×8
  • No assertions: testGetStatus tests/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingServerStreamingCallTest.php:69 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: testGetStatusWithEmptyResponses tests/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingServerStreamingCallTest.php:99 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: testGetStatus tests/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingServerStreamingCallTest.php:69 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: testGetStatusWithEmptyResponses tests/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingServerStreamingCallTest.php:99 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: testGetStatus tests/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingServerStreamingCallTest.php:69 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: testGetStatusWithEmptyResponses tests/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingServerStreamingCallTest.php:99 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: testGetStatus tests/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingServerStreamingCallTest.php:69 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
  • No assertions: testGetStatusWithEmptyResponses tests/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingServerStreamingCallTest.php:99 — This method's body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) — so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as 'no assertion this check knows how to see', and if that is right, add one.
D1 · Cyclomatic Complexity · GoogleAdsClientBuilder.validate (cyclomatic 30) · ×6
  • GoogleAdsClientBuilder.validate (cyclomatic 30) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cyclomatic 30) src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cyclomatic 30) src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cyclomatic 30) src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cyclomatic 30) src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cyclomatic 30) src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cyclomatic complexity 30 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D2 · Cognitive Complexity · GoogleAdsClientBuilder.validate (cognitive 28) · ×6
  • GoogleAdsClientBuilder.validate (cognitive 28) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cognitive 28) src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cognitive 28) src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cognitive 28) src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cognitive 28) src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
  • GoogleAdsClientBuilder.validate (cognitive 28) src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:379 — GoogleAdsClientBuilder.validate has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, if/else 13. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
D4 · Code Duplication · Duplicated block (6 lines × 6) · ×4
  • Duplicated block (6 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:45 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:45-50 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingServerStreamingCall.php:45-50 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingServerStreamingCall.php:45-50 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingServerStreamingCall.php:45-50 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingServerStreamingCall.php:45-50 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingServerStreamingCall.php:45-50 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingServerStreamingCall.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 22 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (6 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:353 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:353-358 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:353-358 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:353-358 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:353-358 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:353-358 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:353-358 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: `LocalServicesLead` names `Google\Ads\GoogleAds\V20\Resources\LocalServicesLead` in one and `Google\Ads\GoogleAds\V21\Resources\LocalServicesLead` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:370 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:370-375 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:370-375 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:370-375 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:370-375 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:370-375 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:370-375 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: `LocalServicesLeadConversation` names `Google\Ads\GoogleAds\V20\Resources\LocalServicesLeadConversation` in one and `Google\Ads\GoogleAds\V21\Resources\LocalServicesLeadConversation` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (6 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:166 — src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:166-171 | src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php:166-171 | src/Google/Ads/GoogleAds/Lib/V23/LogMessageFormatter.php:166-171 | src/Google/Ads/GoogleAds/Lib/V24/LogMessageFormatter.php:166-171 | src/Google/Ads/GoogleAds/Lib/V25/LogMessageFormatter.php:166-171 | src/Google/Ads/GoogleAds/Lib/V26/LogMessageFormatter.php:166-171 — `src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php` and `src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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.
D4 · Code Duplication · Duplicated block (32 lines × 6) · ×3
  • Duplicated block (32 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:252 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:252-283 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:252-283 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: `GoogleAdsRow` names `Google\Ads\GoogleAds\V20\Services\GoogleAdsRow` in one and `Google\Ads\GoogleAds\V21\Services\GoogleAdsRow` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (32 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/StatusMetadataExtractor.php:42 — src/Google/Ads/GoogleAds/Lib/V20/StatusMetadataExtractor.php:42-73 | src/Google/Ads/GoogleAds/Lib/V21/StatusMetadataExtractor.php:42-73 | src/Google/Ads/GoogleAds/Lib/V23/StatusMetadataExtractor.php:42-73 | src/Google/Ads/GoogleAds/Lib/V24/StatusMetadataExtractor.php:42-73 | src/Google/Ads/GoogleAds/Lib/V25/StatusMetadataExtractor.php:42-73 | src/Google/Ads/GoogleAds/Lib/V26/StatusMetadataExtractor.php:42-73 — `src/Google/Ads/GoogleAds/Lib/V20/StatusMetadataExtractor.php` and `src/Google/Ads/GoogleAds/Lib/V21/StatusMetadataExtractor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/StatusMetadataExtractor.php:42` 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. Note first that the copies are not typed on the same thing: `GoogleAdsFailure` names `Google\Ads\GoogleAds\V20\Errors\GoogleAdsFailure` in one and `Google\Ads\GoogleAds\V21\Errors\GoogleAdsFailure` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (32 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsExceptionMiddleware.php:45 — src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsExceptionMiddleware.php:45-76 | src/Google/Ads/GoogleAds/Lib/V21/UnaryGoogleAdsExceptionMiddleware.php:45-76 | src/Google/Ads/GoogleAds/Lib/V23/UnaryGoogleAdsExceptionMiddleware.php:45-76 | src/Google/Ads/GoogleAds/Lib/V24/UnaryGoogleAdsExceptionMiddleware.php:45-76 | src/Google/Ads/GoogleAds/Lib/V25/UnaryGoogleAdsExceptionMiddleware.php:45-76 | src/Google/Ads/GoogleAds/Lib/V26/UnaryGoogleAdsExceptionMiddleware.php:45-76 — `src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsExceptionMiddleware.php` and `src/Google/Ads/GoogleAds/Lib/V21/UnaryGoogleAdsExceptionMiddleware.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 32 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsExceptionMiddleware.php:45` 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. Note first that the copies are not typed on the same thing: the declarations holding them bind `null` to `StatusMetadataExtractor $statusMetadataExtractor =` in one and `?StatusMetadataExtractor $statusMetadataExtractor =` in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH — their common supertype where they have one, or a new abstraction over them where they do not — and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (7 lines × 6) · ×3
  • Duplicated block (7 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:74 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:74-80 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingServerStreamingCall.php:74-80 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingServerStreamingCall.php:74-80 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingServerStreamingCall.php:74-80 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingServerStreamingCall.php:74-80 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingServerStreamingCall.php:74-80 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingServerStreamingCall.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 22 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (7 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:294 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:294-300 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:294-300 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:294-300 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:294-300 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:294-300 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:294-300 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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. Note first that the copies are not typed on the same thing: `CustomerUserAccess` names `Google\Ads\GoogleAds\V20\Resources\CustomerUserAccess` in one and `Google\Ads\GoogleAds\V21\Resources\CustomerUserAccess` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (7 lines × 6) src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php:93 — src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php:93-99 | src/Google/Ads/GoogleAds/Util/V21/GoogleAdsErrors.php:93-99 | src/Google/Ads/GoogleAds/Util/V23/GoogleAdsErrors.php:93-99 | src/Google/Ads/GoogleAds/Util/V24/GoogleAdsErrors.php:93-99 | src/Google/Ads/GoogleAds/Util/V25/GoogleAdsErrors.php:93-99 | src/Google/Ads/GoogleAds/Util/V26/GoogleAdsErrors.php:93-99 — `src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php` and `src/Google/Ads/GoogleAds/Util/V21/GoogleAdsErrors.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 2 separate duplicated blocks between them, totalling at least 23 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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.
D4 · Code Duplication · Duplicated block (26 lines × 6) · ×2
  • Duplicated block (26 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:55 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php:55-80 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsGapicClientTrait.php:55-80 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (26 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsResponseMetadata.php:37 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsResponseMetadata.php:37-62 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsResponseMetadata.php:37-62 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsResponseMetadata.php:37-62 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsResponseMetadata.php:37-62 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsResponseMetadata.php:37-62 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsResponseMetadata.php:37-62 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsResponseMetadata.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsResponseMetadata.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 26 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsResponseMetadata.php:37` 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.
D4 · Code Duplication · Duplicated block (22 lines × 6) · ×2
  • Duplicated block (22 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClient.php:43 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClient.php:43-64 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClient.php:44-65 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClient.php:44-65 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClient.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClient.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 22 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: `GoogleAdsFailures` names `Google\Ads\GoogleAds\Util\V20\GoogleAdsFailures` in one and `Google\Ads\GoogleAds\Util\V21\GoogleAdsFailures` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (22 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsExceptionTrait.php:42 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsExceptionTrait.php:42-63 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsExceptionTrait.php:42-63 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsExceptionTrait.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsExceptionTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 22 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:112 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:112-125 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php:112-125 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php:112-125 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (14 lines × 3) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:133 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:133-146 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php:133-146 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php:133-146 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (12 lines × 6) · ×2
  • Duplicated block (12 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:132 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:132-143 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:132-143 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 134 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 × 6) src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:53 — src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V23/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V24/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V25/LogMessageFormatter.php:53-64 | src/Google/Ads/GoogleAds/Lib/V26/LogMessageFormatter.php:53-64 — `src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php` and `src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 · Duplicated block (9 lines × 6) · ×2
  • Duplicated block (9 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:58 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingServerStreamingCall.php:58-66 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingServerStreamingCall.php:58-66 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingServerStreamingCall.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingServerStreamingCall.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 22 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsMetadataTrait.php:43 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsMetadataTrait.php:43-51 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsMetadataTrait.php:43-51 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsMetadataTrait.php:43-51 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsMetadataTrait.php:43-51 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsMetadataTrait.php:43-51 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsMetadataTrait.php:43-51 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsMetadataTrait.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsMetadataTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 9 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 · Duplicated block (8 lines × 6) · ×2
  • Duplicated block (8 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/LoggerFactory.php:43 — src/Google/Ads/GoogleAds/Lib/V20/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V21/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V23/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V24/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V25/LoggerFactory.php:43-50 | src/Google/Ads/GoogleAds/Lib/V26/LoggerFactory.php:43-50 — `src/Google/Ads/GoogleAds/Lib/V20/LoggerFactory.php` and `src/Google/Ads/GoogleAds/Lib/V21/LoggerFactory.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 8 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/LoggerFactory.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.
  • Duplicated block (8 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:104 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:104-111 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:104-111 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:104-111 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:104-111 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:104-111 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:104-111 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×2
  • Duplicated block (16 lines × 3) src/Google/Ads/GoogleAds/Lib/V20/AdsAssistantHeaderMiddleware.php:35 — src/Google/Ads/GoogleAds/Lib/V20/AdsAssistantHeaderMiddleware.php:35-50 | src/Google/Ads/GoogleAds/Lib/V21/AdsAssistantHeaderMiddleware.php:35-50 | src/Google/Ads/GoogleAds/Lib/V23/AdsAssistantHeaderMiddleware.php:35-50 — `src/Google/Ads/GoogleAds/Lib/V20/AdsAssistantHeaderMiddleware.php` and `src/Google/Ads/GoogleAds/Lib/V21/AdsAssistantHeaderMiddleware.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 16 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/AdsAssistantHeaderMiddleware.php:35` 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.
  • Duplicated block (16 lines × 3) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:1006 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:1006-1021 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:1198-1213 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:1100-1115 — before extracting anything, compare `examples/AdvancedOperations/AddPerformanceMaxCampaign.php` and `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 497 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (332 lines × 6) · ×2
  • Duplicated block (332 lines × 6) src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114 — src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114-1999 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignDraftServiceClient.php:110-441 | src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php:116-568 | src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php:114-1999 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignDraftServiceClient.php:110-441 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentServiceClient.php:116-568 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 5658 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114` 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. Note first that the copies are not typed on the same thing: `AddBatchJobOperationsRequest` names `Google\Ads\GoogleAds\V23\Services\AddBatchJobOperationsRequest` in one and `Google\Ads\GoogleAds\V24\Services\AddBatchJobOperationsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
  • Duplicated block (332 lines × 6) src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108 — src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108-1865 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignDraftServiceClient.php:104-435 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php:110-584 | src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php:108-1881 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignDraftServiceClient.php:104-435 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentServiceClient.php:110-584 — before extracting anything, compare `src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php` and `src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 5322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108` 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. Note first that the copies are not typed on the same thing: `AddBatchJobOperationsRequest` names `Google\Ads\GoogleAds\V25\Services\AddBatchJobOperationsRequest` in one and `Google\Ads\GoogleAds\V26\Services\AddBatchJobOperationsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (9 lines × 3) · ×2
  • Duplicated block (9 lines × 3) src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:115 — src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:115-123 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php:115-123 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsGapicClientTrait.php:115-123 — `src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php` and `src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 61 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
  • Duplicated block (9 lines × 3) src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:131 — src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:131-139 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php:131-139 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsGapicClientTrait.php:131-139 — `src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php` and `src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 61 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Edited copies of one member (3 members, 32+ corresponding lines) · ×2
  • Edited copies of one member (3 members, 32+ corresponding lines) examples/AdvancedOperations/AddDynamicPageFeedAsset.php:293 — examples/AdvancedOperations/AddDynamicPageFeedAsset.php:293-324 | examples/CampaignManagement/AddCampaignLabels.php:122-156 | examples/CampaignManagement/SetAdParameters.php:119-170 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 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, 32+ corresponding lines) examples/AccountManagement/LinkManagerToClient.php:137 — examples/AccountManagement/LinkManagerToClient.php:137-171 | examples/Remarketing/SetUpRemarketing.php:292-323 | examples/Remarketing/SetUpRemarketing.php:490-521 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 32 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 (27 corresponding lines) · ×2
  • Edited copy of a member (27 corresponding lines) examples/BasicOperations/UpdateAdGroup.php:118 — examples/BasicOperations/UpdateAdGroup.php:118-145 | examples/Remarketing/UpdateAudienceTargetRestriction.php:228-254 — These two members are one piece of code written twice and then edited apart: 27 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 (27 corresponding lines) examples/Targeting/AddCampaignTargetingCriteria.php:129 — examples/Targeting/AddCampaignTargetingCriteria.php:129-155 | examples/Targeting/AddDemographicTargetingCriteria.php:113-150 — These two members are one piece of code written twice and then edited apart: 27 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 · Duplicated block (19 lines × 2) · ×2
  • Duplicated block (19 lines × 2) examples/AdvancedOperations/AddSmartCampaign.php:148 — examples/AdvancedOperations/AddSmartCampaign.php:148-166 | examples/Remarketing/UploadEnhancedConversionsForLeads.php:107-125 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `examples/AdvancedOperations/AddSmartCampaign.php:148` 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.
  • Duplicated block (19 lines × 2) examples/BasicOperations/UpdateAdGroup.php:118 — examples/BasicOperations/UpdateAdGroup.php:118-136 | examples/Remarketing/UpdateAudienceTargetRestriction.php:228-246 — before extracting anything, compare `examples/BasicOperations/UpdateAdGroup.php` and `examples/Remarketing/UpdateAudienceTargetRestriction.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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.
D1 · Cyclomatic Complexity · FieldMasks.buildPaths (cyclomatic 41) · ×1
  • FieldMasks.buildPaths (cyclomatic 41) src/Google/Ads/GoogleAds/Util/FieldMasks.php:112 — FieldMasks.buildPaths has cyclomatic complexity 41 (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.
D17 · Explicit Debt · TodoComment · ×1
  • TodoComment src/Google/Ads/GoogleAds/Util/FieldMasks.php:379 — // TODO: We can remove this function when it's supported in google/gax-php: — source code is not a task system: move the work to your tracker and leave a reference instead (e.g. `// REF: #123`), so the task is planned where tasks live and the ticket links back to the code.
D2 · Cognitive Complexity · FieldMasks.buildPaths (cognitive 44) · ×1
  • FieldMasks.buildPaths (cognitive 44) src/Google/Ads/GoogleAds/Util/FieldMasks.php:112 — FieldMasks.buildPaths has cognitive complexity 44 (threshold 15). Drivers by points: if/else 9 (23 pts), boolean chains 12, ternaries 3 (5 pts), match/switch 1 (3 pts), loops 1 (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. This file is where this pass's cognitive complexity CONCENTRATES: src/Google/Ads/GoogleAds/Util/FieldMasks.php holds 2 of the 8 methods over the threshold — including the worst — and 31 of the 109 points over it (28%), 2.4× the next-largest file (src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php at 13). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D2 · Cognitive Complexity · FieldMasks.getFieldValue (cognitive 17) · ×1
  • FieldMasks.getFieldValue (cognitive 17) src/Google/Ads/GoogleAds/Util/FieldMasks.php:283 — FieldMasks.getFieldValue has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 2 (3 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. This file is where this pass's cognitive complexity CONCENTRATES: src/Google/Ads/GoogleAds/Util/FieldMasks.php holds 2 of the 8 methods over the threshold — including the worst — and 31 of the 109 points over it (28%), 2.4× the next-largest file (src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php at 13). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository.
D31 · IaC & Container Security · Medium IaC · ×1
  • REDACTED
D4 · Code Duplication · Duplicated block (89 lines × 6) · ×1
  • Duplicated block (89 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:381 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:381-469 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:381-469 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 134 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (48 lines × 6) · ×1
  • Duplicated block (48 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsResponseMetadataCallable.php:37 — src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V21/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V23/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V24/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V25/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 | src/Google/Ads/GoogleAds/Lib/V26/ServerStreamingGoogleAdsResponseMetadataCallable.php:37-84 — `src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsResponseMetadataCallable.php` and `src/Google/Ads/GoogleAds/Lib/V21/ServerStreamingGoogleAdsResponseMetadataCallable.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 48 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (47 lines × 6) · ×1
  • Duplicated block (47 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:149 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:149-195 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:149-195 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: `CreateCustomerClientRequest` names `Google\Ads\GoogleAds\V20\Services\CreateCustomerClientRequest` in one and `Google\Ads\GoogleAds\V21\Services\CreateCustomerClientRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (46 lines × 6) · ×1
  • Duplicated block (46 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsExceptionMiddleware.php:58 — src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V21/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V23/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V24/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V25/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 | src/Google/Ads/GoogleAds/Lib/V26/ServerStreamingGoogleAdsExceptionMiddleware.php:58-103 — `src/Google/Ads/GoogleAds/Lib/V20/ServerStreamingGoogleAdsExceptionMiddleware.php` and `src/Google/Ads/GoogleAds/Lib/V21/ServerStreamingGoogleAdsExceptionMiddleware.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 46 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (43 lines × 6) · ×1
  • Duplicated block (43 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:115 — src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V23/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V24/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V25/LogMessageFormatter.php:115-157 | src/Google/Ads/GoogleAds/Lib/V26/LogMessageFormatter.php:115-157 — `src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php` and `src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (33 lines × 6) · ×1
  • Duplicated block (33 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:89 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:89-121 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsClientBuilder.php:89-121 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 3 separate duplicated blocks between them, totalling at least 134 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (27 lines × 6) · ×1
  • Duplicated block (27 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsResponseMetadataCallable.php:50 — src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V21/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V23/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V24/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V25/UnaryGoogleAdsResponseMetadataCallable.php:50-76 | src/Google/Ads/GoogleAds/Lib/V26/UnaryGoogleAdsResponseMetadataCallable.php:50-76 — `src/Google/Ads/GoogleAds/Lib/V20/UnaryGoogleAdsResponseMetadataCallable.php` and `src/Google/Ads/GoogleAds/Lib/V21/UnaryGoogleAdsResponseMetadataCallable.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 27 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (20 lines × 6) · ×1
  • Duplicated block (20 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:80 — src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V23/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V24/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V25/LogMessageFormatter.php:80-99 | src/Google/Ads/GoogleAds/Lib/V26/LogMessageFormatter.php:80-99 — `src/Google/Ads/GoogleAds/Lib/V20/LogMessageFormatter.php` and `src/Google/Ads/GoogleAds/Lib/V21/LogMessageFormatter.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 81 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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 · Duplicated block (18 lines × 6) · ×1
  • Duplicated block (18 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:219 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:219-236 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:219-236 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Duplicated block (17 lines × 6) · ×1
  • Duplicated block (17 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:88 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:88-104 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php:88-104 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php:88-104 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.php:91-107 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsGapicClientTrait.php:91-107 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsGapicClientTrait.php:91-107 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 4 separate duplicated blocks between them, totalling at least 71 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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.
D4 · Code Duplication · Duplicated block (16 lines × 6) · ×1
  • Duplicated block (16 lines × 6) src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php:111 — src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V21/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V23/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V24/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V25/GoogleAdsErrors.php:111-126 | src/Google/Ads/GoogleAds/Util/V26/GoogleAdsErrors.php:111-126 — `src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php` and `src/Google/Ads/GoogleAds/Util/V21/GoogleAdsErrors.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 2 separate duplicated blocks between them, totalling at least 23 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: `FieldPathElement` names `Google\Ads\GoogleAds\V20\Errors\ErrorLocation\FieldPathElement` in one and `Google\Ads\GoogleAds\V21\Errors\ErrorLocation\FieldPathElement` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×1
  • Duplicated block (13 lines × 2) src/Google/Ads/GoogleAds/Lib/V25/CustomYouTubeVideoUploadServiceClient.php:40 — src/Google/Ads/GoogleAds/Lib/V25/CustomYouTubeVideoUploadServiceClient.php:40-52 | src/Google/Ads/GoogleAds/Lib/V26/CustomYouTubeVideoUploadServiceClient.php:40-52 — `src/Google/Ads/GoogleAds/Lib/V25/CustomYouTubeVideoUploadServiceClient.php` and `src/Google/Ads/GoogleAds/Lib/V26/CustomYouTubeVideoUploadServiceClient.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 13 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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.
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×1
  • Duplicated block (7 lines × 2) src/Google/Ads/GoogleAds/Util/ApiVersionSupport.php:92 — src/Google/Ads/GoogleAds/Util/ApiVersionSupport.php:92-98 | src/Google/Ads/GoogleAds/Util/ApiVersionSupport.php:100-106 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, `src/Google/Ads/GoogleAds/Util/ApiVersionSupport.php:97` calls `join` and `src/Google/Ads/GoogleAds/Util/ApiVersionSupport.php:90` 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.
D4 · Code Duplication · Duplicated block (137 lines × 6) · ×1
  • Duplicated block (137 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsCallLogger.php:69 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsCallLogger.php:69-205 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsCallLogger.php:69-205 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsCallLogger.php:69-205 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsCallLogger.php:69-205 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsCallLogger.php:69-205 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsCallLogger.php:69-205 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsCallLogger.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsCallLogger.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 137 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsCallLogger.php:69` 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.
D4 · Code Duplication · Duplicated block (29 lines × 6) · ×1
  • Duplicated block (29 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsException.php:45 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsException.php:45-73 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsException.php:45-73 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsException.php:45-73 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsException.php:45-73 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsException.php:45-73 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsException.php:45-73 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsException.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsException.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 29 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsException.php:45` 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. Note first that the copies are not typed on the same thing: `GoogleAdsFailure` names `Google\Ads\GoogleAds\V20\Errors\GoogleAdsFailure` in one and `Google\Ads\GoogleAds\V21\Errors\GoogleAdsFailure` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (23 lines × 6) · ×1
  • Duplicated block (23 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsFailuresUnaryCall.php:35 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsFailuresUnaryCall.php:35-57 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsFailuresUnaryCall.php:35-57 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsFailuresUnaryCall.php:35-57 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsFailuresUnaryCall.php:35-57 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsFailuresUnaryCall.php:35-57 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsFailuresUnaryCall.php:35-57 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsFailuresUnaryCall.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsFailuresUnaryCall.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 23 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsFailuresUnaryCall.php:35` 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. Note first that the copies are not typed on the same thing: `GoogleAdsFailures` names `Google\Ads\GoogleAds\Util\V20\GoogleAdsFailures` in one and `Google\Ads\GoogleAds\Util\V21\GoogleAdsFailures` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (63 lines × 6) · ×1
  • Duplicated block (63 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingInterceptor.php:37 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingInterceptor.php:37-99 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingInterceptor.php:37-99 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingInterceptor.php:37-99 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingInterceptor.php:37-99 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingInterceptor.php:37-99 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingInterceptor.php:37-99 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingInterceptor.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingInterceptor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 63 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingInterceptor.php:37` 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.
D4 · Code Duplication · Duplicated block (13 lines × 6) · ×1
  • Duplicated block (13 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingUnaryCall.php:44 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingUnaryCall.php:44-56 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingUnaryCall.php:44-56 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsLoggingUnaryCall.php:44-56 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsLoggingUnaryCall.php:44-56 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsLoggingUnaryCall.php:44-56 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsLoggingUnaryCall.php:44-56 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingUnaryCall.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsLoggingUnaryCall.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 13 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsLoggingUnaryCall.php:44` 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.
D4 · Code Duplication · Duplicated block (40 lines × 6) · ×1
  • Duplicated block (40 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsServerStreamDecorator.php:37 — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsServerStreamDecorator.php:37-76 | src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsServerStreamDecorator.php:37-76 | src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsServerStreamDecorator.php:37-76 | src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsServerStreamDecorator.php:37-76 | src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsServerStreamDecorator.php:37-76 | src/Google/Ads/GoogleAds/Lib/V26/GoogleAdsServerStreamDecorator.php:37-76 — `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsServerStreamDecorator.php` and `src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsServerStreamDecorator.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 40 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsServerStreamDecorator.php:37` 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.
D4 · Code Duplication · Duplicated block (59 lines × 6) · ×1
  • Duplicated block (59 lines × 6) src/Google/Ads/GoogleAds/Util/V20/GoogleAdsFailures.php:37 — src/Google/Ads/GoogleAds/Util/V20/GoogleAdsFailures.php:37-95 | src/Google/Ads/GoogleAds/Util/V21/GoogleAdsFailures.php:37-95 | src/Google/Ads/GoogleAds/Util/V23/GoogleAdsFailures.php:37-95 | src/Google/Ads/GoogleAds/Util/V24/GoogleAdsFailures.php:37-95 | src/Google/Ads/GoogleAds/Util/V25/GoogleAdsFailures.php:37-95 | src/Google/Ads/GoogleAds/Util/V26/GoogleAdsFailures.php:37-95 — `src/Google/Ads/GoogleAds/Util/V20/GoogleAdsFailures.php` and `src/Google/Ads/GoogleAds/Util/V21/GoogleAdsFailures.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 1 separate duplicated blocks between them, totalling at least 59 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at `src/Google/Ads/GoogleAds/Util/V20/GoogleAdsFailures.php:37` 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. Note first that the copies are not typed on the same thing: `GoogleAdsFailure` names `Google\Ads\GoogleAds\V20\Errors\GoogleAdsFailure` in one and `Google\Ads\GoogleAds\V21\Errors\GoogleAdsFailure` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (203 lines × 131) · ×1
  • Duplicated block (203 lines × 131) src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108 — src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignGoalConfigServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentArmServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupListingGroupFilterServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignGoalConfigServiceClient.php:100-320 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/SharedCriterionServiceClient.php:94-319 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/SharedCriterionServiceClient.php:94-319 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 7528 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108` 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. 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. Note first that the copies are not typed on the same thing: `ApplyRecommendationRequest` names `Google\Ads\GoogleAds\V23\Services\ApplyRecommendationRequest` in one and `Google\Ads\GoogleAds\V24\Services\ApplyRecommendationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (196 lines × 54) · ×1
  • Duplicated block (196 lines × 54) src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104 — src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V23/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V23/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V24/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V25/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V26/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 4567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104` 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. Note first that the copies are not typed on the same thing: `AppendLeadConversationRequest` names `Google\Ads\GoogleAds\V23\Services\AppendLeadConversationRequest` in one and `Google\Ads\GoogleAds\V24\Services\AppendLeadConversationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (326 lines × 4) · ×1
  • Duplicated block (326 lines × 4) src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102 — src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 11958 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102` 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. Note first that the copies are not typed on the same thing: `MutateAdGroupAdsRequest` names `Google\Ads\GoogleAds\V23\Services\MutateAdGroupAdsRequest` in one and `Google\Ads\GoogleAds\V24\Services\MutateAdGroupAdsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (186 lines × 255) · ×1
  • Duplicated block (186 lines × 255) src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108 — src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupBidModifierServiceClient.php:100-317 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/AdParameterServiceClient.php:100-310 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupListingGroupFilterServiceClient.php:100-294 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupSignalServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetServiceClient.php:102-319 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingDataExclusionServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V23/Services/Client/BillingSetupServiceClient.php:108-309 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignBidModifierServiceClient.php:100-316 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignConversionGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignGoalConfigServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignLifecycleGoalServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionActionServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionCustomVariableServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomConversionGoalServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerAssetServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerClientLinkServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerCustomizerServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerLifecycleGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerNegativeCriterionServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentArmServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/GoalServiceClient.php:100-296 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:104-310 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanAdGroupServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:103-308 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V23/Services/Client/UserListCustomerTypeServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupBidModifierServiceClient.php:100-317 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/AdParameterServiceClient.php:100-310 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupListingGroupFilterServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupSignalServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetServiceClient.php:102-319 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingDataExclusionServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V24/Services/Client/BillingSetupServiceClient.php:108-309 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignBidModifierServiceClient.php:100-316 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignConversionGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignGoalConfigServiceClient.php:100-320 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignLifecycleGoalServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionActionServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionCustomVariableServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomConversionGoalServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerAssetServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerClientLinkServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerCustomizerServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerLifecycleGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerNegativeCriterionServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerUserAccessServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:104-310 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanAdGroupServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:103-308 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/UserListCustomerTypeServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupBidModifierServiceClient.php:94-307 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V25/Services/Client/AdParameterServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupServiceClient.php:94-279 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupSignalServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetServiceClient.php:96-309 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingDataExclusionServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V25/Services/Client/BillingSetupServiceClient.php:102-299 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignBidModifierServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignConversionGoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionActionServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionCustomVariableServiceClient.php:94-289 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomConversionGoalServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerAssetServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerClientLinkServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerCustomizerServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerNegativeCriterionServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerUserAccessServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:98-300 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanAdGroupServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:97-298 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/SharedCriterionServiceClient.php:94-319 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V25/Services/Client/UserListCustomerTypeServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupBidModifierServiceClient.php:94-307 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V26/Services/Client/AdParameterServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupServiceClient.php:94-279 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupSignalServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetServiceClient.php:96-309 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingDataExclusionServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/BillingSetupServiceClient.php:102-299 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignBidModifierServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignConversionGoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionActionServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionCustomVariableServiceClient.php:94-289 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomConversionGoalServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerAssetServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerClientLinkServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerCustomizerServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerNegativeCriterionServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerUserAccessServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:98-300 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanAdGroupServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:97-298 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/SharedCriterionServiceClient.php:94-319 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/UserListCustomerTypeServiceClient.php:94-291 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 7528 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108` 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. 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. Note first that the copies are not typed on the same thing: `ApplyRecommendationRequest` names `Google\Ads\GoogleAds\V23\Services\ApplyRecommendationRequest` in one and `Google\Ads\GoogleAds\V24\Services\ApplyRecommendationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (287 lines × 19) · ×1
  • Duplicated block (287 lines × 19) src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100 — src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 13174 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100` 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. 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. Note first that the copies are not typed on the same thing: `EnablePMaxBrandGuidelinesRequest` names `Google\Ads\GoogleAds\V23\Services\EnablePMaxBrandGuidelinesRequest` in one and `Google\Ads\GoogleAds\V24\Services\EnablePMaxBrandGuidelinesRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (168 lines × 354) · ×1
  • Duplicated block (168 lines × 354) src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108 — src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupBidModifierServiceClient.php:100-317 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/AdParameterServiceClient.php:100-310 | src/Google/Ads/GoogleAds/V23/Services/Client/AdServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupListingGroupFilterServiceClient.php:100-294 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupSignalServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetServiceClient.php:102-319 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetSetServiceClient.php:100-269 | src/Google/Ads/GoogleAds/V23/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingDataExclusionServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingStrategyServiceClient.php:100-298 | src/Google/Ads/GoogleAds/V23/Services/Client/BillingSetupServiceClient.php:108-309 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignBidModifierServiceClient.php:100-316 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignBudgetServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignConversionGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignGoalConfigServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignGroupServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignLifecycleGoalServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionActionServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionCustomVariableServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomAudienceServiceClient.php:100-284 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomConversionGoalServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomInterestServiceClient.php:100-282 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerAssetServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerClientLinkServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerConversionGoalServiceClient.php:100-273 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerCustomizerServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerLifecycleGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerNegativeCriterionServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:100-280 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerUserAccessInvitationServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerUserAccessServiceClient.php:100-281 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomizerAttributeServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V23/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentArmServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/GoalServiceClient.php:100-296 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsFieldServiceClient.php:103-312 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:104-310 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanAdGroupServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:103-308 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V23/Services/Client/LabelServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V23/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationSubscriptionServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V23/Services/Client/RemarketingActionServiceClient.php:100-278 | src/Google/Ads/GoogleAds/V23/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/SharedSetServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V23/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V23/Services/Client/UserListCustomerTypeServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V23/Services/Client/UserListServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupBidModifierServiceClient.php:100-317 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/AdParameterServiceClient.php:100-310 | src/Google/Ads/GoogleAds/V24/Services/Client/AdServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupListingGroupFilterServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupSignalServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetServiceClient.php:102-319 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetSetServiceClient.php:100-269 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingDataExclusionServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingStrategyServiceClient.php:100-298 | src/Google/Ads/GoogleAds/V24/Services/Client/BillingSetupServiceClient.php:108-309 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignBidModifierServiceClient.php:100-316 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignBudgetServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignConversionGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignGoalConfigServiceClient.php:100-320 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignGroupServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignLifecycleGoalServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionActionServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionCustomVariableServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomAudienceServiceClient.php:100-284 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomConversionGoalServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomInterestServiceClient.php:100-282 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerAssetServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerClientLinkServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerConversionGoalServiceClient.php:100-273 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerCustomizerServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerLifecycleGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerNegativeCriterionServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:100-280 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerUserAccessInvitationServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerUserAccessServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomizerAttributeServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V24/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsFieldServiceClient.php:103-312 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:104-310 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanAdGroupServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:103-308 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V24/Services/Client/LabelServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V24/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V24/Services/Client/MultiPartyAuthReviewServiceClient.php:100-283 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationSubscriptionServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V24/Services/Client/RemarketingActionServiceClient.php:100-278 | src/Google/Ads/GoogleAds/V24/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/SharedSetServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V24/Services/Client/UserListCustomerTypeServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/UserListServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupBidModifierServiceClient.php:94-307 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V25/Services/Client/AdParameterServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupServiceClient.php:94-279 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupSignalServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetServiceClient.php:96-309 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetSetServiceClient.php:94-261 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingDataExclusionServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingStrategyServiceClient.php:94-290 | src/Google/Ads/GoogleAds/V25/Services/Client/BillingSetupServiceClient.php:102-299 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignBidModifierServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignBudgetServiceClient.php:94-281 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignConversionGoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignGroupServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionActionServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionCustomVariableServiceClient.php:94-289 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomAudienceServiceClient.php:94-276 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomConversionGoalServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomInterestServiceClient.php:94-274 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerAssetServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerClientLinkServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerConversionGoalServiceClient.php:94-265 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerCustomizerServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerNegativeCriterionServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:94-272 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerUserAccessInvitationServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerUserAccessServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomizerAttributeServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V25/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsFieldServiceClient.php:97-306 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:98-300 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanAdGroupServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:97-298 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V25/Services/Client/LabelServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V25/Services/Client/MultiPartyAuthReviewServiceClient.php:94-275 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationSubscriptionServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V25/Services/Client/RemarketingActionServiceClient.php:94-270 | src/Google/Ads/GoogleAds/V25/Services/Client/SharedCriterionServiceClient.php:94-319 | src/Google/Ads/GoogleAds/V25/Services/Client/SharedSetServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V25/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V25/Services/Client/UserListCustomerTypeServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/UserListServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupBidModifierServiceClient.php:94-307 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V26/Services/Client/AdParameterServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupServiceClient.php:94-279 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupSignalServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetServiceClient.php:96-309 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetSetServiceClient.php:94-261 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingDataExclusionServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingStrategyServiceClient.php:94-290 | src/Google/Ads/GoogleAds/V26/Services/Client/BillingSetupServiceClient.php:102-299 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignBidModifierServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignBudgetServiceClient.php:94-281 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignConversionGoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignGroupServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionActionServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionCustomVariableServiceClient.php:94-289 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomAudienceServiceClient.php:94-276 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomConversionGoalServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomInterestServiceClient.php:94-274 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerAssetServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerBudgetNetworkSettingServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerClientLinkServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerConversionGoalServiceClient.php:94-265 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerCustomizerServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerNegativeCriterionServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:94-272 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerUserAccessInvitationServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerUserAccessServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomizerAttributeServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V26/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsFieldServiceClient.php:97-306 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:98-300 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanAdGroupServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:97-298 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V26/Services/Client/LabelServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V26/Services/Client/MultiPartyAuthReviewServiceClient.php:94-275 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationSubscriptionServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V26/Services/Client/RemarketingActionServiceClient.php:94-270 | src/Google/Ads/GoogleAds/V26/Services/Client/SharedCriterionServiceClient.php:94-319 | src/Google/Ads/GoogleAds/V26/Services/Client/SharedSetServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V26/Services/Client/UserListCustomerTypeServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/UserListServiceClient.php:94-282 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 7528 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108` 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. 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. Note first that the copies are not typed on the same thing: `AppendLeadConversationRequest` names `Google\Ads\GoogleAds\V23\Services\AppendLeadConversationRequest` in one and `Google\Ads\GoogleAds\V24\Services\AppendLeadConversationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (215 lines × 36) · ×1
  • Duplicated block (215 lines × 36) src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103 — src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 6840 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103` 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. Note first that the copies are not typed on the same thing: `ApplyRecommendationRequest` names `Google\Ads\GoogleAds\V23\Services\ApplyRecommendationRequest` in one and `Google\Ads\GoogleAds\V24\Services\ApplyRecommendationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (398 lines × 4) · ×1
  • Duplicated block (398 lines × 4) src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116 — src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceInsightsServiceClient.php:110-521 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/AudienceInsightsServiceClient.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 3530 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116` 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. Note first that the copies are not typed on the same thing: `GenerateAudienceCompositionInsightsRequest` names `Google\Ads\GoogleAds\V23\Services\GenerateAudienceCompositionInsightsRequest` in one and `Google\Ads\GoogleAds\V24\Services\GenerateAudienceCompositionInsightsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (222 lines × 43) · ×1
  • Duplicated block (222 lines × 43) src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102 — src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V23/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 11292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102` 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. 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. Note first that the copies are not typed on the same thing: `ApplyRecommendationRequest` names `Google\Ads\GoogleAds\V23\Services\ApplyRecommendationRequest` in one and `Google\Ads\GoogleAds\V24\Services\ApplyRecommendationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (127 lines × 427) · ×1
  • Duplicated block (127 lines × 427) src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108 — src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupBidModifierServiceClient.php:100-317 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/AdParameterServiceClient.php:100-310 | src/Google/Ads/GoogleAds/V23/Services/Client/AdServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupListingGroupFilterServiceClient.php:100-294 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGroupSignalServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetServiceClient.php:102-319 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetSetServiceClient.php:100-269 | src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V23/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/AutomaticallyCreatedAssetRemovalServiceClient.php:93-233 | src/Google/Ads/GoogleAds/V23/Services/Client/BenchmarksServiceClient.php:106-381 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingDataExclusionServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V23/Services/Client/BiddingStrategyServiceClient.php:100-298 | src/Google/Ads/GoogleAds/V23/Services/Client/BillingSetupServiceClient.php:108-309 | src/Google/Ads/GoogleAds/V23/Services/Client/BrandSuggestionServiceClient.php:93-219 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignBidModifierServiceClient.php:100-316 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignBudgetServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignConversionGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignGoalConfigServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignGroupServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignLifecycleGoalServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V23/Services/Client/ContentCreatorInsightsServiceClient.php:98-269 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionActionServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionAdjustmentUploadServiceClient.php:93-230 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionCustomVariableServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomAudienceServiceClient.php:100-284 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomConversionGoalServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomInterestServiceClient.php:100-282 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerAssetServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerClientLinkServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerConversionGoalServiceClient.php:100-273 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerCustomizerServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerLifecycleGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerNegativeCriterionServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:100-280 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerUserAccessInvitationServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerUserAccessServiceClient.php:100-281 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomizerAttributeServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V23/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentArmServiceClient.php:100-321 | src/Google/Ads/GoogleAds/V23/Services/Client/GeoTargetConstantServiceClient.php:93-228 | src/Google/Ads/GoogleAds/V23/Services/Client/GoalServiceClient.php:100-296 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsFieldServiceClient.php:103-312 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V23/Services/Client/IdentityVerificationServiceClient.php:95-261 | src/Google/Ads/GoogleAds/V23/Services/Client/IncentiveServiceClient.php:96-245 | src/Google/Ads/GoogleAds/V23/Services/Client/InvoiceServiceClient.php:93-228 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:104-310 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanAdGroupServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:103-308 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanIdeaServiceClient.php:102-342 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordThemeConstantServiceClient.php:93-227 | src/Google/Ads/GoogleAds/V23/Services/Client/LabelServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V23/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V23/Services/Client/PaymentsAccountServiceClient.php:94-231 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V23/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationSubscriptionServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V23/Services/Client/RemarketingActionServiceClient.php:100-278 | src/Google/Ads/GoogleAds/V23/Services/Client/ReservationServiceClient.php:97-248 | src/Google/Ads/GoogleAds/V23/Services/Client/ShareablePreviewServiceClient.php:93-219 | src/Google/Ads/GoogleAds/V23/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V23/Services/Client/SharedSetServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V23/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V23/Services/Client/TravelAssetSuggestionServiceClient.php:93-222 | src/Google/Ads/GoogleAds/V23/Services/Client/UserDataServiceClient.php:98-236 | src/Google/Ads/GoogleAds/V23/Services/Client/UserListCustomerTypeServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V23/Services/Client/UserListServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V23/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountBudgetProposalServiceClient.php:108-333 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdLabelServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetServiceClient.php:100-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupBidModifierServiceClient.php:100-317 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionCustomizerServiceClient.php:100-318 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionLabelServiceClient.php:100-326 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/AdParameterServiceClient.php:100-310 | src/Google/Ads/GoogleAds/V24/Services/Client/AdServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupAssetServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupListingGroupFilterServiceClient.php:100-314 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGroupSignalServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetServiceClient.php:102-319 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetSetAssetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetSetServiceClient.php:100-269 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/AutomaticallyCreatedAssetRemovalServiceClient.php:93-233 | src/Google/Ads/GoogleAds/V24/Services/Client/BenchmarksServiceClient.php:106-381 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingDataExclusionServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:100-292 | src/Google/Ads/GoogleAds/V24/Services/Client/BiddingStrategyServiceClient.php:100-298 | src/Google/Ads/GoogleAds/V24/Services/Client/BillingSetupServiceClient.php:108-309 | src/Google/Ads/GoogleAds/V24/Services/Client/BrandSuggestionServiceClient.php:93-219 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetServiceClient.php:100-328 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignAssetSetServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignBidModifierServiceClient.php:100-316 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignBudgetServiceClient.php:100-289 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignConversionGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCustomizerServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignGoalConfigServiceClient.php:100-320 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignGroupServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignLabelServiceClient.php:100-325 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignLifecycleGoalServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignSharedSetServiceClient.php:100-335 | src/Google/Ads/GoogleAds/V24/Services/Client/ContentCreatorInsightsServiceClient.php:101-272 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionActionServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionAdjustmentUploadServiceClient.php:93-230 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionCustomVariableServiceClient.php:100-299 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionGoalCampaignConfigServiceClient.php:100-312 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleSetServiceClient.php:100-329 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomAudienceServiceClient.php:100-284 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomConversionGoalServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomInterestServiceClient.php:100-282 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerAssetServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerAssetSetServiceClient.php:100-308 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerClientLinkServiceClient.php:100-303 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerConversionGoalServiceClient.php:100-273 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerCustomizerServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerLabelServiceClient.php:104-323 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerLifecycleGoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerNegativeCriterionServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:100-280 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerUserAccessInvitationServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerUserAccessServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomizerAttributeServiceClient.php:100-270 | src/Google/Ads/GoogleAds/V24/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GeoTargetConstantServiceClient.php:93-228 | src/Google/Ads/GoogleAds/V24/Services/Client/GoalServiceClient.php:100-295 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsFieldServiceClient.php:103-312 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/IdentityVerificationServiceClient.php:95-261 | src/Google/Ads/GoogleAds/V24/Services/Client/IncentiveServiceClient.php:96-245 | src/Google/Ads/GoogleAds/V24/Services/Client/InvoiceServiceClient.php:93-228 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:104-310 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanAdGroupServiceClient.php:100-306 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:103-308 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanCampaignServiceClient.php:100-343 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanIdeaServiceClient.php:102-342 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordThemeConstantServiceClient.php:93-227 | src/Google/Ads/GoogleAds/V24/Services/Client/LabelServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V24/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V24/Services/Client/MultiPartyAuthReviewServiceClient.php:100-283 | src/Google/Ads/GoogleAds/V24/Services/Client/PaymentsAccountServiceClient.php:94-231 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V24/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationSubscriptionServiceClient.php:100-285 | src/Google/Ads/GoogleAds/V24/Services/Client/RemarketingActionServiceClient.php:100-278 | src/Google/Ads/GoogleAds/V24/Services/Client/ReservationServiceClient.php:97-248 | src/Google/Ads/GoogleAds/V24/Services/Client/ShareablePreviewServiceClient.php:100-226 | src/Google/Ads/GoogleAds/V24/Services/Client/SharedCriterionServiceClient.php:100-331 | src/Google/Ads/GoogleAds/V24/Services/Client/SharedSetServiceClient.php:100-293 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:101-281 | src/Google/Ads/GoogleAds/V24/Services/Client/TravelAssetSuggestionServiceClient.php:93-222 | src/Google/Ads/GoogleAds/V24/Services/Client/UserDataServiceClient.php:98-236 | src/Google/Ads/GoogleAds/V24/Services/Client/UserListCustomerTypeServiceClient.php:100-301 | src/Google/Ads/GoogleAds/V24/Services/Client/UserListServiceClient.php:100-290 | src/Google/Ads/GoogleAds/V24/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupBidModifierServiceClient.php:94-307 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V25/Services/Client/AdParameterServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AdServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupServiceClient.php:94-279 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGroupSignalServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetServiceClient.php:96-309 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetSetServiceClient.php:94-261 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V25/Services/Client/AutomaticallyCreatedAssetRemovalServiceClient.php:87-228 | src/Google/Ads/GoogleAds/V25/Services/Client/BenchmarksServiceClient.php:100-383 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingDataExclusionServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V25/Services/Client/BiddingStrategyServiceClient.php:94-290 | src/Google/Ads/GoogleAds/V25/Services/Client/BillingSetupServiceClient.php:102-299 | src/Google/Ads/GoogleAds/V25/Services/Client/BrandSuggestionServiceClient.php:87-213 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignBidModifierServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignBudgetServiceClient.php:94-281 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignConversionGoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignGroupServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V25/Services/Client/ContentCreatorInsightsServiceClient.php:95-268 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionActionServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionAdjustmentUploadServiceClient.php:87-224 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionCustomVariableServiceClient.php:94-289 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomAudienceServiceClient.php:94-276 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomConversionGoalServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomInterestServiceClient.php:94-274 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerAssetServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerClientLinkServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerConversionGoalServiceClient.php:94-265 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerCustomizerServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerNegativeCriterionServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:94-272 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerUserAccessInvitationServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerUserAccessServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomizerAttributeServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V25/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GeoTargetConstantServiceClient.php:87-222 | src/Google/Ads/GoogleAds/V25/Services/Client/GoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsFieldServiceClient.php:97-306 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V25/Services/Client/IdentityVerificationServiceClient.php:89-257 | src/Google/Ads/GoogleAds/V25/Services/Client/IncentiveServiceClient.php:90-241 | src/Google/Ads/GoogleAds/V25/Services/Client/InvoiceServiceClient.php:87-222 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:98-300 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanAdGroupServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:97-298 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanIdeaServiceClient.php:96-342 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordThemeConstantServiceClient.php:87-221 | src/Google/Ads/GoogleAds/V25/Services/Client/LabelServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V25/Services/Client/MultiPartyAuthReviewServiceClient.php:94-275 | src/Google/Ads/GoogleAds/V25/Services/Client/PaymentsAccountServiceClient.php:88-225 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V25/Services/Client/ReachPlanServiceClient.php:106-433 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationSubscriptionServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V25/Services/Client/RemarketingActionServiceClient.php:94-270 | src/Google/Ads/GoogleAds/V25/Services/Client/ReservationServiceClient.php:91-244 | src/Google/Ads/GoogleAds/V25/Services/Client/ShareablePreviewServiceClient.php:94-220 | src/Google/Ads/GoogleAds/V25/Services/Client/SharedCriterionServiceClient.php:94-319 | src/Google/Ads/GoogleAds/V25/Services/Client/SharedSetServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V25/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V25/Services/Client/TravelAssetSuggestionServiceClient.php:87-216 | src/Google/Ads/GoogleAds/V25/Services/Client/UserDataServiceClient.php:92-230 | src/Google/Ads/GoogleAds/V25/Services/Client/UserListCustomerTypeServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V25/Services/Client/UserListServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountBudgetProposalServiceClient.php:102-321 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdLabelServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupBidModifierServiceClient.php:94-307 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionCustomizerServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionLabelServiceClient.php:94-314 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupServiceClient.php:94-331 | src/Google/Ads/GoogleAds/V26/Services/Client/AdParameterServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AdServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupAssetServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupListingGroupFilterServiceClient.php:94-302 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupServiceClient.php:94-279 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGroupSignalServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetServiceClient.php:96-309 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetSetAssetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetSetServiceClient.php:94-261 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceServiceClient.php:94-317 | src/Google/Ads/GoogleAds/V26/Services/Client/AutomaticallyCreatedAssetRemovalServiceClient.php:87-228 | src/Google/Ads/GoogleAds/V26/Services/Client/BenchmarksServiceClient.php:100-383 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingDataExclusionServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingSeasonalityAdjustmentServiceClient.php:94-282 | src/Google/Ads/GoogleAds/V26/Services/Client/BiddingStrategyServiceClient.php:94-290 | src/Google/Ads/GoogleAds/V26/Services/Client/BillingSetupServiceClient.php:102-299 | src/Google/Ads/GoogleAds/V26/Services/Client/BrandSuggestionServiceClient.php:87-213 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetServiceClient.php:94-316 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignAssetSetServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignBidModifierServiceClient.php:94-306 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignBudgetServiceClient.php:94-281 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignConversionGoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCustomizerServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignGoalConfigServiceClient.php:94-308 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignGroupServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignLabelServiceClient.php:94-313 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignSharedSetServiceClient.php:94-323 | src/Google/Ads/GoogleAds/V26/Services/Client/ContentCreatorInsightsServiceClient.php:95-268 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionActionServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionAdjustmentUploadServiceClient.php:87-224 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionCustomVariableServiceClient.php:94-289 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionGoalCampaignConfigServiceClient.php:94-300 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleSetServiceClient.php:94-315 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomAudienceServiceClient.php:94-276 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomConversionGoalServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomInterestServiceClient.php:94-274 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerAssetServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerAssetSetServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerBudgetNetworkSettingServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerClientLinkServiceClient.php:94-293 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerConversionGoalServiceClient.php:94-265 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerCustomizerServiceClient.php:94-280 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerLabelServiceClient.php:98-311 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerNegativeCriterionServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerSkAdNetworkConversionValueSchemaServiceClient.php:94-272 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerUserAccessInvitationServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerUserAccessServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomizerAttributeServiceClient.php:94-262 | src/Google/Ads/GoogleAds/V26/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GeoTargetConstantServiceClient.php:87-222 | src/Google/Ads/GoogleAds/V26/Services/Client/GoalServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsFieldServiceClient.php:97-306 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 | src/Google/Ads/GoogleAds/V26/Services/Client/IdentityVerificationServiceClient.php:89-257 | src/Google/Ads/GoogleAds/V26/Services/Client/IncentiveServiceClient.php:90-241 | src/Google/Ads/GoogleAds/V26/Services/Client/InvoiceServiceClient.php:87-222 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanAdGroupKeywordServiceClient.php:98-300 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanAdGroupServiceClient.php:94-296 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignKeywordServiceClient.php:97-298 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanCampaignServiceClient.php:94-329 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanIdeaServiceClient.php:96-342 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordThemeConstantServiceClient.php:87-221 | src/Google/Ads/GoogleAds/V26/Services/Client/LabelServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/LocalServicesEligibilityServiceClient.php:88-216 | src/Google/Ads/GoogleAds/V26/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V26/Services/Client/MultiPartyAuthReviewServiceClient.php:94-275 | src/Google/Ads/GoogleAds/V26/Services/Client/PaymentsAccountServiceClient.php:88-225 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V26/Services/Client/ReachPlanServiceClient.php:106-433 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationSubscriptionServiceClient.php:94-277 | src/Google/Ads/GoogleAds/V26/Services/Client/RemarketingActionServiceClient.php:94-270 | src/Google/Ads/GoogleAds/V26/Services/Client/ReservationServiceClient.php:91-244 | src/Google/Ads/GoogleAds/V26/Services/Client/ShareablePreviewServiceClient.php:96-222 | src/Google/Ads/GoogleAds/V26/Services/Client/SharedCriterionServiceClient.php:94-319 | src/Google/Ads/GoogleAds/V26/Services/Client/SharedSetServiceClient.php:94-285 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/ThirdPartyAppAnalyticsLinkServiceClient.php:95-273 | src/Google/Ads/GoogleAds/V26/Services/Client/TravelAssetSuggestionServiceClient.php:87-216 | src/Google/Ads/GoogleAds/V26/Services/Client/UserDataServiceClient.php:98-236 | src/Google/Ads/GoogleAds/V26/Services/Client/UserListCustomerTypeServiceClient.php:94-291 | src/Google/Ads/GoogleAds/V26/Services/Client/UserListServiceClient.php:94-282 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdLabelServiceClient.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 7528 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AccountBudgetProposalServiceClient.php:108` 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. 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. Note first that the copies are not typed on the same thing: `AppendLeadConversationRequest` names `Google\Ads\GoogleAds\V23\Services\AppendLeadConversationRequest` in one and `Google\Ads\GoogleAds\V24\Services\AppendLeadConversationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (1886 lines × 2) · ×1
  • Duplicated block (1886 lines × 2) src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114 — src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114-1999 | src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php:114-1999 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 5658 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114` 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. Note first that the copies are not typed on the same thing: `AddBatchJobOperationsRequest` names `Google\Ads\GoogleAds\V23\Services\AddBatchJobOperationsRequest` in one and `Google\Ads\GoogleAds\V24\Services\AddBatchJobOperationsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (276 lines × 12) · ×1
  • Duplicated block (276 lines × 12) src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116 — src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V23/Services/Client/BenchmarksServiceClient.php:106-381 | src/Google/Ads/GoogleAds/V23/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V24/Services/Client/BenchmarksServiceClient.php:106-381 | src/Google/Ads/GoogleAds/V24/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V25/Services/Client/BenchmarksServiceClient.php:100-383 | src/Google/Ads/GoogleAds/V25/Services/Client/ReachPlanServiceClient.php:106-433 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V26/Services/Client/BenchmarksServiceClient.php:100-383 | src/Google/Ads/GoogleAds/V26/Services/Client/ReachPlanServiceClient.php:106-433 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/BenchmarksServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 2706 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116` 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. Note first that the copies are not typed on the same thing: `GenerateAudienceCompositionInsightsRequest` names `Google\Ads\GoogleAds\V23\Services\GenerateAudienceCompositionInsightsRequest` in one and `Google\Ads\GoogleAds\V24\Services\GenerateAudienceCompositionInsightsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (335 lines × 9) · ×1
  • Duplicated block (335 lines × 9) src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100 — src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 16938 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100` 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. 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. Note first that the copies are not typed on the same thing: `MutateCampaignCriteriaRequest` names `Google\Ads\GoogleAds\V23\Services\MutateCampaignCriteriaRequest` in one and `Google\Ads\GoogleAds\V24\Services\MutateCampaignCriteriaRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (373 lines × 4) · ×1
  • Duplicated block (373 lines × 4) src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103 — src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 16641 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103` 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. Note first that the copies are not typed on the same thing: `EnablePMaxBrandGuidelinesRequest` names `Google\Ads\GoogleAds\V23\Services\EnablePMaxBrandGuidelinesRequest` in one and `Google\Ads\GoogleAds\V24\Services\EnablePMaxBrandGuidelinesRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (150 lines × 82) · ×1
  • Duplicated block (150 lines × 82) src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104 — src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V23/Services/Client/BenchmarksServiceClient.php:106-381 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/ContentCreatorInsightsServiceClient.php:98-269 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V23/Services/Client/IncentiveServiceClient.php:96-245 | src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanIdeaServiceClient.php:102-342 | src/Google/Ads/GoogleAds/V23/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V23/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/ReservationServiceClient.php:97-248 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V23/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V24/Services/Client/AccountLinkServiceClient.php:104-322 | src/Google/Ads/GoogleAds/V24/Services/Client/AssetGenerationServiceClient.php:103-338 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V24/Services/Client/BenchmarksServiceClient.php:106-381 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/ContentCreatorInsightsServiceClient.php:101-272 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionUploadServiceClient.php:103-316 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerManagerLinkServiceClient.php:103-345 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V24/Services/Client/IncentiveServiceClient.php:96-245 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanIdeaServiceClient.php:102-342 | src/Google/Ads/GoogleAds/V24/Services/Client/LocalServicesLeadServiceClient.php:104-299 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkServiceClient.php:104-335 | src/Google/Ads/GoogleAds/V24/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/ReservationServiceClient.php:97-248 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSettingServiceClient.php:103-317 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V25/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V25/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V25/Services/Client/BenchmarksServiceClient.php:100-383 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/ContentCreatorInsightsServiceClient.php:95-268 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V25/Services/Client/IncentiveServiceClient.php:90-241 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanIdeaServiceClient.php:96-342 | src/Google/Ads/GoogleAds/V25/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V25/Services/Client/ReachPlanServiceClient.php:106-433 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/ReservationServiceClient.php:91-244 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/AccountLinkServiceClient.php:98-316 | src/Google/Ads/GoogleAds/V26/Services/Client/AssetGenerationServiceClient.php:97-330 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V26/Services/Client/BenchmarksServiceClient.php:100-383 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/ContentCreatorInsightsServiceClient.php:95-268 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionUploadServiceClient.php:97-310 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerManagerLinkServiceClient.php:97-337 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V26/Services/Client/IncentiveServiceClient.php:90-241 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanIdeaServiceClient.php:96-342 | src/Google/Ads/GoogleAds/V26/Services/Client/LocalServicesLeadServiceClient.php:98-293 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkServiceClient.php:98-327 | src/Google/Ads/GoogleAds/V26/Services/Client/ReachPlanServiceClient.php:106-433 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/ReservationServiceClient.php:91-244 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AssetGenerationServiceClient.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 4567 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AccountLinkServiceClient.php:104` 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. 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. Note first that the copies are not typed on the same thing: `AppendLeadConversationRequest` names `Google\Ads\GoogleAds\V23\Services\AppendLeadConversationRequest` in one and `Google\Ads\GoogleAds\V24\Services\AppendLeadConversationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (237 lines × 27) · ×1
  • Duplicated block (237 lines × 27) src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102 — src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupCriterionServiceClient.php:100-406 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/ConversionValueRuleServiceClient.php:100-346 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupCriterionServiceClient.php:94-388 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/ConversionValueRuleServiceClient.php:94-330 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 11292 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102` 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. 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. Note first that the copies are not typed on the same thing: `EnablePMaxBrandGuidelinesRequest` names `Google\Ads\GoogleAds\V23\Services\EnablePMaxBrandGuidelinesRequest` in one and `Google\Ads\GoogleAds\V24\Services\EnablePMaxBrandGuidelinesRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (238 lines × 18) · ×1
  • Duplicated block (238 lines × 18) src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106 — src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 7460 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106` 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. Note first that the copies are not typed on the same thing: `ApplyRecommendationRequest` names `Google\Ads\GoogleAds\V23\Services\ApplyRecommendationRequest` in one and `Google\Ads\GoogleAds\V24\Services\ApplyRecommendationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (222 lines × 24) · ×1
  • Duplicated block (222 lines × 24) src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106 — src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V23/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V23/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V23/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V23/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V24/Services/Client/CustomerServiceClient.php:106-374 | src/Google/Ads/GoogleAds/V24/Services/Client/DataLinkServiceClient.php:107-363 | src/Google/Ads/GoogleAds/V24/Services/Client/ProductLinkInvitationServiceClient.php:107-344 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/SmartCampaignSuggestServiceClient.php:106-347 | src/Google/Ads/GoogleAds/V24/Services/Client/YouTubeVideoUploadServiceClient.php:106-327 | src/Google/Ads/GoogleAds/V25/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V25/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V25/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSettingServiceClient.php:100-342 | src/Google/Ads/GoogleAds/V25/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 | src/Google/Ads/GoogleAds/V26/Services/Client/CustomerServiceClient.php:100-368 | src/Google/Ads/GoogleAds/V26/Services/Client/DataLinkServiceClient.php:101-359 | src/Google/Ads/GoogleAds/V26/Services/Client/ProductLinkInvitationServiceClient.php:101-338 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSettingServiceClient.php:100-352 | src/Google/Ads/GoogleAds/V26/Services/Client/SmartCampaignSuggestServiceClient.php:100-341 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/DataLinkServiceClient.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 4877 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/CustomerServiceClient.php:106` 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. Note first that the copies are not typed on the same thing: `ApplyRecommendationRequest` names `Google\Ads\GoogleAds\V23\Services\ApplyRecommendationRequest` in one and `Google\Ads\GoogleAds\V24\Services\ApplyRecommendationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (453 lines × 2) · ×1
  • Duplicated block (453 lines × 2) src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php:116 — src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php:116-568 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentServiceClient.php:116-568 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 4225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php:116` 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. Note first that the copies are not typed on the same thing: `EndExperimentRequest` names `Google\Ads\GoogleAds\V23\Services\EndExperimentRequest` in one and `Google\Ads\GoogleAds\V24\Services\EndExperimentRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (210 lines × 8) · ×1
  • Duplicated block (210 lines × 8) src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsFieldServiceClient.php:103 — src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsFieldServiceClient.php:103-312 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsFieldServiceClient.php:103-312 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsFieldServiceClient.php:97-306 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsFieldServiceClient.php:97-306 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsFieldServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 5646 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsFieldServiceClient.php:103` 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. Note first that the copies are not typed on the same thing: `GetGoogleAdsFieldRequest` names `Google\Ads\GoogleAds\V23\Services\GetGoogleAdsFieldRequest` in one and `Google\Ads\GoogleAds\V24\Services\GetGoogleAdsFieldRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (1754 lines × 4) · ×1
  • Duplicated block (1754 lines × 4) src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106 — src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 20702 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106` 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. Note first that the copies are not typed on the same thing: `MutateGoogleAdsRequest` names `Google\Ads\GoogleAds\V23\Services\MutateGoogleAdsRequest` in one and `Google\Ads\GoogleAds\V24\Services\MutateGoogleAdsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (167 lines × 8) · ×1
  • Duplicated block (167 lines × 8) src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102 — src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V23/Services/Client/IdentityVerificationServiceClient.php:95-261 | src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php:102-434 | src/Google/Ads/GoogleAds/V24/Services/Client/IdentityVerificationServiceClient.php:95-261 | src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V25/Services/Client/IdentityVerificationServiceClient.php:89-257 | src/Google/Ads/GoogleAds/V26/Services/Client/AdGroupAdServiceClient.php:96-421 | src/Google/Ads/GoogleAds/V26/Services/Client/IdentityVerificationServiceClient.php:89-257 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/AdGroupAdServiceClient.php` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 11958 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:102` 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. Note first that the copies are not typed on the same thing: `GetIdentityVerificationRequest` names `Google\Ads\GoogleAds\V23\Services\GetIdentityVerificationRequest` in one and `Google\Ads\GoogleAds\V24\Services\GetIdentityVerificationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (241 lines × 4) · ×1
  • Duplicated block (241 lines × 4) src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanIdeaServiceClient.php:102 — src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanIdeaServiceClient.php:102-342 | src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanIdeaServiceClient.php:102-342 | src/Google/Ads/GoogleAds/V25/Services/Client/KeywordPlanIdeaServiceClient.php:96-342 | src/Google/Ads/GoogleAds/V26/Services/Client/KeywordPlanIdeaServiceClient.php:96-342 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanIdeaServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/KeywordPlanIdeaServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 2541 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/KeywordPlanIdeaServiceClient.php:102` 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. Note first that the copies are not typed on the same thing: `GenerateAdGroupThemesRequest` names `Google\Ads\GoogleAds\V23\Services\GenerateAdGroupThemesRequest` in one and `Google\Ads\GoogleAds\V24\Services\GenerateAdGroupThemesRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (306 lines × 6) · ×1
  • Duplicated block (306 lines × 6) src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114 — src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114-1999 | src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php:116-568 | src/Google/Ads/GoogleAds/V23/Services/Client/OfflineUserDataJobServiceClient.php:110-415 | src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php:114-1999 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentServiceClient.php:116-568 | src/Google/Ads/GoogleAds/V24/Services/Client/OfflineUserDataJobServiceClient.php:110-415 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/BatchJobServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 5658 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:114` 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. Note first that the copies are not typed on the same thing: `AddBatchJobOperationsRequest` names `Google\Ads\GoogleAds\V23\Services\AddBatchJobOperationsRequest` in one and `Google\Ads\GoogleAds\V24\Services\AddBatchJobOperationsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (318 lines × 8) · ×1
  • Duplicated block (318 lines × 8) src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116 — src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V23/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V24/Services/Client/AudienceInsightsServiceClient.php:116-513 | src/Google/Ads/GoogleAds/V24/Services/Client/ReachPlanServiceClient.php:112-429 | src/Google/Ads/GoogleAds/V25/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V25/Services/Client/ReachPlanServiceClient.php:106-433 | src/Google/Ads/GoogleAds/V26/Services/Client/AudienceInsightsServiceClient.php:110-521 | src/Google/Ads/GoogleAds/V26/Services/Client/ReachPlanServiceClient.php:106-433 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/ReachPlanServiceClient.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 3118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:116` 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. Note first that the copies are not typed on the same thing: `GenerateAudienceCompositionInsightsRequest` names `Google\Ads\GoogleAds\V23\Services\GenerateAudienceCompositionInsightsRequest` in one and `Google\Ads\GoogleAds\V24\Services\GenerateAudienceCompositionInsightsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (306 lines × 4) · ×1
  • Duplicated block (306 lines × 4) src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106 — src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php:106-415 | src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:100-405 | src/Google/Ads/GoogleAds/V26/Services/Client/RecommendationServiceClient.php:100-405 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php` and `src/Google/Ads/GoogleAds/V24/Services/Client/RecommendationServiceClient.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 11534 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:106` 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. Note first that the copies are not typed on the same thing: `ApplyRecommendationRequest` names `Google\Ads\GoogleAds\V23\Services\ApplyRecommendationRequest` in one and `Google\Ads\GoogleAds\V24\Services\ApplyRecommendationRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (287 lines × 15) · ×1
  • Duplicated block (287 lines × 15) src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100 — src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignCriterionServiceClient.php:100-452 | src/Google/Ads/GoogleAds/V24/Services/Client/CampaignServiceClient.php:103-489 | src/Google/Ads/GoogleAds/V24/Services/Client/ExperimentArmServiceClient.php:100-400 | src/Google/Ads/GoogleAds/V24/Services/Client/GoogleAdsServiceClient.php:106-1987 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:97-469 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignCriterionServiceClient.php:94-428 | src/Google/Ads/GoogleAds/V26/Services/Client/CampaignServiceClient.php:97-487 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentArmServiceClient.php:94-380 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 — before extracting anything, compare `src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php` and `src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php` as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 15056 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:100` 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. 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. Note first that the copies are not typed on the same thing: `EnablePMaxBrandGuidelinesRequest` names `Google\Ads\GoogleAds\V23\Services\EnablePMaxBrandGuidelinesRequest` in one and `Google\Ads\GoogleAds\V24\Services\EnablePMaxBrandGuidelinesRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (1758 lines × 2) · ×1
  • Duplicated block (1758 lines × 2) src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108 — src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108-1865 | src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php:108-1881 — before extracting anything, compare `src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php` and `src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 5322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108` 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. Note first that the copies are not typed on the same thing: `AddBatchJobOperationsRequest` names `Google\Ads\GoogleAds\V25\Services\AddBatchJobOperationsRequest` in one and `Google\Ads\GoogleAds\V26\Services\AddBatchJobOperationsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (475 lines × 2) · ×1
  • Duplicated block (475 lines × 2) src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php:110 — src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php:110-584 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentServiceClient.php:110-584 — before extracting anything, compare `src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php` and `src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 4023 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php:110` 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. Note first that the copies are not typed on the same thing: `EndExperimentRequest` names `Google\Ads\GoogleAds\V25\Services\EndExperimentRequest` in one and `Google\Ads\GoogleAds\V26\Services\EndExperimentRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (1754 lines × 2) · ×1
  • Duplicated block (1754 lines × 2) src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100 — src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100-1853 | src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php:117-1897 — before extracting anything, compare `src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php` and `src/Google/Ads/GoogleAds/V26/Services/Client/GoogleAdsServiceClient.php` as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 22483 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:100` 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. Note first that the copies are not typed on the same thing: `MutateGoogleAdsRequest` names `Google\Ads\GoogleAds\V25\Services\MutateGoogleAdsRequest` in one and `Google\Ads\GoogleAds\V26\Services\MutateGoogleAdsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (308 lines × 6) · ×1
  • Duplicated block (308 lines × 6) src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108 — src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108-1865 | src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php:110-584 | src/Google/Ads/GoogleAds/V25/Services/Client/OfflineUserDataJobServiceClient.php:104-411 | src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php:108-1881 | src/Google/Ads/GoogleAds/V26/Services/Client/ExperimentServiceClient.php:110-584 | src/Google/Ads/GoogleAds/V26/Services/Client/OfflineUserDataJobServiceClient.php:110-417 — before extracting anything, compare `src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php` and `src/Google/Ads/GoogleAds/V26/Services/Client/BatchJobServiceClient.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 5322 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:108` 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. Note first that the copies are not typed on the same thing: `AddBatchJobOperationsRequest` names `Google\Ads\GoogleAds\V25\Services\AddBatchJobOperationsRequest` in one and `Google\Ads\GoogleAds\V26\Services\AddBatchJobOperationsRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (222 lines × 2) · ×1
  • Duplicated block (222 lines × 2) src/Google/Ads/GoogleAds/V25/Services/Client/YouTubeVideoUploadServiceClient.php:101 — src/Google/Ads/GoogleAds/V25/Services/Client/YouTubeVideoUploadServiceClient.php:101-322 | src/Google/Ads/GoogleAds/V26/Services/Client/YouTubeVideoUploadServiceClient.php:101-322 — before extracting anything, compare `src/Google/Ads/GoogleAds/V25/Services/Client/YouTubeVideoUploadServiceClient.php` and `src/Google/Ads/GoogleAds/V26/Services/Client/YouTubeVideoUploadServiceClient.php` as WHOLE FILES: 94% of the shorter file's lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it — treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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/Google/Ads/GoogleAds/V25/Services/Client/YouTubeVideoUploadServiceClient.php:101` 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. Note first that the copies are not typed on the same thing: `CreateYouTubeVideoUploadRequest` names `Google\Ads\GoogleAds\V25\Services\CreateYouTubeVideoUploadRequest` in one and `Google\Ads\GoogleAds\V26\Services\CreateYouTubeVideoUploadRequest` in another — different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract.
D4 · Code Duplication · Duplicated block (11 lines × 6) · ×1
  • Duplicated block (11 lines × 6) src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:79 — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:79-89 | src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php:79-89 | src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php:79-89 | src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.php:79-89 | src/Google/Ads/GoogleAds/Lib/V25/InfoRedactor.php:79-89 | src/Google/Ads/GoogleAds/Lib/V26/InfoRedactor.php:79-89 — `src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php` and `src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php` are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other — this scan matched 8 separate duplicated blocks between them, totalling at least 135 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own.
D4 · Code Duplication · Edited copy of a member (104 corresponding lines) · ×1
  • Edited copy of a member (104 corresponding lines) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:560 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:560-688 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:697-801 — These two members are one piece of code written twice and then edited apart: 104 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 (96 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (96 members, 50+ identical tokens) examples/AccountManagement/CreateCustomer.php:49 — examples/AccountManagement/CreateCustomer.php:49-91 | examples/AccountManagement/GetAccountHierarchy.php:66-116 | examples/AccountManagement/GetChangeDetails.php:54-96 | examples/AccountManagement/GetChangeSummary.php:49-91 | examples/AccountManagement/InviteUserWithAccessRole.php:55-101 | examples/AccountManagement/LinkManagerToClient.php:56-90 | examples/AccountManagement/ListAccessibleCustomers.php:45-79 | examples/AccountManagement/UpdateUserAccess.php:57-104 | examples/AccountManagement/VerifyAdvertiserIdentity.php:51-93 | examples/AdvancedOperations/AddAdCustomizer.php:63-111 | examples/AdvancedOperations/AddAdGroupBidModifier.php:54-104 | examples/AdvancedOperations/AddAppCampaign.php:84-131 | examples/AdvancedOperations/AddBiddingDataExclusion.php:56-107 | examples/AdvancedOperations/AddBiddingSeasonalityAdjustment.php:57-110 | examples/AdvancedOperations/AddDisplayUploadAd.php:61-109 | examples/AdvancedOperations/AddDynamicPageFeedAsset.php:69-119 | examples/AdvancedOperations/AddDynamicSearchAds.php:80-126 | examples/AdvancedOperations/AddPerformanceMaxCampaign.php:115-170 | examples/AdvancedOperations/AddResponsiveSearchAdWithAdCustomizer.php:70-121 | examples/AdvancedOperations/AddSmartCampaign.php:128-198 | examples/AdvancedOperations/CreateAndAttachSharedKeywordSet.php:60-108 | examples/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php:53-101 | examples/AdvancedOperations/GetAdGroupBidModifiers.php:51-99 | examples/AdvancedOperations/UploadVideo.php:54-98 | examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:61-111 | examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:64-112 | examples/Assets/AddCall.php:65-117 | examples/Assets/AddHotelCallout.php:58-106 | examples/Assets/AddLeadFormAsset.php:63-111 | examples/Assets/AddPrices.php:57-103 | examples/Assets/AddSiteLinks.php:56-102 | examples/BasicOperations/AddAdGroups.php:50-94 | examples/BasicOperations/AddCampaigns.php:56-99 | examples/BasicOperations/GetCampaigns.php:46-89 | examples/BasicOperations/GetResponsiveSearchAds.php:54-98 | examples/BasicOperations/PauseAd.php:52-98 | examples/BasicOperations/RemoveCampaign.php:49-93 | examples/BasicOperations/SearchForGoogleAdsFields.php:51-93 | examples/BasicOperations/UpdateAdGroup.php:53-99 | examples/BasicOperations/UpdateCampaign.php:52-96 | examples/BasicOperations/UpdateResponsiveSearchAd.php:55-99 | examples/Billing/AddAccountBudgetProposal.php:52-96 | examples/Billing/AddBillingSetup.php:74-120 | examples/Billing/GetInvoices.php:52-97 | examples/CampaignManagement/AddCampaignLabels.php:51-103 | examples/CampaignManagement/AddCompleteCampaignsUsingBatchJob.php:94-141 | examples/CampaignManagement/CreateExperiment.php:62-111 | examples/CampaignManagement/GetAllDisapprovedAds.php:52-101 | examples/CampaignManagement/SetAdParameters.php:50-101 | examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:53-105 | examples/CampaignManagement/ValidateAd.php:59-107 | examples/ErrorHandling/HandleKeywordPolicyViolations.php:64-114 | examples/ErrorHandling/HandlePartialFailure.php:61-110 | examples/ErrorHandling/HandleRateExceededError.php:69-117 | examples/ErrorHandling/HandleResponsiveSearchAdPolicyViolations.php:60-108 | examples/Misc/CampaignReportToCsv.php:51-99 | examples/Misc/SetCustomClientTimeouts.php:55-102 | examples/Misc/UploadImageAsset.php:51-98 | examples/Planning/ForecastReach.php:66-109 | examples/Planning/GenerateForecastMetrics.php:59-101 | examples/Planning/GenerateHistoricalMetrics.php:54-96 | examples/Planning/GenerateKeywordIdeas.php:65-117 | examples/Planning/GetAdGroupCriterionCpcBidSimulations.php:50-95 | examples/Recommendations/DetectAndApplyRecommendations.php:63-105 | examples/Recommendations/DismissRecommendation.php:52-96 | examples/Remarketing/AddConversionAction.php:52-99 | examples/Remarketing/AddConversionBasedUserList.php:54-104 | examples/Remarketing/AddCustomAudience.php:54-101 | examples/Remarketing/AddCustomerMatchUserList.php:101-165 | examples/Remarketing/AddDynamicRemarketingAsset.php:62-110 | examples/Remarketing/AddFlexibleRuleUserList.php:61-108 | examples/Remarketing/AddLogicalUserList.php:56-106 | examples/Remarketing/SetUpAdvancedRemarketing.php:65-112 | examples/Remarketing/SetUpRemarketing.php:85-138 | examples/Remarketing/UpdateAudienceTargetRestriction.php:56-104 | examples/Remarketing/UploadCallConversion.php:63-130 | examples/Remarketing/UploadConversionAdjustment.php:64-121 | examples/Remarketing/UploadEnhancedConversionsForLeads.php:78-165 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:65-120 | examples/Remarketing/UploadOfflineConversion.php:75-146 | examples/Remarketing/UploadStoreSalesTransactions.php:143-225 | examples/ShoppingAds/AddListingScope.php:68-116 | examples/ShoppingAds/AddPerformanceMaxProductListingGroupTree.php:80-134 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:134-192 | examples/ShoppingAds/AddShoppingProductAd.php:80-132 | examples/ShoppingAds/AddShoppingProductListingGroupTree.php:70-122 | examples/ShoppingAds/GetProductCategoryConstants.php:48-95 | examples/Targeting/AddCampaignTargetingCriteria.php:62-110 | examples/Targeting/AddCustomerNegativeCriteria.php:51-93 | examples/Targeting/AddDemographicTargetingCriteria.php:54-98 | examples/Targeting/GetGeoTargetConstantsByNames.php:55-102 | examples/Travel/AddHotelAd.php:81-132 | examples/Travel/AddHotelAdGroupBidModifiers.php:53-102 | examples/Travel/AddHotelListingGroupTree.php:85-136 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:153-202 | examples/Travel/AddThingsToDoAd.php:75-124 — These 96 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 96 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 96 times.
D4 · Code Duplication · Members sharing a duplicated core (7 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (7 members, 50+ identical tokens) examples/AdvancedOperations/AddAdCustomizer.php:351 — examples/AdvancedOperations/AddAdCustomizer.php:351-403 | examples/AdvancedOperations/AddAppCampaign.php:443-490 | examples/AdvancedOperations/AddDisplayUploadAd.php:203-240 | examples/AdvancedOperations/AddDynamicSearchAds.php:309-340 | examples/ShoppingAds/AddShoppingProductAd.php:367-397 | examples/Travel/AddHotelAd.php:356-393 | examples/Travel/AddThingsToDoAd.php:336-365 — These 7 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 7 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 7 times.
D4 · Code Duplication · Members sharing a duplicated core (5 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (5 members, 50+ identical tokens) examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:203 — examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:203-234 | examples/BasicOperations/AddCampaigns.php:179-199 | examples/ShoppingAds/AddShoppingProductAd.php:191-220 | examples/Travel/AddHotelAd.php:176-207 | examples/Travel/AddThingsToDoAd.php:165-197 — These 5 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 5 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 5 times.
D4 · Code Duplication · Members sharing a duplicated core (4 members, 50+ identical tokens) · ×1
  • Members sharing a duplicated core (4 members, 50+ identical tokens) examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:254 — examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:254-298 | examples/ShoppingAds/AddShoppingProductAd.php:240-295 | examples/Travel/AddHotelAd.php:230-284 | examples/Travel/AddThingsToDoAd.php:218-266 — These 4 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 4 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 4 times.
D4 · Code Duplication · Edited copy of a member (55 corresponding lines) · ×1
  • Edited copy of a member (55 corresponding lines) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:196 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:196-250 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:216-282 — These two members are one piece of code written twice and then edited apart: 55 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 (50 corresponding lines) · ×1
  • Edited copy of a member (50 corresponding lines) examples/Remarketing/AddCustomerMatchUserList.php:562 — examples/Remarketing/AddCustomerMatchUserList.php:562-613 | examples/Remarketing/UploadStoreSalesTransactions.php:722-771 — These two members are one piece of code written twice and then edited apart: 50 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 (40 corresponding lines) · ×1
  • Edited copy of a member (40 corresponding lines) examples/Misc/SetCustomClientTimeouts.php:128 — examples/Misc/SetCustomClientTimeouts.php:128-167 | examples/Misc/SetCustomClientTimeouts.php:180-232 — These two members are one piece of code written twice and then edited apart: 40 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 (52 corresponding lines) · ×1
  • Edited copy of a member (52 corresponding lines) examples/Travel/AddHotelListingGroupTree.php:238 — examples/Travel/AddHotelListingGroupTree.php:238-291 | examples/Travel/AddHotelListingGroupTree.php:316-367 — These two members are one piece of code written twice and then edited apart: 52 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 (34 corresponding lines) · ×1
  • Edited copy of a member (34 corresponding lines) examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:203 — examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:203-236 | examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:253-295 — These two members are one piece of code written twice and then edited apart: 34 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, 43+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 43+ corresponding lines) examples/AdvancedOperations/AddAdCustomizer.php:269 — examples/AdvancedOperations/AddAdCustomizer.php:269-326 | examples/BasicOperations/AddAdGroups.php:109-151 | examples/Travel/AddHotelAdGroupBidModifiers.php:118-181 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 43 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 (4 members, 43+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 43+ corresponding lines) examples/Remarketing/AddConversionBasedUserList.php:120 — examples/Remarketing/AddConversionBasedUserList.php:120-162 | examples/Remarketing/AddFlexibleRuleUserList.php:124-198 | examples/Remarketing/AddLogicalUserList.php:124-171 | examples/Remarketing/SetUpRemarketing.php:198-271 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 43 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.
D4 · Code Duplication · Edited copies of one member (3 members, 26+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 26+ corresponding lines) examples/AdvancedOperations/AddAdGroupBidModifier.php:124 — examples/AdvancedOperations/AddAdGroupBidModifier.php:124-149 | examples/Remarketing/AddConversionAction.php:112-152 | examples/Targeting/AddCustomerNegativeCriteria.php:107-144 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 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 (29 corresponding lines) · ×1
  • Edited copy of a member (29 corresponding lines) examples/Assets/AddHotelCallout.php:196 — examples/Assets/AddHotelCallout.php:196-224 | examples/Assets/AddSiteLinks.php:238-267 — These two members are one piece of code written twice and then edited apart: 29 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, 28+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 28+ corresponding lines) examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:126 — examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:126-157 | examples/Remarketing/SetUpRemarketing.php:540-567 | examples/ShoppingAds/AddListingScope.php:137-207 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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 (4 members, 28+ corresponding lines) · ×1
  • Edited copies of one member (4 members, 28+ corresponding lines) examples/AdvancedOperations/AddDynamicPageFeedAsset.php:385 — examples/AdvancedOperations/AddDynamicPageFeedAsset.php:385-422 | examples/AdvancedOperations/AddDynamicSearchAds.php:356-398 | examples/Remarketing/SetUpRemarketing.php:343-370 | examples/ShoppingAds/AddShoppingProductAd.php:420-450 — These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 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.
D4 · Code Duplication · Edited copies of one member (3 members, 17+ corresponding lines) · ×1
  • Edited copies of one member (3 members, 17+ corresponding lines) examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:319 — examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:319-344 | examples/BasicOperations/UpdateCampaign.php:112-138 | examples/CampaignManagement/CreateExperiment.php:257-273 — These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 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 (20 corresponding lines) · ×1
  • Edited copy of a member (20 corresponding lines) examples/Assets/AddCall.php:231 — examples/Assets/AddCall.php:231-250 | examples/Assets/AddPrices.php:213-233 — These two members are one piece of code written twice and then edited apart: 20 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 (26 corresponding lines) · ×1
  • Edited copy of a member (26 corresponding lines) examples/AccountManagement/UpdateUserAccess.php:189 — examples/AccountManagement/UpdateUserAccess.php:189-214 | examples/Billing/AddAccountBudgetProposal.php:113-155 — These two members are one piece of code written twice and then edited apart: 26 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) examples/Remarketing/AddCustomerMatchUserList.php:678 — examples/Remarketing/AddCustomerMatchUserList.php:678-686 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:368-376 — 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 · Duplicated block (119 lines × 2) · ×1
  • Duplicated block (119 lines × 2) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:830 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:830-948 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:941-1059 — before extracting anything, compare `examples/AdvancedOperations/AddPerformanceMaxCampaign.php` and `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 497 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (85 lines × 2) · ×1
  • Duplicated block (85 lines × 2) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:602 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:602-686 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:713-797 — before extracting anything, compare `examples/AdvancedOperations/AddPerformanceMaxCampaign.php` and `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 497 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (53–59 lines × 2) · ×1
  • Duplicated block (53–59 lines × 2) examples/Remarketing/AddCustomerMatchUserList.php:478 — examples/Remarketing/AddCustomerMatchUserList.php:478-530 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:211-269 — before extracting anything, compare `examples/Remarketing/AddCustomerMatchUserList.php` and `examples/Remarketing/UploadEnhancedConversionsForWeb.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 137 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 · Duplicated block (35–58 lines × 3) · ×1
  • Duplicated block (35–58 lines × 3) examples/Remarketing/AddFlexibleRuleUserList.php:159 — examples/Remarketing/AddFlexibleRuleUserList.php:159-193 | examples/Remarketing/SetUpAdvancedRemarketing.php:245-282 | examples/Remarketing/SetUpRemarketing.php:209-266 — before extracting anything, compare `examples/Remarketing/AddFlexibleRuleUserList.php` and `examples/Remarketing/SetUpAdvancedRemarketing.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 169 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/Remarketing/AddFlexibleRuleUserList.php:159` 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.
D4 · Code Duplication · Duplicated block (39–43 lines × 2) · ×1
  • Duplicated block (39–43 lines × 2) examples/ShoppingAds/AddShoppingProductListingGroupTree.php:159 — examples/ShoppingAds/AddShoppingProductListingGroupTree.php:159-197 | examples/ShoppingAds/AddShoppingProductListingGroupTree.php:227-269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `examples/ShoppingAds/AddShoppingProductListingGroupTree.php:227` 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.
D4 · Code Duplication · Duplicated block (21–41 lines × 2) · ×1
  • Duplicated block (21–41 lines × 2) examples/AdvancedOperations/AddAppCampaign.php:271 — examples/AdvancedOperations/AddAppCampaign.php:271-291 | examples/AdvancedOperations/AddDynamicSearchAds.php:206-246 — before extracting anything, compare `examples/AdvancedOperations/AddAppCampaign.php` and `examples/AdvancedOperations/AddDynamicSearchAds.php` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/AdvancedOperations/AddAppCampaign.php:271` 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.
D4 · Code Duplication · Duplicated block (19–38 lines × 4) · ×1
  • Duplicated block (19–38 lines × 4) examples/AdvancedOperations/AddAdCustomizer.php:382 — examples/AdvancedOperations/AddAdCustomizer.php:382-403 | examples/AdvancedOperations/AddAppCampaign.php:472-490 | examples/AdvancedOperations/AddDisplayUploadAd.php:203-240 | examples/AdvancedOperations/AddDynamicSearchAds.php:309-338 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `examples/AdvancedOperations/AddAdCustomizer.php:382` 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, `examples/AdvancedOperations/AddAdCustomizer.php:382` calls `AdGroupAd` and `examples/AdvancedOperations/AddAppCampaign.php:472` 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.
D4 · Code Duplication · Duplicated block (38 lines × 2) · ×1
  • Duplicated block (38 lines × 2) examples/Travel/AddHotelListingGroupTree.php:238 — examples/Travel/AddHotelListingGroupTree.php:238-275 | examples/Travel/AddHotelListingGroupTree.php:317-354 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `examples/Travel/AddHotelListingGroupTree.php:238` 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.
D4 · Code Duplication · Duplicated block (33–37 lines × 2) · ×1
  • Duplicated block (33–37 lines × 2) examples/Remarketing/UploadConversionAdjustment.php:181 — examples/Remarketing/UploadConversionAdjustment.php:181-213 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:310-346 — before extracting anything, compare `examples/Remarketing/UploadConversionAdjustment.php` and `examples/Remarketing/UploadEnhancedConversionsForWeb.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/Remarketing/UploadConversionAdjustment.php:181` 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.
D4 · Code Duplication · Duplicated block (32–34 lines × 3) · ×1
  • Duplicated block (32–34 lines × 3) examples/ShoppingAds/AddShoppingProductAd.php:315 — examples/ShoppingAds/AddShoppingProductAd.php:315-348 | examples/Travel/AddHotelAd.php:304-337 | examples/Travel/AddThingsToDoAd.php:286-317 — before extracting anything, compare `examples/ShoppingAds/AddShoppingProductAd.php` and `examples/Travel/AddHotelAd.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (33–34 lines × 2) · ×1
  • Duplicated block (33–34 lines × 2) examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:155 — examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:155-188 | examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:154-186 — before extracting anything, compare `examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php` and `examples/AdvancedOperations/UsePortfolioBiddingStrategy.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 112 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 · Duplicated block (16–33 lines × 91) · ×1
  • Duplicated block (16–33 lines × 91) examples/AccountManagement/CreateCustomer.php:49 — examples/AccountManagement/CreateCustomer.php:49-64 | examples/AccountManagement/GetChangeDetails.php:54-69 | examples/AccountManagement/GetChangeSummary.php:49-64 | examples/AccountManagement/InviteUserWithAccessRole.php:55-72 | examples/AccountManagement/UpdateUserAccess.php:57-75 | examples/AccountManagement/VerifyAdvertiserIdentity.php:51-66 | examples/AdvancedOperations/AddAdCustomizer.php:63-81 | examples/AdvancedOperations/AddAdGroupBidModifier.php:54-73 | examples/AdvancedOperations/AddAppCampaign.php:84-102 | examples/AdvancedOperations/AddBiddingDataExclusion.php:56-76 | examples/AdvancedOperations/AddBiddingSeasonalityAdjustment.php:57-78 | examples/AdvancedOperations/AddDisplayUploadAd.php:61-79 | examples/AdvancedOperations/AddDynamicPageFeedAsset.php:69-88 | examples/AdvancedOperations/AddDynamicSearchAds.php:80-97 | examples/AdvancedOperations/AddPerformanceMaxCampaign.php:115-135 | examples/AdvancedOperations/AddResponsiveSearchAdWithAdCustomizer.php:70-89 | examples/AdvancedOperations/CreateAndAttachSharedKeywordSet.php:60-78 | examples/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php:53-71 | examples/AdvancedOperations/GetAdGroupBidModifiers.php:51-69 | examples/AdvancedOperations/UploadVideo.php:54-70 | examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:61-80 | examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:64-82 | examples/Assets/AddCall.php:65-85 | examples/Assets/AddHotelCallout.php:58-76 | examples/Assets/AddLeadFormAsset.php:63-81 | examples/Assets/AddPrices.php:57-74 | examples/Assets/AddSiteLinks.php:56-74 | examples/BasicOperations/AddAdGroups.php:50-66 | examples/BasicOperations/AddCampaigns.php:56-72 | examples/BasicOperations/GetCampaigns.php:46-62 | examples/BasicOperations/GetResponsiveSearchAds.php:54-70 | examples/BasicOperations/PauseAd.php:52-69 | examples/BasicOperations/RemoveCampaign.php:49-65 | examples/BasicOperations/SearchForGoogleAdsFields.php:51-66 | examples/BasicOperations/UpdateAdGroup.php:53-70 | examples/BasicOperations/UpdateCampaign.php:52-68 | examples/BasicOperations/UpdateResponsiveSearchAd.php:55-71 | examples/Billing/AddAccountBudgetProposal.php:52-68 | examples/Billing/AddBillingSetup.php:74-91 | examples/Billing/GetInvoices.php:52-69 | examples/CampaignManagement/AddCampaignLabels.php:51-71 | examples/CampaignManagement/AddCompleteCampaignsUsingBatchJob.php:94-112 | examples/CampaignManagement/CreateExperiment.php:62-81 | examples/CampaignManagement/GetAllDisapprovedAds.php:52-71 | examples/CampaignManagement/SetAdParameters.php:50-70 | examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:53-73 | examples/CampaignManagement/ValidateAd.php:59-77 | examples/ErrorHandling/HandleKeywordPolicyViolations.php:64-83 | examples/ErrorHandling/HandlePartialFailure.php:61-80 | examples/ErrorHandling/HandleRateExceededError.php:69-87 | examples/ErrorHandling/HandleResponsiveSearchAdPolicyViolations.php:60-78 | examples/Misc/CampaignReportToCsv.php:51-69 | examples/Misc/SetCustomClientTimeouts.php:55-73 | examples/Misc/UploadImageAsset.php:51-69 | examples/Planning/ForecastReach.php:66-82 | examples/Planning/GenerateForecastMetrics.php:59-74 | examples/Planning/GenerateHistoricalMetrics.php:54-69 | examples/Planning/GenerateKeywordIdeas.php:65-84 | examples/Planning/GetAdGroupCriterionCpcBidSimulations.php:50-67 | examples/Recommendations/DetectAndApplyRecommendations.php:63-78 | examples/Recommendations/DismissRecommendation.php:52-68 | examples/Remarketing/AddConversionAction.php:52-70 | examples/Remarketing/AddConversionBasedUserList.php:54-73 | examples/Remarketing/AddCustomAudience.php:54-72 | examples/Remarketing/AddCustomerMatchUserList.php:101-124 | examples/Remarketing/AddDynamicRemarketingAsset.php:62-80 | examples/Remarketing/AddFlexibleRuleUserList.php:61-79 | examples/Remarketing/AddLogicalUserList.php:56-75 | examples/Remarketing/SetUpAdvancedRemarketing.php:65-83 | examples/Remarketing/SetUpRemarketing.php:85-106 | examples/Remarketing/UpdateAudienceTargetRestriction.php:56-74 | examples/Remarketing/UploadCallConversion.php:63-89 | examples/Remarketing/UploadConversionAdjustment.php:64-87 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:65-87 | examples/Remarketing/UploadOfflineConversion.php:75-103 | examples/Remarketing/UploadStoreSalesTransactions.php:143-175 | examples/ShoppingAds/AddListingScope.php:68-86 | examples/ShoppingAds/AddPerformanceMaxProductListingGroupTree.php:80-99 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:134-155 | examples/ShoppingAds/AddShoppingProductAd.php:80-99 | examples/ShoppingAds/AddShoppingProductListingGroupTree.php:70-89 | examples/ShoppingAds/GetProductCategoryConstants.php:48-66 | examples/Targeting/AddCampaignTargetingCriteria.php:62-80 | examples/Targeting/AddCustomerNegativeCriteria.php:51-66 | examples/Targeting/AddDemographicTargetingCriteria.php:54-70 | examples/Targeting/GetGeoTargetConstantsByNames.php:55-73 | examples/Travel/AddHotelAd.php:81-100 | examples/Travel/AddHotelAdGroupBidModifiers.php:53-72 | examples/Travel/AddHotelListingGroupTree.php:85-104 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:153-172 | examples/Travel/AddThingsToDoAd.php:75-93 — before extracting anything, compare `examples/AccountManagement/CreateCustomer.php` and `examples/AccountManagement/GetChangeDetails.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/AccountManagement/CreateCustomer.php:49` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `examples/AdvancedOperations/AddPerformanceMaxCampaign.php:138` calls `filter_var` and `examples/Remarketing/UploadStoreSalesTransactions.php:177` 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.
D4 · Code Duplication · Duplicated block (21–33 lines × 5) · ×1
  • Duplicated block (21–33 lines × 5) examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:203 — examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:203-234 | examples/BasicOperations/AddCampaigns.php:179-199 | examples/ShoppingAds/AddShoppingProductAd.php:191-220 | examples/Travel/AddHotelAd.php:176-207 | examples/Travel/AddThingsToDoAd.php:165-197 — before extracting anything, compare `examples/AdvancedOperations/UsePortfolioBiddingStrategy.php` and `examples/BasicOperations/AddCampaigns.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (24–33 lines × 4) · ×1
  • Duplicated block (24–33 lines × 4) examples/Remarketing/AddConversionBasedUserList.php:139 — examples/Remarketing/AddConversionBasedUserList.php:139-162 | examples/Remarketing/AddFlexibleRuleUserList.php:169-198 | examples/Remarketing/AddLogicalUserList.php:143-171 | examples/Remarketing/SetUpAdvancedRemarketing.php:256-288 — before extracting anything, compare `examples/Remarketing/AddConversionBasedUserList.php` and `examples/Remarketing/AddFlexibleRuleUserList.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/Remarketing/AddFlexibleRuleUserList.php:169` 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.
D4 · Code Duplication · Duplicated block (32–33 lines × 2) · ×1
  • Duplicated block (32–33 lines × 2) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:505 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:505-536 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:553-585 — before extracting anything, compare `examples/AdvancedOperations/AddPerformanceMaxCampaign.php` and `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 497 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (27–33 lines × 2) · ×1
  • Duplicated block (27–33 lines × 2) examples/Remarketing/AddCustomerMatchUserList.php:228 — examples/Remarketing/AddCustomerMatchUserList.php:228-260 | examples/Remarketing/SetUpRemarketing.php:245-271 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once.
D4 · Code Duplication · Duplicated block (28–31 lines × 3) · ×1
  • Duplicated block (28–31 lines × 3) examples/ShoppingAds/AddShoppingProductAd.php:370 — examples/ShoppingAds/AddShoppingProductAd.php:370-397 | examples/Travel/AddHotelAd.php:363-393 | examples/Travel/AddThingsToDoAd.php:336-365 — before extracting anything, compare `examples/ShoppingAds/AddShoppingProductAd.php` and `examples/Travel/AddHotelAd.php` as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 237 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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, `examples/ShoppingAds/AddShoppingProductAd.php:367` calls `Ad`, `ShoppingProductAdInfo` and `examples/Travel/AddThingsToDoAd.php:334` 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.
D4 · Code Duplication · Duplicated block (25–29 lines × 2) · ×1
  • Duplicated block (25–29 lines × 2) examples/AdvancedOperations/AddAppCampaign.php:180 — examples/AdvancedOperations/AddAppCampaign.php:180-208 | examples/AdvancedOperations/AddDynamicSearchAds.php:165-189 — before extracting anything, compare `examples/AdvancedOperations/AddAppCampaign.php` and `examples/AdvancedOperations/AddDynamicSearchAds.php` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 · Duplicated block (28–29 lines × 2) · ×1
  • Duplicated block (28–29 lines × 2) examples/Remarketing/UploadEnhancedConversionsForLeads.php:341 — examples/Remarketing/UploadEnhancedConversionsForLeads.php:341-368 | examples/Remarketing/UploadOfflineConversion.php:251-279 — before extracting anything, compare `examples/Remarketing/UploadEnhancedConversionsForLeads.php` and `examples/Remarketing/UploadOfflineConversion.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 87 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/Remarketing/UploadEnhancedConversionsForLeads.php:341` 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.
D4 · Code Duplication · Duplicated block (26–28 lines × 2) · ×1
  • Duplicated block (26–28 lines × 2) examples/AdvancedOperations/AddAppCampaign.php:402 — examples/AdvancedOperations/AddAppCampaign.php:402-427 | examples/AdvancedOperations/AddDynamicSearchAds.php:265-292 — before extracting anything, compare `examples/AdvancedOperations/AddAppCampaign.php` and `examples/AdvancedOperations/AddDynamicSearchAds.php` as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 214 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 · Duplicated block (20–28 lines × 2) · ×1
  • Duplicated block (20–28 lines × 2) examples/Misc/SetCustomClientTimeouts.php:140 — examples/Misc/SetCustomClientTimeouts.php:140-167 | examples/Misc/SetCustomClientTimeouts.php:213-232 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `examples/Misc/SetCustomClientTimeouts.php:140` 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.
D4 · Code Duplication · Duplicated block (16–27 lines × 4) · ×1
  • Duplicated block (16–27 lines × 4) examples/AdvancedOperations/AddDisplayUploadAd.php:158 — examples/AdvancedOperations/AddDisplayUploadAd.php:158-184 | examples/Assets/AddLeadFormAsset.php:210-225 | examples/Assets/AddPrices.php:174-197 | examples/Remarketing/AddDynamicRemarketingAsset.php:182-205 — before extracting anything, compare `examples/AdvancedOperations/AddDisplayUploadAd.php` and `examples/Assets/AddLeadFormAsset.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 118 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `examples/Assets/AddLeadFormAsset.php:210` 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.
D4 · Code Duplication · Duplicated block (24–27 lines × 2) · ×1
  • Duplicated block (24–27 lines × 2) examples/AdvancedOperations/AddDynamicPageFeedAsset.php:248 — examples/AdvancedOperations/AddDynamicPageFeedAsset.php:248-274 | examples/Remarketing/AddDynamicRemarketingAsset.php:221-244 — before extracting anything, compare `examples/AdvancedOperations/AddDynamicPageFeedAsset.php` and `examples/Remarketing/AddDynamicRemarketingAsset.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (24–26 lines × 95) · ×1
  • Duplicated block (24–26 lines × 95) examples/AccountManagement/CreateCustomer.php:68 — examples/AccountManagement/CreateCustomer.php:68-91 | examples/AccountManagement/GetAccountHierarchy.php:93-116 | examples/AccountManagement/GetChangeDetails.php:73-96 | examples/AccountManagement/GetChangeSummary.php:68-91 | examples/AccountManagement/InviteUserWithAccessRole.php:78-101 | examples/AccountManagement/LinkManagerToClient.php:67-90 | examples/AccountManagement/ListAccessibleCustomers.php:56-79 | examples/AccountManagement/UpdateUserAccess.php:81-104 | examples/AccountManagement/VerifyAdvertiserIdentity.php:70-93 | examples/AdvancedOperations/AddAdCustomizer.php:86-111 | examples/AdvancedOperations/AddAdGroupBidModifier.php:79-104 | examples/AdvancedOperations/AddAppCampaign.php:106-131 | examples/AdvancedOperations/AddBiddingDataExclusion.php:82-107 | examples/AdvancedOperations/AddBiddingSeasonalityAdjustment.php:85-110 | examples/AdvancedOperations/AddDisplayUploadAd.php:84-109 | examples/AdvancedOperations/AddDynamicPageFeedAsset.php:94-119 | examples/AdvancedOperations/AddDynamicSearchAds.php:101-126 | examples/AdvancedOperations/AddPerformanceMaxCampaign.php:145-170 | examples/AdvancedOperations/AddResponsiveSearchAdWithAdCustomizer.php:96-121 | examples/AdvancedOperations/AddSmartCampaign.php:173-198 | examples/AdvancedOperations/CreateAndAttachSharedKeywordSet.php:83-108 | examples/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php:76-101 | examples/AdvancedOperations/GetAdGroupBidModifiers.php:74-99 | examples/AdvancedOperations/UploadVideo.php:75-98 | examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:86-111 | examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:87-112 | examples/Assets/AddCall.php:92-117 | examples/Assets/AddHotelCallout.php:81-106 | examples/Assets/AddLeadFormAsset.php:86-111 | examples/Assets/AddPrices.php:78-103 | examples/BasicOperations/AddAdGroups.php:71-94 | examples/BasicOperations/AddCampaigns.php:76-99 | examples/BasicOperations/GetCampaigns.php:66-89 | examples/BasicOperations/GetResponsiveSearchAds.php:75-98 | examples/BasicOperations/PauseAd.php:75-98 | examples/BasicOperations/RemoveCampaign.php:70-93 | examples/BasicOperations/SearchForGoogleAdsFields.php:70-93 | examples/BasicOperations/UpdateAdGroup.php:76-99 | examples/BasicOperations/UpdateCampaign.php:73-96 | examples/BasicOperations/UpdateResponsiveSearchAd.php:76-99 | examples/Billing/AddAccountBudgetProposal.php:73-96 | examples/Billing/AddBillingSetup.php:97-120 | examples/Billing/GetInvoices.php:74-97 | examples/CampaignManagement/AddCampaignLabels.php:78-103 | examples/CampaignManagement/AddCompleteCampaignsUsingBatchJob.php:116-141 | examples/CampaignManagement/CreateExperiment.php:86-111 | examples/CampaignManagement/GetAllDisapprovedAds.php:76-101 | examples/CampaignManagement/SetAdParameters.php:76-101 | examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:80-105 | examples/CampaignManagement/ValidateAd.php:82-107 | examples/ErrorHandling/HandleKeywordPolicyViolations.php:89-114 | examples/ErrorHandling/HandlePartialFailure.php:85-110 | examples/ErrorHandling/HandleRateExceededError.php:92-117 | examples/ErrorHandling/HandleResponsiveSearchAdPolicyViolations.php:83-108 | examples/Misc/CampaignReportToCsv.php:74-99 | examples/Misc/SetCustomClientTimeouts.php:77-102 | examples/Misc/UploadImageAsset.php:73-98 | examples/Planning/ForecastReach.php:86-109 | examples/Planning/GenerateForecastMetrics.php:78-101 | examples/Planning/GenerateHistoricalMetrics.php:73-96 | examples/Planning/GenerateKeywordIdeas.php:94-117 | examples/Planning/GetAdGroupCriterionCpcBidSimulations.php:72-95 | examples/Recommendations/DetectAndApplyRecommendations.php:82-105 | examples/Recommendations/DismissRecommendation.php:73-96 | examples/Remarketing/AddConversionAction.php:74-99 | examples/Remarketing/AddConversionBasedUserList.php:79-104 | examples/Remarketing/AddCustomAudience.php:76-101 | examples/Remarketing/AddCustomerMatchUserList.php:140-165 | examples/Remarketing/AddDynamicRemarketingAsset.php:85-110 | examples/Remarketing/AddFlexibleRuleUserList.php:83-108 | examples/Remarketing/AddLogicalUserList.php:81-106 | examples/Remarketing/SetUpAdvancedRemarketing.php:87-112 | examples/Remarketing/SetUpRemarketing.php:113-138 | examples/Remarketing/UpdateAudienceTargetRestriction.php:79-104 | examples/Remarketing/UploadCallConversion.php:105-130 | examples/Remarketing/UploadConversionAdjustment.php:96-121 | examples/Remarketing/UploadEnhancedConversionsForLeads.php:140-165 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:95-120 | examples/Remarketing/UploadOfflineConversion.php:121-146 | examples/Remarketing/UploadStoreSalesTransactions.php:200-225 | examples/ShoppingAds/AddListingScope.php:91-116 | examples/ShoppingAds/AddPerformanceMaxProductListingGroupTree.php:109-134 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:167-192 | examples/ShoppingAds/AddShoppingProductAd.php:107-132 | examples/ShoppingAds/AddShoppingProductListingGroupTree.php:97-122 | examples/ShoppingAds/GetProductCategoryConstants.php:70-95 | examples/Targeting/AddCampaignTargetingCriteria.php:87-110 | examples/Targeting/AddCustomerNegativeCriteria.php:70-93 | examples/Targeting/AddDemographicTargetingCriteria.php:75-98 | examples/Targeting/GetGeoTargetConstantsByNames.php:79-102 | examples/Travel/AddHotelAd.php:107-132 | examples/Travel/AddHotelAdGroupBidModifiers.php:77-102 | examples/Travel/AddHotelListingGroupTree.php:111-136 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:177-202 | examples/Travel/AddThingsToDoAd.php:99-124 — before extracting anything, compare `examples/AccountManagement/CreateCustomer.php` and `examples/AccountManagement/GetChangeDetails.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/AccountManagement/CreateCustomer.php:68` 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.
D4 · Code Duplication · Duplicated block (25–26 lines × 3) · ×1
  • Duplicated block (25–26 lines × 3) examples/AdvancedOperations/AddAdCustomizer.php:176 — examples/AdvancedOperations/AddAdCustomizer.php:176-200 | examples/AdvancedOperations/AddAdCustomizer.php:220-244 | examples/AdvancedOperations/AddResponsiveSearchAdWithAdCustomizer.php:171-196 — before extracting anything, compare `examples/AdvancedOperations/AddAdCustomizer.php` and `examples/AdvancedOperations/AddResponsiveSearchAdWithAdCustomizer.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 117 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 · Duplicated block (24–25 lines × 2) · ×1
  • Duplicated block (24–25 lines × 2) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:196 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:196-219 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:227-251 — before extracting anything, compare `examples/AdvancedOperations/AddPerformanceMaxCampaign.php` and `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 497 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:227` 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.
D4 · Code Duplication · Duplicated block (23–24 lines × 2) · ×1
  • Duplicated block (23–24 lines × 2) examples/Assets/AddHotelCallout.php:156 — examples/Assets/AddHotelCallout.php:156-179 | examples/Assets/AddSiteLinks.php:196-218 — before extracting anything, compare `examples/Assets/AddHotelCallout.php` and `examples/Assets/AddSiteLinks.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/Assets/AddHotelCallout.php:156` 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.
D4 · Code Duplication · Duplicated block (22–23 lines × 4) · ×1
  • Duplicated block (22–23 lines × 4) examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:276 — examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:276-298 | examples/ShoppingAds/AddShoppingProductAd.php:272-293 | examples/Travel/AddHotelAd.php:260-282 | examples/Travel/AddThingsToDoAd.php:242-264 — before extracting anything, compare `examples/AdvancedOperations/UsePortfolioBiddingStrategy.php` and `examples/ShoppingAds/AddShoppingProductAd.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 147 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:276` 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.
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×1
  • Duplicated block (23 lines × 2) examples/AdvancedOperations/AddAdCustomizer.php:378 — examples/AdvancedOperations/AddAdCustomizer.php:378-400 | examples/Travel/AddHotelAd.php:357-383 — before extracting anything, compare `examples/AdvancedOperations/AddAdCustomizer.php` and `examples/Travel/AddHotelAd.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 143 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at `examples/AdvancedOperations/AddAdCustomizer.php:378` 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.
D4 · Code Duplication · Duplicated block (17–23 lines × 2) · ×1
  • Duplicated block (17–23 lines × 2) examples/AdvancedOperations/AddDynamicSearchAds.php:381 — examples/AdvancedOperations/AddDynamicSearchAds.php:381-397 | examples/Remarketing/SetUpRemarketing.php:292-314 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `examples/AdvancedOperations/AddDynamicSearchAds.php:381` 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. 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.
D4 · Code Duplication · Duplicated block (21–22 lines × 2) · ×1
  • Duplicated block (21–22 lines × 2) examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:126 — examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:126-146 | examples/Remarketing/SetUpRemarketing.php:540-561 — before extracting anything, compare `examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php` and `examples/Remarketing/SetUpRemarketing.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. 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, `examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:152` calls `getResults` and `examples/Remarketing/SetUpRemarketing.php:563` 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.
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×1
  • Duplicated block (21 lines × 2) examples/AdvancedOperations/AddDynamicPageFeedAsset.php:344 — examples/AdvancedOperations/AddDynamicPageFeedAsset.php:344-364 | examples/Remarketing/AddDynamicRemarketingAsset.php:307-327 — before extracting anything, compare `examples/AdvancedOperations/AddDynamicPageFeedAsset.php` and `examples/Remarketing/AddDynamicRemarketingAsset.php` as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 139 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×1
  • Duplicated block (20 lines × 2) examples/Remarketing/UploadCallConversion.php:208 — examples/Remarketing/UploadCallConversion.php:208-227 | examples/Remarketing/UploadOfflineConversion.php:263-282 — before extracting anything, compare `examples/Remarketing/UploadCallConversion.php` and `examples/Remarketing/UploadOfflineConversion.php` as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/Remarketing/UploadCallConversion.php:208` 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. 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.
D4 · Code Duplication · Duplicated block (16–19 lines × 96) · ×1
  • Duplicated block (16–19 lines × 96) examples/AccountManagement/CreateCustomer.php:66 — examples/AccountManagement/CreateCustomer.php:66-82 | examples/AccountManagement/GetAccountHierarchy.php:92-107 | examples/AccountManagement/GetChangeDetails.php:71-87 | examples/AccountManagement/GetChangeSummary.php:66-82 | examples/AccountManagement/InviteUserWithAccessRole.php:76-92 | examples/AccountManagement/LinkManagerToClient.php:65-81 | examples/AccountManagement/ListAccessibleCustomers.php:55-70 | examples/AccountManagement/UpdateUserAccess.php:79-95 | examples/AccountManagement/VerifyAdvertiserIdentity.php:68-84 | examples/AdvancedOperations/AddAdCustomizer.php:84-102 | examples/AdvancedOperations/AddAdGroupBidModifier.php:77-95 | examples/AdvancedOperations/AddAppCampaign.php:104-122 | examples/AdvancedOperations/AddBiddingDataExclusion.php:80-98 | examples/AdvancedOperations/AddBiddingSeasonalityAdjustment.php:83-101 | examples/AdvancedOperations/AddDisplayUploadAd.php:82-100 | examples/AdvancedOperations/AddDynamicPageFeedAsset.php:92-110 | examples/AdvancedOperations/AddDynamicSearchAds.php:99-117 | examples/AdvancedOperations/AddPerformanceMaxCampaign.php:143-161 | examples/AdvancedOperations/AddResponsiveSearchAdWithAdCustomizer.php:94-112 | examples/AdvancedOperations/AddSmartCampaign.php:171-189 | examples/AdvancedOperations/CreateAndAttachSharedKeywordSet.php:81-99 | examples/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php:74-92 | examples/AdvancedOperations/GetAdGroupBidModifiers.php:72-90 | examples/AdvancedOperations/UploadVideo.php:73-89 | examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:84-102 | examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:85-103 | examples/Assets/AddCall.php:90-108 | examples/Assets/AddHotelCallout.php:79-97 | examples/Assets/AddLeadFormAsset.php:84-102 | examples/Assets/AddPrices.php:76-94 | examples/Assets/AddSiteLinks.php:77-95 | examples/BasicOperations/AddAdGroups.php:69-85 | examples/BasicOperations/AddCampaigns.php:74-90 | examples/BasicOperations/GetCampaigns.php:64-80 | examples/BasicOperations/GetResponsiveSearchAds.php:73-89 | examples/BasicOperations/PauseAd.php:73-89 | examples/BasicOperations/RemoveCampaign.php:68-84 | examples/BasicOperations/SearchForGoogleAdsFields.php:68-84 | examples/BasicOperations/UpdateAdGroup.php:74-90 | examples/BasicOperations/UpdateCampaign.php:71-87 | examples/BasicOperations/UpdateResponsiveSearchAd.php:74-90 | examples/Billing/AddAccountBudgetProposal.php:71-87 | examples/Billing/AddBillingSetup.php:95-111 | examples/Billing/GetInvoices.php:72-88 | examples/CampaignManagement/AddCampaignLabels.php:76-94 | examples/CampaignManagement/AddCompleteCampaignsUsingBatchJob.php:114-132 | examples/CampaignManagement/CreateExperiment.php:84-102 | examples/CampaignManagement/GetAllDisapprovedAds.php:74-92 | examples/CampaignManagement/SetAdParameters.php:74-92 | examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:78-96 | examples/CampaignManagement/ValidateAd.php:80-98 | examples/ErrorHandling/HandleKeywordPolicyViolations.php:87-105 | examples/ErrorHandling/HandlePartialFailure.php:83-101 | examples/ErrorHandling/HandleRateExceededError.php:90-108 | examples/ErrorHandling/HandleResponsiveSearchAdPolicyViolations.php:81-99 | examples/Misc/CampaignReportToCsv.php:72-90 | examples/Misc/SetCustomClientTimeouts.php:75-93 | examples/Misc/UploadImageAsset.php:71-89 | examples/Planning/ForecastReach.php:84-100 | examples/Planning/GenerateForecastMetrics.php:76-92 | examples/Planning/GenerateHistoricalMetrics.php:71-87 | examples/Planning/GenerateKeywordIdeas.php:92-108 | examples/Planning/GetAdGroupCriterionCpcBidSimulations.php:70-86 | examples/Recommendations/DetectAndApplyRecommendations.php:80-96 | examples/Recommendations/DismissRecommendation.php:71-87 | examples/Remarketing/AddConversionAction.php:72-90 | examples/Remarketing/AddConversionBasedUserList.php:77-95 | examples/Remarketing/AddCustomAudience.php:74-92 | examples/Remarketing/AddCustomerMatchUserList.php:138-156 | examples/Remarketing/AddDynamicRemarketingAsset.php:83-101 | examples/Remarketing/AddFlexibleRuleUserList.php:81-99 | examples/Remarketing/AddLogicalUserList.php:79-97 | examples/Remarketing/SetUpAdvancedRemarketing.php:85-103 | examples/Remarketing/SetUpRemarketing.php:111-129 | examples/Remarketing/UpdateAudienceTargetRestriction.php:77-95 | examples/Remarketing/UploadCallConversion.php:103-121 | examples/Remarketing/UploadConversionAdjustment.php:94-112 | examples/Remarketing/UploadEnhancedConversionsForLeads.php:138-156 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:93-111 | examples/Remarketing/UploadOfflineConversion.php:119-137 | examples/Remarketing/UploadStoreSalesTransactions.php:198-216 | examples/ShoppingAds/AddListingScope.php:89-107 | examples/ShoppingAds/AddPerformanceMaxProductListingGroupTree.php:107-125 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:165-183 | examples/ShoppingAds/AddShoppingProductAd.php:105-123 | examples/ShoppingAds/AddShoppingProductListingGroupTree.php:95-113 | examples/ShoppingAds/GetProductCategoryConstants.php:68-86 | examples/Targeting/AddCampaignTargetingCriteria.php:85-101 | examples/Targeting/AddCustomerNegativeCriteria.php:68-84 | examples/Targeting/AddDemographicTargetingCriteria.php:73-89 | examples/Targeting/GetGeoTargetConstantsByNames.php:77-93 | examples/Travel/AddHotelAd.php:105-123 | examples/Travel/AddHotelAdGroupBidModifiers.php:75-93 | examples/Travel/AddHotelListingGroupTree.php:109-127 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:175-193 | examples/Travel/AddThingsToDoAd.php:97-115 — before extracting anything, compare `examples/AccountManagement/CreateCustomer.php` and `examples/AccountManagement/GetChangeDetails.php` as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/AccountManagement/CreateCustomer.php:66` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `examples/AccountManagement/CreateCustomer.php:83` calls `exit` and `examples/Assets/AddSiteLinks.php:96` 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.
D4 · Code Duplication · Duplicated block (18–19 lines × 2) · ×1
  • Duplicated block (18–19 lines × 2) examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:319 — examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php:319-337 | examples/BasicOperations/UpdateCampaign.php:112-129 — before extracting anything, compare `examples/AdvancedOperations/UseCrossAccountBiddingStrategy.php` and `examples/BasicOperations/UpdateCampaign.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 97 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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.
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×1
  • Duplicated block (18 lines × 3) examples/AdvancedOperations/AddAdCustomizer.php:378 — examples/AdvancedOperations/AddAdCustomizer.php:378-400 | examples/ShoppingAds/AddShoppingProductAd.php:370-387 | examples/Travel/AddHotelAd.php:359-383 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `examples/AdvancedOperations/AddAdCustomizer.php:378` 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.
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×1
  • Duplicated block (16 lines × 2) examples/AccountManagement/GetAccountHierarchy.php:75 — examples/AccountManagement/GetAccountHierarchy.php:75-90 | examples/Remarketing/UploadEnhancedConversionsForLeads.php:105-124 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `examples/AccountManagement/GetAccountHierarchy.php:75` 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. 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.
D4 · Code Duplication · Duplicated block (12 lines × 67) · ×1
  • Duplicated block (12 lines × 67) examples/AccountManagement/InviteUserWithAccessRole.php:62 — examples/AccountManagement/InviteUserWithAccessRole.php:62-73 | examples/AccountManagement/UpdateUserAccess.php:64-76 | examples/AdvancedOperations/AddAdCustomizer.php:71-82 | examples/AdvancedOperations/AddAdGroupBidModifier.php:63-74 | examples/AdvancedOperations/AddBiddingDataExclusion.php:65-77 | examples/AdvancedOperations/AddBiddingSeasonalityAdjustment.php:67-79 | examples/AdvancedOperations/AddDisplayUploadAd.php:69-80 | examples/AdvancedOperations/AddDynamicPageFeedAsset.php:78-89 | examples/AdvancedOperations/AddPerformanceMaxCampaign.php:124-136 | examples/AdvancedOperations/AddResponsiveSearchAdWithAdCustomizer.php:79-90 | examples/AdvancedOperations/AddSmartCampaign.php:154-166 | examples/AdvancedOperations/CreateAndAttachSharedKeywordSet.php:68-79 | examples/AdvancedOperations/FindAndRemoveCriteriaFromSharedSet.php:61-72 | examples/AdvancedOperations/GetAdGroupBidModifiers.php:59-70 | examples/AdvancedOperations/UploadVideo.php:60-71 | examples/AdvancedOperations/UsePortfolioBiddingStrategy.php:72-83 | examples/Assets/AddCall.php:75-86 | examples/Assets/AddHotelCallout.php:66-77 | examples/Assets/AddLeadFormAsset.php:71-82 | examples/Assets/AddSiteLinks.php:64-75 | examples/BasicOperations/AddAdGroups.php:56-67 | examples/BasicOperations/GetResponsiveSearchAds.php:60-71 | examples/BasicOperations/PauseAd.php:59-70 | examples/BasicOperations/RemoveCampaign.php:55-66 | examples/BasicOperations/UpdateAdGroup.php:60-71 | examples/BasicOperations/UpdateCampaign.php:58-69 | examples/BasicOperations/UpdateResponsiveSearchAd.php:61-72 | examples/Billing/AddAccountBudgetProposal.php:58-69 | examples/Billing/AddBillingSetup.php:81-92 | examples/Billing/GetInvoices.php:58-70 | examples/CampaignManagement/AddCampaignLabels.php:60-72 | examples/CampaignManagement/CreateExperiment.php:70-82 | examples/CampaignManagement/GetAllDisapprovedAds.php:60-72 | examples/CampaignManagement/SetAdParameters.php:59-71 | examples/CampaignManagement/UpdateCampaignCriterionBidModifier.php:63-74 | examples/CampaignManagement/ValidateAd.php:67-78 | examples/ErrorHandling/HandleKeywordPolicyViolations.php:73-84 | examples/ErrorHandling/HandlePartialFailure.php:69-81 | examples/ErrorHandling/HandleRateExceededError.php:77-88 | examples/ErrorHandling/HandleResponsiveSearchAdPolicyViolations.php:68-79 | examples/Misc/CampaignReportToCsv.php:59-70 | examples/Planning/GenerateKeywordIdeas.php:74-85 | examples/Planning/GetAdGroupCriterionCpcBidSimulations.php:56-68 | examples/Recommendations/DismissRecommendation.php:58-69 | examples/Remarketing/AddConversionBasedUserList.php:62-74 | examples/Remarketing/AddDynamicRemarketingAsset.php:70-81 | examples/Remarketing/AddLogicalUserList.php:64-76 | examples/Remarketing/SetUpRemarketing.php:95-107 | examples/Remarketing/UpdateAudienceTargetRestriction.php:64-75 | examples/Remarketing/UploadCallConversion.php:78-90 | examples/Remarketing/UploadConversionAdjustment.php:76-88 | examples/Remarketing/UploadEnhancedConversionsForLeads.php:113-125 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:76-88 | examples/Remarketing/UploadOfflineConversion.php:92-104 | examples/Remarketing/UploadStoreSalesTransactions.php:164-176 | examples/ShoppingAds/AddListingScope.php:76-87 | examples/ShoppingAds/AddPerformanceMaxProductListingGroupTree.php:89-100 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:144-156 | examples/ShoppingAds/AddShoppingProductAd.php:89-100 | examples/ShoppingAds/AddShoppingProductListingGroupTree.php:79-90 | examples/Targeting/AddCampaignTargetingCriteria.php:70-81 | examples/Targeting/AddDemographicTargetingCriteria.php:60-71 | examples/Travel/AddHotelAd.php:90-101 | examples/Travel/AddHotelAdGroupBidModifiers.php:62-73 | examples/Travel/AddHotelListingGroupTree.php:94-105 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:161-173 | examples/Travel/AddThingsToDoAd.php:83-94 — before extracting anything, compare `examples/AccountManagement/InviteUserWithAccessRole.php` and `examples/AccountManagement/UpdateUserAccess.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 91 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 `examples/AccountManagement/InviteUserWithAccessRole.php:62` 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. ★ These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, `examples/AdvancedOperations/AddPerformanceMaxCampaign.php:138` calls `filter_var` and `examples/Remarketing/UploadStoreSalesTransactions.php:177` 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.
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×1
  • Duplicated block (12 lines × 2) examples/Remarketing/AddCustomerMatchUserList.php:296 — examples/Remarketing/AddCustomerMatchUserList.php:296-313 | examples/Remarketing/UploadStoreSalesTransactions.php:617-628 — the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach — a file they already depend on, or a new one alongside them — and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `examples/Remarketing/AddCustomerMatchUserList.php:296` 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.
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×1
  • Duplicated block (11 lines × 2) examples/Remarketing/UploadEnhancedConversionsForLeads.php:412 — examples/Remarketing/UploadEnhancedConversionsForLeads.php:412-422 | examples/Remarketing/UploadEnhancedConversionsForWeb.php:391-401 — before extracting anything, compare `examples/Remarketing/UploadEnhancedConversionsForLeads.php` and `examples/Remarketing/UploadEnhancedConversionsForWeb.php` as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the 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 · Duplicated block (84 lines × 2) · ×1
  • Duplicated block (84 lines × 2) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:401 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:401-485 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:448-531 — before extracting anything, compare `examples/AdvancedOperations/AddPerformanceMaxCampaign.php` and `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 497 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D4 · Code Duplication · Duplicated block (39 lines × 6) · ×1
  • Duplicated block (39 lines × 6) examples/AdvancedOperations/AddPerformanceMaxCampaign.php:706 — examples/AdvancedOperations/AddPerformanceMaxCampaign.php:706-744 | examples/AdvancedOperations/AddPerformanceMaxCampaign.php:764-806 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:819-857 | examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php:877-919 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:990-1028 | examples/Travel/AddPerformanceMaxForTravelGoalsCampaign.php:1046-1088 — before extracting anything, compare `examples/AdvancedOperations/AddPerformanceMaxCampaign.php` and `examples/ShoppingAds/AddPerformanceMaxRetailCampaign.php` as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 497 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place.
D5 · Coupling · Off the main sequence · ×1
  • Off the main sequence: metadata — metadata: abstractness 0.00, instability 0.00, distance 1.00 — zone of pain — concrete and depended on by 1 project(s), so it's rigid to change.
P12 · CI test-gate honesty · Coverage collected but not gated · ×1
  • Coverage collected but not gated — CI collects a coverage report but no step enforces a minimum — coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool's minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository's CI files AND its coverage configuration — the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited — matched against the threshold settings this check knows by name. A floor set in your coverage service's web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here.
Minor — 304 finding(s)
D34 · Knowledge Freshness · Orphaned file · ×277
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/GoogleAdsServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/AudienceInsightsServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/ExperimentServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/AudienceInsightsServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/Lib/V25/GoogleAdsClientBuilder.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/ReachPlanServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/CampaignServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/CampaignServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/CampaignDraftServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/CampaignDraftServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/OfflineUserDataJobServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/CampaignCriterionServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/OfflineUserDataJobServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/CampaignCriterionServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/RecommendationServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/RecommendationServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupAdServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupAdServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/BenchmarksServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/AdGroupCriterionServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • Orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/AdGroupCriterionServiceClient.php:1 — No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for.
  • + 252 more in this group — see findings.md.
X10 · Duplicated predicate · Duplicated predicate · ×16
  • Duplicated predicate src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:461 — `!empty($grpcComposerVersion) && !empty($grpcPackageVersion) && version_compare($grpcComposerVersion, $grpcPackageVersion, '>')` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.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/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:387 — `!empty($this->adsAssistant) && empty(trim($this->adsAssistant))` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.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/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:394 — `!empty($this->endpoint) && parse_url($this->endpoint) === false` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.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/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:384 — `!empty($this->linkedCustomerId) && $this` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.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/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:400 — `!empty($this->proxy) && filter_var($this->proxy, FILTER_VALIDATE_URL) === false` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.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/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:185 — `!is_null($clone->getOperation()) && !is_null($clone->getOperation()->getCreate())` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.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/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:171 — `!is_null($clone->getOperation()) && !is_null($clone->getOperation()->getUpdate())` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.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/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:354 — `!is_null($localServicesLead->getContactDetails()) && !is_null($localServicesLead->getContactDetails()->getEmail())` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.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/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:371 — `!is_null($localServicesLeadConversation->getMessageDetails()) && !is_null($localServicesLeadConversation->getMessageDetails()->getText())` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.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/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php:64 — `!isset($options['operationsClient']) && get_class($this) != OperationsClient::class && get_class($this) != GoogleAdsOperationClient::class` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsGapicClientTrait.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/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:150 — `$body instanceof SearchGoogleAdsRequest || $body instanceof SearchGoogleAdsStreamRequest` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.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/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php:157 — `$body instanceof SearchGoogleAdsResponse || $body instanceof SearchGoogleAdsStreamResponse` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V21/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V23/InfoRedactor.php, src/Google/Ads/GoogleAds/Lib/V24/InfoRedactor.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/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:148 — `$methodName && isset($this->descriptors[$methodName]['longRunning'])` appears character-identically in 8 files — src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php, src/Google/Ads/GoogleAds/V25/Services/Client/CampaignDraftServiceClient.php, src/Google/Ads/GoogleAds/V25/Services/Client/ExperimentServiceClient.php, src/Google/Ads/GoogleAds/V25/Services/Client/OfflineUserDataJobServiceClient.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/Google/Ads/GoogleAds/Lib/V20/GoogleAdsFailuresUnaryCall.php:41 — `$response instanceof ListBatchJobResultsResponse || ( !is_null($response) && method_exists($response, 'getPartialFailureError') && !is_null(…` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsFailuresUnaryCall.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsFailuresUnaryCall.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsFailuresUnaryCall.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsFailuresUnaryCall.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/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php:121 — `in_array($fieldName, self::SUPPORTED_FIELDS) && $index == $operationIndex` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Util/V20/GoogleAdsErrors.php, src/Google/Ads/GoogleAds/Util/V21/GoogleAdsErrors.php, src/Google/Ads/GoogleAds/Util/V23/GoogleAdsErrors.php, src/Google/Ads/GoogleAds/Util/V24/GoogleAdsErrors.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/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php:107 — `is_null($configuration->getConfiguration('grpcChannelIsSecure', 'CONNECTION')) || $configuration` appears character-identically in 6 files — src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsClientBuilder.php, src/Google/Ads/GoogleAds/Lib/V24/GoogleAdsClientBuilder.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.
D34 · Knowledge Freshness · Most significant orphaned file · ×3
  • Most significant orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/BatchJobServiceClient.php:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file src/Google/Ads/GoogleAds/V23/Services/Client/GoogleAdsServiceClient.php:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
  • Most significant orphaned file src/Google/Ads/GoogleAds/V25/Services/Client/BatchJobServiceClient.php:1 — One of the orphaned files carrying the most lost knowledge — ranked by size weighted by the file's role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: src/Google/Ads/GoogleAds/Lib/OAuth2TokenBuilder.php, src/Google/Ads/GoogleAds/Lib/V23/GoogleAdsGapicClientTrait.php, src/Google/Ads/GoogleAds/Lib/V21/GoogleAdsGapicClientTrait.php, src/Google/Ads/GoogleAds/Lib/V20/GoogleAdsGapicClientTrait.php. Pair on, review, or document these before any departure.
D34 · Knowledge Freshness · Concentrated knowledge decay · ×1
  • Concentrated knowledge decay — 280 of 549 significant files have no living knowledge, while the repository is still being changed at a low rate (16 commit(s) in the last 90 days) — so this is one repo-wide knowledge-decay state, not 280 separate risks. Counted over 549 of the 16766 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. The code moved on without the people who understood these files: document them or schedule a read-through before the next change lands in them.
D36 · Supply-chain Provenance & Signing · REDACTED · ×1
  • REDACTED
M2 · Architecture documentation · No ADRs · ×1
  • No ADRs — No Architecture Decision Records found — no conventional ADR directory, no numbered `NNNN-title` documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
M2 · Architecture documentation · No architecture diagram/doc · ×1
  • No architecture diagram/doc — No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named `architecture` or `design` in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape — no `## Architecture` heading, no "architecture overview"/"high-level design" phrasing, no "the architecture is …" introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document — not evidence that nobody wrote the shape down.
P1 · CI/CD gates · CI build step not evidenced · ×1
  • CI build step not evidenced — A CI pipeline exists but no build step was matched — changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves.
P3 · Security & performance tooling · No SAST · ×1
  • No SAST — No static application security testing detected. For this repository's stack, add phpstan or psalm (or `semgrep --config=auto`, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge's web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen — if that is your case the row is wrong, and saying so is more useful than adding a second scanner.
X5 · Nullable reference types · PHP static analysis does not check null everywhere · ×1
  • PHP static analysis does not check null everywhere — This repository commits no PHPStan or Psalm configuration (`phpstan.neon[.dist]`, `phpstan.dist.neon`, `psalm.xml[.dist]`, or one a composer.json script names with `--configuration`), so nothing checks null: a `?Customer` reaches `->name()` silently and throws `Error: Call to a member function name() on null` the first time it is null. If the build passes a level on a command line instead, put it in a committed configuration — this check reads configuration, and configuration is all it can read.

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.

DimensionToolVersionCommandFindingsRaw output
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=0 --max-count=200" --report-format json --report-path /tmp/watchdog-gitleaks-dbabb9d720054a1cb2b8fb36ce0434d8/history.json --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=200 --max-count=90" --report-format json --report-path /tmp/watchdog-gitleaks-dbabb9d720054a1cb2b8fb36ce0434d8/history-1.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-1.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=290 --max-count=105" --report-format json --report-path /tmp/watchdog-gitleaks-dbabb9d720054a1cb2b8fb36ce0434d8/history-2.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-2.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=395 --max-count=120" --report-format json --report-path /tmp/watchdog-gitleaks-dbabb9d720054a1cb2b8fb36ce0434d8/history-3.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-3.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --log-opts "--full-history --all --skip=515 --max-count=137" --report-format json --report-path /tmp/watchdog-gitleaks-dbabb9d720054a1cb2b8fb36ce0434d8/history-4.json --exit-code 0 --source .0artifacts/raw/gitleaks-history-4.json
D28 · Secrets (history)gitleaks—gitleaks detect --no-git --no-banner --config /opt/gitleaks-rules/canine-gitleaks.toml --report-format json --report-path /tmp/watchdog-gitleaks-dbabb9d720054a1cb2b8fb36ce0434d8/tree.json --exit-code 0 --source .0artifacts/raw/gitleaks-tree.json
D29 · Static Analysis (SAST)semgrep—semgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --config /opt/semgrep-rules/canine-sast.yml --json --quiet --timeout 10 --timeout-threshold 3 --metrics off --exclude *.arrow --exclude *.avro --exclude *.csv --exclude *.dat --exclude *.db --exclude *.feather --exclude *.geojson --exclude *.h5 --exclude *.hdf5 --exclude *.jsonl --exclude *.log --exclude *.ndjson --exclude *.npy --exclude *.npz --exclude *.orc --exclude *.parquet --exclude *.pickle --exclude *.pkl --exclude *.psv --exclude *.sqlite --exclude *.sqlite3 --exclude *.tfrecord --exclude *.tsv --exclude *.txt .0artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (composer.json — not scanned yet).0—
D31 · IaC & Container Securitytrivy—trivy config --format json --quiet .4artifacts/raw/trivy-config.json
D32 · Data Compliance (PII/GDPR)semgrep—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.0—
D37 · Vulnerability-disclosure Policydisclosure—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.0—
D40 · Network Egress Confinementruntime-hardening—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.0—
D41 · Kernel & Syscall Confinementruntime-hardening—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.0—
D42 · Runtime Threat Enforcementruntime-hardening—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.0—
D43 · Malicious Dependenciesnone (dependency manifest found, not scanned for vulnerabilities here)—none (dependency manifest found, not scanned for vulnerabilities here): not applicable — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (composer.json — not scanned yet).0—

Run 01a1e938-77ca-7b38-99e1-7e2625b44408 · every finding is also locatable in findings.md, and the complete scoring record (with exit codes + durations) in sidecar.json.

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.

⬇ Findings, MITRE CWE-tagged .sarif⬇ Health changelog .md