Public report — filament, published 29 Jul 2026. Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version; ask the repo owner for the full report.
Watchdog 29-07-2026 @ 13:32 UTC Public
Code Health Audit

Filamentphp/filament

55% Adequate
CriticalWeakAdequateStrongExemplary
lower third — near Weak

Large · 250,184 LoC · rebuild ~2.6 person-years · weakest lens: Readiness (45%)

Grounded in facts. Every number here is computed, not narrated — reproducible, tool-backed, and traceable to a line of code. How to trust this ▸

34/35dimensions tool-verifieddeterministic · confidence 1.0 · 1 LLM-assisted, advisory
595findings with an exact file:lineof 607 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
35/112dimensions across the health lenses250184 LoC — wide & deep

Executive summary

Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.

filamentphp/filament is sound in substance but carries real gaps (55%). It is not in crisis, but the issues below raise the cost of changing it — friction its consumers ultimately inherit.

It is strongest in Domain Modelling (100%) — the domain model is expressive and well-guarded. Architecture (99%) is solid too.

The area that most needs attention is Readiness (45%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Code Health (54%) is the next concern — changes there are slower and more error-prone.

Leadership focus, highest impact first: Automate the release in CI (Deployment & Rollback); tests that import the unreached modules (directly or through… (Test Coverage); `tsc --noEmit` as package.json scripts and run them in CI (Tooling).

For scale: Large (~250,184 production lines); rebuilding it from scratch would take roughly ~2.6 person-years (~1–5 engineers). Approximate, ±~30%.

It builds on a genuinely strong Domain Modelling foundation (100%); the priorities above are the highest-leverage way to bring the rest up to that level.

How the score is built — each lens's share of the headline Width is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
Readiness 45% · 46% weightCode Health 54% · 25% weightMaturity 59% · 14% weightSecurity 81% · 8% weightArchitecture 99% · 4% weightDomain Modelling 100% · 2% weight

Raise Readiness 45 → 70 (the Healthy floor) ⇒ headline 55 → ~62.

Code composition — where the lines go
Tests 100%
New since the last scan (100+)

335 finding(s) are new versus the previous scan (2026-07-19) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.

  • D1 · CanExportRecords.setUp (cyclomatic 37) packages/actions/src/Concerns/CanExportRecords.php
  • D1 · SupportServiceProvider.packageBooted (cyclomatic 36) packages/support/src/SupportServiceProvider.php
  • D1 · EntanglesStateWithSingularRelationship.relationship (cyclomatic 33) packages/schemas/src/Components/Concerns/EntanglesStateWithSingularRelationship.php
  • D1 · Select.relationship (cyclomatic 26) packages/forms/src/Components/Select.php
  • D1 · AssociateAction.getRecordSelect (cyclomatic 22) packages/actions/src/AssociateAction.php
  • D1 · AttachAction.getRecordSelect (cyclomatic 22) packages/actions/src/AttachAction.php
  • D1 · ImportAction.setUp (cyclomatic 22) packages/actions/src/ImportAction.php
  • D1 · IconEntry.toEmbeddedHtml (cyclomatic 22) packages/infolists/src/Components/IconEntry.php
  • D1 · Type.setUp (cyclomatic 21) packages/forms/src/Components/MorphToSelect/Type.php
  • D1 · TestsActions.parseNestedActions (cyclomatic 20) packages/actions/src/Testing/TestsActions.php
  • D1 · NavigationManager.get (cyclomatic 20) packages/panels/src/Navigation/NavigationManager.php
  • D1 · IconColumn.toEmbeddedHtml (cyclomatic 20) packages/tables/src/Columns/IconColumn.php
  • D1 · CheckboxList.relationship (cyclomatic 17) packages/forms/src/Components/CheckboxList.php
  • D1 · SelectFilter.setUp (cyclomatic 17) packages/tables/src/Filters/SelectFilter.php
  • D1 · ModalTableSelect.saveStateToRelationship (cyclomatic 16) packages/forms/src/Components/ModalTableSelect.php
  • D1 · Select.saveStateToRelationship (cyclomatic 16) packages/forms/src/Components/Select.php
  • D1 · HasRelationManagers.getRelationManagersContentComponent (cyclomatic 16) packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php
  • D1 · Schema.renderEmbeddedHtml (cyclomatic 16) packages/schemas/src/Schema.php
  • D1 · CheckTranslationsCommand.scan (cyclomatic 16) packages/support/src/Commands/CheckTranslationsCommand.php
  • D1 · HasCluster.askForCluster (cyclomatic 16) packages/support/src/Commands/Concerns/HasCluster.php
  • D1 · ComponentAttributeBag.merge (cyclomatic 16) packages/support/src/View/ComponentAttributeBag.php
  • D1 · Summarizer.getState (cyclomatic 16) packages/tables/src/Columns/Summarizers/Summarizer.php
  • D2 · EntanglesStateWithSingularRelationship.relationship (cognitive 44) packages/schemas/src/Components/Concerns/EntanglesStateWithSingularRelationship.php
  • D2 · Select.relationship (cognitive 41) packages/forms/src/Components/Select.php
  • D2 · SupportServiceProvider.packageBooted (cognitive 38) packages/support/src/SupportServiceProvider.php
  • D2 · CanExportRecords.setUp (cognitive 37) packages/actions/src/Concerns/CanExportRecords.php
  • D2 · ListRecords.makeTable (cognitive 32) packages/panels/src/Resources/Pages/ListRecords.php
  • D2 · SelectFilter.setUp (cognitive 29) packages/tables/src/Filters/SelectFilter.php
  • D2 · AssociateAction.getRecordSelect (cognitive 27) packages/actions/src/AssociateAction.php
  • D2 · CheckboxList.relationship (cognitive 27) packages/forms/src/Components/CheckboxList.php
  • D2 · AttachAction.getRecordSelect (cognitive 25) packages/actions/src/AttachAction.php
  • D2 · TestsActions.parseNestedActions (cognitive 25) packages/actions/src/Testing/TestsActions.php
  • D2 · InteractsWithRelationshipTable.makeTable (cognitive 25) packages/panels/src/Resources/Concerns/InteractsWithRelationshipTable.php
  • D2 · HasRelationManagers.getRelationManagersContentComponent (cognitive 24) packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php
  • D2 · ImportAction.setUp (cognitive 23) packages/actions/src/ImportAction.php
  • D2 · TestsFilters.filterTable (cognitive 22) packages/tables/src/Testing/TestsFilters.php
  • D2 · Type.setUp (cognitive 21) packages/forms/src/Components/MorphToSelect/Type.php
  • D2 · HasCellState.getStateFromRecord (cognitive 21) packages/support/src/Concerns/HasCellState.php
  • D2 · BaseFileUpload.getValidationRules (cognitive 20) packages/forms/src/Components/BaseFileUpload.php
  • D2 · NavigationManager.get (cognitive 20) packages/panels/src/Navigation/NavigationManager.php
  • D2 · CanSearchRecords.applyGlobalSearchToTableQuery (cognitive 20) packages/tables/src/Concerns/CanSearchRecords.php
  • D2 · HasComponents.getComponentByStatePath (cognitive 19) packages/schemas/src/Concerns/HasComponents.php
  • D2 · SelectFilter.apply (cognitive 19) packages/tables/src/Filters/SelectFilter.php
  • D2 · DownloadImportFailureCsv.__invoke (cognitive 18) packages/actions/src/Imports/Http/Controllers/DownloadImportFailureCsv.php
  • D2 · CanAskForResource.askForResource (cognitive 18) packages/support/src/Commands/Concerns/CanAskForResource.php
  • D2 · HasCluster.askForCluster (cognitive 18) packages/support/src/Commands/Concerns/HasCluster.php
  • D2 · Summarizer.getState (cognitive 18) packages/tables/src/Columns/Summarizers/Summarizer.php
  • D2 · IconEntry.toEmbeddedHtml (cognitive 17) packages/infolists/src/Components/IconEntry.php
  • D2 · OptionsArrayStateCast.get (cognitive 17) packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php
  • D2 · ListTranslations.__invoke (cognitive 16) bin/TranslationTool/src/Commands/ListTranslations.php
  • D2 · ExporterClassGenerator.getExporterColumns (cognitive 16) packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php
  • D2 · EditAction.setUp (cognitive 16) packages/actions/src/EditAction.php
  • D2 · CanBeValidated.distinct (cognitive 16) packages/forms/src/Components/Concerns/CanBeValidated.php
  • D2 · Login.authenticate (cognitive 16) packages/panels/src/Auth/Pages/Login.php
  • D2 · HasState.getState (cognitive 16) packages/schemas/src/Concerns/HasState.php
  • D2 · IconColumn.toEmbeddedHtml (cognitive 16) packages/tables/src/Columns/IconColumn.php
  • D3 · FileTooLong: Components/Repeater.php packages/forms/src/Components/Repeater.php
  • D3 · FileTooLong: Components/Select.php packages/forms/src/Components/Select.php
  • D3 · FileTooLong: Components/RichEditor.php packages/forms/src/Components/RichEditor.php
  • D3 · FileTooLong: Components/Builder.php packages/forms/src/Components/Builder.php
  • D3 · FileTooLong: src/Action.php packages/actions/src/Action.php
  • D3 · FileTooLong: Components/FileUpload.php packages/forms/src/Components/FileUpload.php
  • D3 · FileTooLong: Components/Tabs.php packages/schemas/src/Components/Tabs.php
  • D3 · FileTooLong: Icons/Heroicon.php packages/support/src/Icons/Heroicon.php
  • D3 · FileTooLong: Components/BaseFileUpload.php packages/forms/src/Components/BaseFileUpload.php
  • D3 · FileTooLong: Columns/SelectColumn.php packages/tables/src/Columns/SelectColumn.php
  • D3 · FileTooLong: Components/ModalTableSelect.php packages/forms/src/Components/ModalTableSelect.php
  • D3 · FileTooLong: Concerns/CanBeValidated.php packages/forms/src/Components/Concerns/CanBeValidated.php
  • D3 · FileTooLong: Colors/Color.php packages/support/src/Colors/Color.php
  • D4 · Duplicated block (36 lines × 2) packages/schemas/src/Components/Concerns/CanGetStateFromRelationships.php
  • D4 · Duplicated block (32 lines × 3) packages/tables/src/Columns/CheckboxColumn.php
  • D4 · Duplicated block (32 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php
  • D4 · Duplicated block (30 lines × 2) packages/forms/src/Components/ModalTableSelect.php
  • D4 · Duplicated block (29 lines × 2) packages/tables/src/Columns/ColorColumn.php
  • D4 · Duplicated block (28 lines × 3) packages/forms/src/Components/ModalTableSelect.php
  • D4 · Duplicated block (28 lines × 2) packages/infolists/src/Components/ImageEntry.php
  • D4 · Duplicated block (28 lines × 2) packages/infolists/src/Components/ImageEntry.php
  • D4 · Duplicated block (27 lines × 5) packages/infolists/src/Components/CodeEntry.php
  • D4 · Duplicated block (27 lines × 2) packages/infolists/src/Components/RepeatableEntry.php
  • D4 · Duplicated block (26 lines × 3) packages/infolists/src/Components/ColorEntry.php
  • D4 · Duplicated block (25 lines × 2) packages/forms/src/Components/Builder.php
  • D4 · Duplicated block (25 lines × 2) packages/infolists/src/Components/TextEntry.php
  • D4 · Duplicated block (24 lines × 2) packages/forms/src/Components/Select.php
  • D4 · Duplicated block (24 lines × 2) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php
  • D4 · Duplicated block (24 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php
  • D4 · Duplicated block (23 lines × 6) packages/forms/src/Components/Builder.php
  • D4 · Duplicated block (23 lines × 2) packages/forms/src/Components/Select.php
  • D4 · Duplicated block (23 lines × 2) packages/support/src/SupportServiceProvider.php
  • D4 · Duplicated block (22 lines × 5) packages/support/src/View/Concerns/CanGenerateBadgeHtml.php
  • D4 · Duplicated block (22 lines × 2) packages/forms/src/Components/Builder.php
  • D4 · Duplicated block (22 lines × 2) packages/forms/src/Components/Builder.php
  • D4 · Duplicated block (22 lines × 2) packages/forms/src/Components/ToggleButtons.php
  • D4 · Duplicated block (22 lines × 2) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php
  • D4 · Duplicated block (21 lines × 4) packages/forms/src/Components/ModalTableSelect.php
  • D4 · Duplicated block (21 lines × 3) packages/actions/src/DeleteBulkAction.php
  • D4 · Duplicated block (21 lines × 2) packages/panels/src/Resources/Concerns/InteractsWithRelationshipTable.php
  • D4 · Duplicated block (20 lines × 3) packages/actions/src/DeleteBulkAction.php
  • D4 · Duplicated block (20 lines × 2) packages/actions/src/Imports/ImportColumn.php
  • D4 · Duplicated block (20 lines × 2) packages/forms/src/Components/ModalTableSelect.php
  • D4 · Duplicated block (20 lines × 2) packages/forms/src/Components/MorphToSelect/Type.php

A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.

Rebuild cost & value ~ Modeled — €130,000–€630,000
Cost to rebuild€130,000–€630,000 (1.2–3.9 person-years (2,091–6,634 h), ~1–5 engineers)
Domain complexityStandard — harder problems cost more per line
Quality factor0.8× (at 55% quality) — the last 20% of quality is most of the work
Size & shapeLarge · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)

This codebase represents roughly ~2.6 person-years of build effort (about ~€380,000 to rebuild). Its weakest lens is Readiness at 45% — the part of that asset most exposed by the findings below.

How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.1) — vertical slice × a 0.8× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).

Top priorities

The highest-leverage moves; the full ranked list is in the Roadmap below.

1
Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
+10.0 pts · Medium effort · Deployment & Rollback
2
Add tests that import the unreached modules (directly or through their public entry).
+10.0 pts · Medium effort · Test Coverage
3
Add `tsc --noEmit` as package.json scripts and run them in CI.
+8.1 pts · Medium effort · Tooling

Diagnosis — what's actually going on

Value concentrated against a weak lens · High · Value at risk
This is a Large asset (~2.6 person-years to rebuild), and its weakest lens is Readiness at 45%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
Evidence: valuation: Large, ~2.6 person-years rebuild (250,184 LoC) · weakest lens: Readiness 45%
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 7.3/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 2–5% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2 complexity, D4 duplication, D6 cohesion: averaging 7.3/10 across the code-quality signals
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.

At a glance — Code Health · 54% · Adequate · gated by R1

At a glance — Architecture · 99% · Exemplary

At a glance — Maturity · 59% · Adequate · gated by M2

At a glance — Readiness · 45% · Weak · gated by R4, P4

At a glance — Security · 81% · Adequate · gated by D36

At a glance — Domain Modelling · 100% · 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
A06:2021 — Vulnerable & Outdated Components8High / Critical

Roadmap

First, establish automated deployment and rollback capabilities in CI to ensure releases are repeatable and reversible. Next, increase test coverage by adding tests for all production modules to validate the codebase. Then, enforce type safety by migrating JavaScript files to TypeScript and adding a type-checking step to the CI pipeline. Finally, clean up the project by removing unused dependencies and explicitly declaring all imports.

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

Do thisHelpsEffortDimension
Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.+10.0 ptsMediumDeployment & Rollback
Add tests that import the unreached modules (directly or through their public entry).+10.0 ptsMediumTest Coverage
Add `tsc --noEmit` as package.json scripts and run them in CI.+8.1 ptsMediumTooling
Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.+7.0 ptsMediumDependency Hygiene
Migrate the remaining .js/.jsx files to TypeScript.+5.9 ptsMediumType Safety
Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.+5.0 ptsMediumCyclomatic Complexity
Start an ADR log (docs/adr/) recording significant decisions and their rationale.+4.5 ptsMediumArchitecture documentation
Add a build/run (quick start) section to the root README — the first thing a newcomer needs.+4.0 ptsMediumDocumentation (README)

File quality

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

FileScoreBandWorst signal
packages/infolists/src/Components/ImageEntry.php5.1MixedChange Coupling: Boundary-crossing change coupling: ImageEntry.php ↔ ImageColumn.php
packages/actions/src/Testing/TestsActions.php5.7MixedCyclomatic Complexity: TestsActions.parseNestedActions (cyclomatic 20)
package-lock.json5.8MixedOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
docs-assets/screenshots/package-lock.json5.8MixedOSV Dependency Vulnerabilities: High CVE: [GHSA redacted]
packages/panels/src/Resources/Pages/EditRecord.php6.5MixedChange Coupling: Boundary-crossing change coupling: EditRecord.php ↔ SettingsPage.php
packages/panels/src/Commands/MakeClusterCommand.php6.5MixedChange Coupling: Boundary-crossing change coupling: MakeClusterCommand.php ↔ HasResourcesLocation.php
composer.lock6.9MixedOSV Dependency Vulnerabilities: Medium vulnerability: [GHSA redacted]
packages/forms/src/Components/Builder.php7.0MixedCyclomatic Complexity: Builder.toEmbeddedHtml (cyclomatic 59)
packages/forms/src/Components/Repeater.php7.0MixedCyclomatic Complexity: Repeater.toEmbeddedHtml (cyclomatic 50)
packages/support/resources/js/utilities/select.js7.0MixedCyclomatic Complexity: openDropdown (cyclomatic 36)
packages/forms/src/Components/Select.php7.0MixedCyclomatic Complexity: Select.getOptionsFromRelationship (cyclomatic 30)
packages/actions/src/Action.php7.0MixedCyclomatic Complexity: Action.canRenderOptimizedLink (cyclomatic 27)
packages/infolists/src/Components/Concerns/CanFormatState.php7.0MixedCyclomatic Complexity: CanFormatState.formatState (cyclomatic 20)
packages/forms/src/Components/ModalTableSelect.php7.0MixedCyclomatic Complexity: ModalTableSelect.fillStateFromRelationship (cyclomatic 19)
packages/forms/src/Components/Field.php7.0MixedCyclomatic Complexity: Field.wrapEmbeddedHtml (cyclomatic 54)
packages/schemas/src/Components/Tabs.php7.0MixedCyclomatic Complexity: Tabs.toEmbeddedHtml (cyclomatic 49)
packages/actions/src/AssociateAction.php7.0MixedCyclomatic Complexity: AssociateAction.getRecordSelect (cyclomatic 22)
packages/tables/src/Testing/TestsColumns.php7.0MixedCode Duplication: Duplicated block (18 lines × 2)
packages/panels/src/Commands/MakePageCommand.php7.1MixedCyclomatic Complexity: MakePageCommand.createResourceManageRelatedRecordsPage (cyclomatic 35)
packages/tables/src/Columns/Concerns/CanFormatState.php7.1MixedCyclomatic Complexity: CanFormatState.formatState (cyclomatic 22)

Methodology & how to trust this report

Watchdog 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. 34 of 35 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 1 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.

Every figure here is one of three 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; ◐ Advisory — an LLM prose judgement. 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; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.

What we checked — 35 dimensions across the health lenses
D1D2D3D4D13D15D16D21D28D29D33D34D35D36D37D38AX5DM6M1M2M3M4P1P3P4R1R10R2R3R4R5R6R7R8R9

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, 595 of 607 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, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — 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
jscpdCode duplication✓ deterministic
Coverage (coverlet / dotnet-coverage)Line & branch coverage10.0.302✓ deterministic
NuGet / dotnetOutdated, vulnerable & deprecated dependencies10.0.302✓ 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✓ deterministic
LLM (sampled · advisory)Documentation quality, ADR conformance, naming — sampled over a bounded sample; advisory, never a deterministic measurementLocal LLM◐ LLM · sampled · advisory

Every finding is locatable in findings.md. Run 019fae13-77e5-7527-bf05-86fa902cf48a.

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.

  • D19 Documentation Quality — LLM provider failed — The model provider returned an unusable result, so this LLM-assisted dimension fell back to a measurement gap (confidence 0) rather than a penalty. Re-run with a reachable provider to score it.
  • D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.

Repo exclusion declarations: 14 pattern(s) declared (.gitattributes linguist-generated/vendored, .editorconfig generated_code) excluded 0 source file(s) from code-quality scoring. Declarations are the repo's own visible statement that a tree is machine-written or vendored — auditable in any diff, honored by GitHub the same way.

Limitations & what we did not check

Watchdog assesses the repository exactly as committed, and only the repository. By design it does 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 (jscpd) — 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.
  • 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.
  • D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
  • 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").
  • D33 JS/npm Dependency Vulnerabilities: JS/npm CVE matching reads package manifests and lockfiles — risk from how a dependency is used, and advisories not yet published, fall outside this scan.
  • 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.
  • DM6 Domain ↔ infrastructure boundary: Infrastructure reached through a hand-rolled wrapper, a domain-named facade, reflection, or a string-keyed service locator resolves to a non-infra type and isn't seen; the body scan is symbol resolution over syntax, not full dataflow. A clean result means "no resolved infra reference in a domain body", not a proof of purity.
  • M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
  • 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".

The LLM boundary

LLM-set scores this run (2): D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.

Dimensions

D1 · Cyclomatic Complexity6.5 / 10Adequate✓ 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: DocumentedVerifiedPrevented · effective 6.5 / 10 · rule-coverage 100% · ceiling Prevented

101 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was TextColumn.toEmbeddedHtml at 65. A further 6 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being IsAfterOperator.resolveRelativeDate at 31 — they are counted neither in the figure above nor in this dimension's score.

TextColumn.toEmbeddedHtml (cyclomatic 65)packages/tables/src/Columns/TextColumn.php:269
TextEntry.toEmbeddedHtml (cyclomatic 63)packages/infolists/src/Components/TextEntry.php:173
CanGenerateButtonHtml.generateButtonHtml (cyclomatic 63)packages/support/src/View/Concerns/CanGenerateButtonHtml.php:29
Builder.toEmbeddedHtml (cyclomatic 59)packages/forms/src/Components/Builder.php:1404
Field.wrapEmbeddedHtml (cyclomatic 54)packages/forms/src/Components/Field.php:289

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

What to do

  1. Resolve the 1 TextColumn.toEmbeddedHtml (cyclomatic 65) finding(s) in Cyclomatic Complexity — start with TextColumn.php. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 TextEntry.toEmbeddedHtml (cyclomatic 63) finding(s) in Cyclomatic Complexity — start with TextEntry.php. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 CanGenerateButtonHtml.generateButtonHtml (cyclomatic 63) finding(s) in Cyclomatic Complexity — start with CanGenerateButtonHtml.php. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D2 · Cognitive Complexity5.8 / 10Adequate✓ 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: DocumentedVerifiedPrevented · effective 5.8 / 10 · rule-coverage 100% · ceiling Prevented

154 method(s) exceeded the cognitive complexity threshold of 15; the worst was Builder.toEmbeddedHtml at 123.

Builder.toEmbeddedHtml (cognitive 123)packages/forms/src/Components/Builder.php:1404
Repeater.toTableEmbeddedHtml (cognitive 114)packages/forms/src/Components/Repeater.php:1895
Repeater.toEmbeddedHtml (cognitive 102)packages/forms/src/Components/Repeater.php:1521
TextColumn.toEmbeddedHtml (cognitive 101)packages/tables/src/Columns/TextColumn.php:269
Field.wrapEmbeddedHtml (cognitive 93)packages/forms/src/Components/Field.php:289

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

What to do

  1. Resolve the 1 Builder.toEmbeddedHtml (cognitive 123) finding(s) in Cognitive Complexity — start with Builder.php. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 Repeater.toTableEmbeddedHtml (cognitive 114) finding(s) in Cognitive Complexity — start with Repeater.php. — One of this dimension's main actionable groups (1 warning-level).
  3. Resolve the 1 Repeater.toEmbeddedHtml (cognitive 102) finding(s) in Cognitive Complexity — start with Repeater.php. — One of this dimension's main actionable groups (1 warning-level).
  4. Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D3 · God Classes8.9 / 10Strong✓ 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: DocumentedVerifiedPrevented · effective 8.9 / 10 · rule-coverage 100% · ceiling Prevented

63 god class(es) detected.

TooManyMethods: FilamentManager · ×50packages/panels/src/FilamentManager.php:44
FileTooLong: Components/Repeater.php · ×13packages/forms/src/Components/Repeater.php:0

What to do

  1. Resolve the 50 TooManyMethods finding(s) in God Classes — start with HasState.php (2), Page.php (2), CanFormatState.php (2). — One of this dimension's main actionable groups (50 warning-level).
  2. Resolve the 13 FileTooLong finding(s) in God Classes — start with Repeater.php, Select.php, RichEditor.php. — One of this dimension's main actionable groups (13 warning-level).
  3. Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.

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

D4 · Code Duplication9.5 / 10Exemplary✓ Tool-verified

What it measures: Copy-pasted code that should be shared instead.

Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.

Maturity: DocumentedVerifiedPrevented · effective 9.5 / 10 · rule-coverage 100% · ceiling Verified

252 duplicated block group(s) detected.

Duplicated block (17 lines × 2) · ×19packages/actions/src/Action.php:604
Duplicated block (18 lines × 2) · ×18packages/actions/src/AssociateAction.php:237
Duplicated block (11 lines × 2) · ×18packages/actions/src/ActionGroup.php:345
Duplicated block (14 lines × 2) · ×17packages/actions/src/AssociateAction.php:298
Duplicated block (15 lines × 2) · ×16packages/actions/src/Action.php:635

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

✓ On the Gold path — maintain.

Detailed fixes: d4_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: DocumentedVerifiedPrevented · 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 Hotspots9.7 / 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: DocumentedVerifiedPrevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

Top hotspots: packages/forms/src/Components/Repeater.php (11×50=550); packages/forms/src/Components/Builder.php (9×59=531); packages/support/src/View/Concerns/CanGenerateButtonHtml.php (7×63=441)

Hotspot: packages/forms/src/Components/Repeater.php · ×10packages/forms/src/Components/Repeater.php

✓ On the Gold path — maintain.

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

D16 · Bus Factor8.8 / 10Strong✓ 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: DocumentedVerifiedPrevented · effective 8.8 / 10 · rule-coverage 100% · ceiling Documented

54 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is packages/upgrade/src/rector.php.

Off-boarding risk: anonymized user #1
Further sole-owners (lower concentration)

What to do

  1. Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
  2. Resolve the 1 Further sole-owners (lower concentration) finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).

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

D21 · Naming Consistency / 10Exemplary◐ Sampled · advisory

What it measures: Whether names — types, methods, variables — are clear and consistent.

Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.

Maturity: DocumentedVerifiedPrevented · effective Exemplary / 10 · rule-coverage 100% · ceiling Verified

0 naming inconsistencies across 0 sampled symbols.

✓ On the Gold path — maintain.

Detailed fixes: d21_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: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.

Maturity: DocumentedVerifiedPrevented · 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: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

semgrep found no security issues.

✓ On the Gold path — maintain.

Detailed fixes: d29_recommendation.md.

D33 · JS/npm Dependency Vulnerabilities10.0 / 10Exemplary○ Nothing flagged

What it measures: Whether JavaScript/npm dependencies have known published vulnerabilities (CVEs) — the npm ecosystem's biggest risk.

Method: JS/npm CVE scan via trivy fs --scanners vuln over JS manifests (package.json/yarn.lock/pnpm-lock/bun.lockb); 0-10 tight normalizer. NotApplicable without JS manifests. Exhaustive, deterministic.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

No known-vulnerable JS/npm dependencies.

✓ On the Gold path — maintain.

Detailed fixes: d33_recommendation.md.

D34 · Knowledge Freshness9.9 / 10Exemplary✓ 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: DocumentedVerifiedPrevented · effective 9.9 / 10 · rule-coverage 100% · ceiling Documented

6 of 442 significant source file(s) are orphaned — their living knowledge has decayed to nothing, so no one currently understands them. The largest is packages/forms/src/Components/ColorPicker.php.

Further orphaned files (smaller)

✓ On the Gold path — maintain.

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

D35 · Change Coupling9.7 / 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; coupling through a build step, config, or non-source file isn't seen.

Maturity: DocumentedVerifiedPrevented · effective 9.7 / 10 · rule-coverage 100% · ceiling Documented

Strongest change-coupling: SpatieMediaLibraryImageEntry.php↔SpatieMediaLibraryImageColumn.php 92%; components.php↔table.php 90%; DisableEmailAuthenticationAction.php↔SetUpEmailAuthenticationAction.php 82%

Boundary-crossing change coupling: components.php ↔ table.php · ×6packages/forms/resources/lang/lus/components.php
Change coupling clique: TestsActions.php, TestsFormComponentActions.php, TestsInfolistActions.php, TestsActions.phppackages/actions/src/Testing/TestsActions.php

✓ On the Gold path — maintain.

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

D36 · Supply-chain Provenance & Signing2.5 / 10Weak✓ Tool-verified

What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.

Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.

Maturity: DocumentedVerifiedPrevented · effective 2.5 / 10 · rule-coverage 100% · ceiling Documented

1/4 supply-chain integrity signals present (provenance, signing, SBOM, pinned actions).

Secret passed as a command-line argument
No build provenance
No artifact signing
No SBOM

What to do

  1. Resolve the 1 Secret passed as a command-line argument finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
  2. Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
  3. Resolve the 1 No artifact signing finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).

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

D37 · Vulnerability-disclosure Policy10.0 / 10Exemplary✓ Tool-verified

What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.

Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.

Maturity: DocumentedVerifiedPrevented · effective 10.0 / 10 · rule-coverage 100% · ceiling Documented

A vulnerability-disclosure policy (SECURITY.md) is published with a reporting contact.

✓ On the Gold path — maintain.

Detailed fixes: d37_recommendation.md.

D38 · OSV Dependency Vulnerabilities5.9 / 10Adequate✓ Tool-verified

What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.

Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.

Maturity: DocumentedVerifiedPrevented · effective 5.9 / 10 · rule-coverage 100% · ceiling Documented

8 finding(s): 0 critical, 6 high, 2 medium, 0 low.

High CVE: [GHSA redacted] · ×3package-lock.jsondetected by osv-scanner finding
High vulnerability: [GHSA redacted] · ×3docs-assets/app/composer.lockdetected by osv-scanner finding
Medium vulnerability: [GHSA redacted]composer.lockdetected by osv-scanner finding
Medium CVE: [GHSA redacted]composer.lockdetected by osv-scanner finding

What to do

  1. Resolve the 3 High CVE finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (3). — One of this dimension's main actionable groups (3 issue-level).
  2. Resolve the 3 High vulnerability finding(s) in OSV Dependency Vulnerabilities — start with package-lock.json (2), composer.lock. — One of this dimension's main actionable groups (3 issue-level).
  3. Resolve the 1 Medium vulnerability finding(s) in OSV Dependency Vulnerabilities — start with composer.lock. — One of this dimension's main actionable groups (1 warning-level).

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

Frontend & cross-cutting dimensions

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

AX5 · Architecture & structure10.0 / 10Exemplary✓ Tool-verified

Other · Architecture — Whether the codebase has a recognisable, scale-appropriate structure (a named architectural style, or modular enough for its size) rather than being an ad-hoc ball of mud.

Method: Roslyn plus csproj analysis: architecture style detection (DDD, clean, vertical-slice, CQRS) and structure fitness for repo size. Deterministic.

DM6 · Domain ↔ infrastructure boundary10.0 / 10Exemplary✓ Tool-verified

Other · Domain Modelling — Whether the domain layer stays free of infrastructure dependencies — a domain aggregate fused to a persistence ORM (TypeORM/Prisma/MikroORM/Sequelize/Mongoose) on its own declaration (active-record) couples the domain to infrastructure. The clean-architecture dependency rule.

Method: Roslyn (DDD-gated): domain-layer types scanned for infrastructure usage in member SIGNATURES and inside method/accessor BODIES — resolved calls and object-creations into EF/Marten/HTTP/Mongo/Redis/message-bus types (not just a namespace allowlist). Deterministic, symbol-resolved, exhaustive over domain-layer bodies, DDD-native.

Coverage: Domain layer identified by NAMESPACE heuristic; infrastructure then resolved by symbol in member SIGNATURES and method/accessor BODIES — rename the layer and the check evaporates.

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

Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.

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

  • Add a build/run (quick start) section to the root README — the first thing a newcomer needs.
  • Add a 'Testing' section to the root README — how to run the test suite.
  • Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
  • Add a README to the 13 of 18 project(s) that lack one — worth up to 1.4 pts.
M2 · Architecture documentation2.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 — decisions aren't captured for future maintainers.

What to do

  • Start an ADR log (docs/adr/) recording significant decisions and their rationale.
M3 · Folder & project structure10.0 / 10Exemplary✓ Tool-verified

Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.

Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.

M4 · Documentation accuracy7.0 / 10Strong◐ Sampled · advisory

Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).

Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.

  • README omits the Filament UI component library entirely

What to do

  • Reconcile the README with reality: README omits the Filament UI component library entirely.
P1 · CI/CD gates10.0 / 10Exemplary○ Nothing flagged

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.

P3 · Security & performance tooling7.0 / 10Strong✓ 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.

What to do

  • Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
P4 · Deployment & Rollback2.0 / 10Critical✓ 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.

  • No release automation was found in CI — neither a deploy stage (Helm/Kubernetes/compose manifests, an orchestrated rollout) nor a publish job that ships the built artifact. Releases appear to be run by hand, which is slower, less repeatable and harder to reverse.

What to do

  • Automate the release in CI — a deploy stage for a service (Helm/Kubernetes manifests or an equivalent rollout), or a tag-triggered publish job for an artifact — so releases are repeatable and reversible.
R1 · Type Safety0.0 / 10Critical✓ Tool-verified

React / JS · Code Health — How much of the frontend is typed TypeScript vs untyped JavaScript.

Method: Frontend file inventory: the share of typed TypeScript vs untyped JavaScript across the source tree. Deterministic, exhaustive over frontend files.

  • 0 typed · 64 plain JS

What to do

  • Migrate the remaining .js/.jsx files to TypeScript.
R10 · Code Duplication8.0 / 10Strong✓ Tool-verified

React / JS · Code Health — Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm over JS/TS tokens, D-386).

Method: Copy-pasted token-identical blocks across the frontend (the D4 clone algorithm run over JS/TS tokens). Deterministic.

  • packages/forms/resources/js/components/file-upload.js:26 · packages/forms/resources/js/components/rich-editor.js:22 · packages/forms/resources/js/components/select.js:3 · packages/tables/resources/js/components/columns/select.js:3 — file-upload.js:26
  • packages/forms/resources/js/components/file-upload.js:59 · packages/forms/resources/js/components/rich-editor.js:28 · packages/forms/resources/js/components/select.js:15 · packages/tables/resources/js/components/columns/select.js:8 — file-upload.js:59
  • packages/notifications/resources/js/Notification.js:14 · packages/notifications/resources/js/Notification.js:213 · packages/notifications/resources/js/Notification.js:363 — Notification.js:14
  • packages/notifications/resources/js/Notification.js:79 · packages/notifications/resources/js/Notification.js:308 — Notification.js:79
  • packages/notifications/resources/js/Notification.js:285 · packages/notifications/resources/js/Notification.js:375 — Notification.js:285
  • packages/tables/resources/js/components/columns/checkbox.js:23 · packages/tables/resources/js/components/columns/toggle.js:23 — checkbox.js:23
  • packages/tables/resources/js/components/columns/select.js:90 · packages/tables/resources/js/components/columns/text-input.js:23 — select.js:90
  • packages/forms/resources/js/components/rich-editor/extension-local-files.js:151 · packages/forms/resources/js/components/rich-editor/extension-local-files.js:256 — extension-local-files.js:151

What to do

  • Extract the duplicated blocks into shared functions/components.
R2 · Cyclomatic Complexity6.6 / 10Adequate✓ Tool-verified

React / JS · Code Health — Per-function cyclomatic/cognitive complexity from the token-level function scanner (D-386) — real branching, not a regex heuristic.

Method: Per-function cyclomatic/cognitive complexity from a token-level function scanner (real branching, not a regex heuristic), computed over every frontend function. Deterministic.

  • Branch-heavy code is where defects cluster — extract decisions into smaller functions. (×8) — select.js:1389, select.js:358, select.js:681, …

What to do

  • Break down the listed branch-heavy functions; aim P95 cyclomatic ≤ 5.
R3 · Large Files8.1 / 10Strong✓ Tool-verified

React / JS · Code Health — How many components/modules exceed the large-file threshold.

Method: Components/modules exceeding the large-file threshold, counted exhaustively across the frontend source tree. Deterministic.

What to do

  • Split the oversized components into smaller, focused ones.
R4 · Test Coverage0.0 / 10Critical✓ Tool-verified

React / JS · Readiness — Static test reachability (D-386): the share of production files reachable from any test via the import graph — measured without running anything.

Method: Static test reachability: the share of production files reachable from any test via the import graph — measured without running anything. Deterministic.

  • No test imports this module directly or transitively — its behavior is unverified. (×8) — select.js, file-upload.js, date-time-picker.js, …

What to do

  • Add tests that import the unreached modules (directly or through their public entry).
R5 · Dependency Freshness10.0 / 10Exemplary✓ Tool-verified

React / JS · Readiness — How outdated the npm dependencies are (a maturity signal). JS/npm CVEs are scored separately in D33 (JS/npm Dependency Vulnerabilities).

Method: npm dependency staleness from manifest/registry metadata (a maturity signal; JS/npm CVEs are scored separately in D33). Deterministic.

R6 · Tooling6.7 / 10Adequate✓ Tool-verified

React / JS · Readiness — Whether the project wires up test, lint and typecheck — detected from each package.json script's COMMAND (eslint / tsc / vitest / jest / playwright), not just its name, and corroborated against CI-workflow invocations so a tool run only in CI still counts.

Method: package.json scanned for test/lint/typecheck script wiring. Deterministic presence check.

  • test ✓ · lint ✓ · typecheck ✗

What to do

  • Add `tsc --noEmit` as package.json scripts and run them in CI.
R7 · Dead Code10.0 / 10Exemplary✓ Tool-verified

React / JS · Code Health — Files unreachable from every application/tooling/test entry point, and exports nothing imports (module-graph reachability, D-386).

Method: Dead code: files unreachable from every application/tooling/test entry point plus exports nothing imports, via module-graph reachability. Deterministic, exhaustive over the import graph.

  • 65 file(s) (~13196 LoC) were excluded from dead-code analysis — declare main/module/exports or a conventional entry (src/index.*, an index.html script) so reachability can see this package.
R8 · Dependency Hygiene7.5 / 10Strong✓ Tool-verified

React / JS · Readiness — npm dependency truthfulness (D-386): unused dependencies, imports not declared anywhere, and type-/test-only packages shipped as production deps.

Method: npm dependency truthfulness: unused dependencies, imports declared nowhere, and type-/test-only packages shipped as production deps — from the manifest + import graph. Deterministic.

  • Declared in the root/package.json but never imported anywhere in that package or its workspace members — dead weight and attack surface. Verify against build tooling before removing. (×3)

What to do

  • Remove unused dependencies, declare unlisted imports explicitly, and demote type-/test-only packages to devDependencies.
R9 · Circular Imports10.0 / 10Exemplary✓ Tool-verified

React / JS · Architecture — Import cycles in the module graph (D-386) — files that can only be understood and changed together.

Method: Import cycles in the module graph, detected exhaustively over JS/TS imports (the same cycle detection as the .NET coupling dimension). Deterministic.

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 Health54%Adequate — gated by R1Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Architecture99%ExemplarySolid.
Maturity59%Adequate — gated by M2Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Readiness45%Weak — gated by R4, P4Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Security81%Adequate — gated by D36Capped at Fair by a Critical contributor — resolve it before relying on this lens.
Domain Modelling100%ExemplaryStrongest area.
Not included — 77 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.
  • AC7 A11y enforcement — No web markup found — accessibility is not applicable to this repository.
  • AX1 Captive dependencies — no DI registrations detected
  • AX10 Code composition — not assessed — code composition is computed by ROLE over the .NET document set and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX2 Stateful singletons — no singleton implementations detected
  • AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over the .NET project-reference graph and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX4 Dependency direction — not applicable to a vertical-slice architecture (the inward-dependency rule is for layered/clean styles)
  • AX6 Interface segregation — not assessed — interface segregation is computed over the .NET type surface and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX7 Slice cohesion — vertical-slice architecture detected, but individual slices could not be resolved from namespaces or project layout
  • AX8 Test isolation — not assessed — test isolation is computed from the .NET project graph (which projects are test projects, and what they reference) and no such graph was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
  • AXB2 Runtime readiness — no data
  • C1 Data Protection — Not assessed: these personal data controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks personal data 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.
  • C2 Access Controls — Not assessed: these authorization controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks authorization 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.
  • C3 Audit Trail — Not assessed: these audit controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks audit 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.
  • C4 Data Retention — Not assessed: these retention controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks retention 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.
  • C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom is NOT evidence that this repository lacks data-subject rights 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.
  • D10 Test Quality — ~92540 lines of test source are present (.php) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D11 Test Reliability — Test reliability not included
  • D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
  • D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (composer.json, package.json), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
  • D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
  • 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.
  • D19 Documentation Quality — LLM evaluation failed
  • 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.
  • D22 Internal API Consistency — No exposed public API
  • D23 Boundary Type-Coupling — Production source is present (.php) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["Acme.Billing"]`, `Catalog: ["Acme.Catalog"]`.
  • D24 Comment Value — No inline comments to assess — comment value is not applicable here.
  • D25 ADR Conformance — no ADRs to check
  • D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
  • 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, package.json — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
  • D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
  • D32 Data Compliance (PII/GDPR) — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.
  • D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
  • 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.
  • D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
  • D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .php, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
  • D8 Code Coverage — Coverage not included — suite not readable by the collector
  • D9 Test Distribution — Test source is present (.php) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
  • DM1 Aggregate boundaries — not gated in TS source-only: aggregate-vs-value-object classification is not 0-FP-separable (every class-holding-class reads alike) — advisory (the Swift/Dart/Rust parity)
  • DM2 Strongly-typed ids — not gated in TS source-only for the Stage-D scaffold: the branded-type idiom (`type Id = string & {__brand}`) is idiom-rare in TS (4 calibration carriers), so a bare-string-id gap is advisory — Stage-E diversification target (tsjs-stageC.md LESSON-A)
  • DM3 Integration-event coupling — not gated in TS source-only: a cross-package domain leak is not 0-FP-separable from a legitimate shared-kernel package, and most calibration repos are single-package — advisory (candidate-demote)
  • DM4 Rich vs anemic model — not gated in TS source-only for the Stage-D scaffold: the anemic-vs-rich gate is candidate-DETERMINISTIC for TS (behaviour + the component/DTO/readonly-VO exemptions) but the calibration corpus is high-quality (0 witnesses) — advisory, settled at the Stage-E holdout (the Rust/Swift/Dart precedent)
  • DM5 Encapsulated state — not gated in TS source-only for the Stage-D scaffold: TS idiom favours #private/private/readonly (idiom-rare public-mutable break), so DM5 is advisory pending Stage-E messier-repo witnesses (the Rust/Swift/Dart precedent)
  • DM7 Repository granularity — not gated in TS source-only: 'a repository per CHILD entity' needs the aggregate-root structure, which is not source-resolvable; the softest gated dim — advisory
  • ED1 Event-Driven — not run — 0/3 markers found
  • ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
  • ES1 Event Sourcing — not run — 0/3 markers found
  • GD1 Unfinished & placeholder code — no source files
  • IC1 Incompleteness & stubs — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • P12 CI test-gate honesty — no data
  • P2 Observability — Observability was not assessed: this check reads .NET source (ILogger/Serilog, OpenTelemetry, health checks) and no such source carries this repository's product — because it is written in another language, or because the solution failed to load. Absence of a .NET logging idiom is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
  • P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
  • P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
  • P7 Outbound HTTP resilience — not applicable — this isn't a service/API/worker
  • P8 Schema migrations — not assessed — schema-migration practice is read from EF Core usage in .NET source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (Clover XML — `vendor/bin/phpunit --coverage-clover coverage.xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
  • PF1 Benchmark discipline — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF2 Allocation hygiene — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • PF3 Async & latency hygiene — Performance was not assessed: this lens reads .NET source (allocation-aware APIs — Span/Memory, ArrayPool/ObjectPool, stackalloc — and a BenchmarkDotNet suite) and no such source was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
  • R11 Import Boundaries — No recognizable feature-sliced/layered src layout — boundary rules not applicable.
  • S1 Web-Security Posture — Not assessed: these web-security controls are read from C# source (attributes, middleware, entity/column names, guard methods) and no C# source was loaded for this repository — because it is written in another language, or the solution failed to load. Absence of a .NET idiom 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.
  • SC1 Supply-chain hygiene — no data
  • X1 Async correctness — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X2 Cancellation propagation — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X3 Exception handling — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X4 Structured logging — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository
  • X5 Nullable reference types — not analysed — these correctness checks are read from C# source and none was loaded for this repository, because it is written in another language or the solution failed to load. This is a gap in the analyzer, not a finding about this repository

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.

Issue — 12 finding(s)
D35 · Change Coupling · Boundary-crossing change coupling · ×6
  • Boundary-crossing change coupling: components.php ↔ table.php packages/forms/resources/lang/lus/components.php — `packages/forms/resources/lang/lus/components.php` (context forms) and `packages/tables/resources/lang/lus/table.php` (context tables) sit in DIFFERENT parts of the tree yet change together 90% of the time (9 of the 10 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: toggle.blade.php ↔ ToggleColumn.php packages/support/resources/views/components/toggle.blade.php — `packages/support/resources/views/components/toggle.blade.php` (context support) and `packages/tables/src/Columns/ToggleColumn.php` (context tables) sit in DIFFERENT parts of the tree yet change together 73% of the time (8 of the 11 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: SpatieMediaLibraryImageColumn.php ↔ SpatieTagsColumn.php packages/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php — `packages/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php` (context spatie-laravel-media-library-plugin) and `packages/spatie-laravel-tags-plugin/src/Tables/Columns/SpatieTagsColumn.php` (context spatie-laravel-tags-plugin) sit in DIFFERENT parts of the tree yet change together 67% of the time (8 of the 12 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: MakeClusterCommand.php ↔ HasResourcesLocation.php packages/panels/src/Commands/MakeClusterCommand.php — `packages/panels/src/Commands/MakeClusterCommand.php` (context panels) and `packages/support/src/Commands/Concerns/HasResourcesLocation.php` (context support) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: ImageEntry.php ↔ ImageColumn.php packages/infolists/src/Components/ImageEntry.php — `packages/infolists/src/Components/ImageEntry.php` (context infolists) and `packages/tables/src/Columns/ImageColumn.php` (context tables) sit in DIFFERENT parts of the tree yet change together 58% of the time (14 of the 24 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
  • Boundary-crossing change coupling: EditRecord.php ↔ SettingsPage.php packages/panels/src/Resources/Pages/EditRecord.php — `packages/panels/src/Resources/Pages/EditRecord.php` (context panels) and `packages/spatie-laravel-settings-plugin/src/Pages/SettingsPage.php` (context spatie-laravel-settings-plugin) sit in DIFFERENT parts of the tree yet change together 56% of the time (15 of the 27 commits that touched the less-changed of the two, renames followed) — the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can't see.
D38 · OSV Dependency Vulnerabilities · High CVE · ×3
  • High CVE: [GHSA redacted] package-lock.json — brace-expansion 1.1.14: [GHSA redacted] — brace-expansion is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin brace-expansion to 1.1.16 with an `overrides` entry). One upgrade of brace-expansion 1.1.14 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • High CVE: [GHSA redacted] docs-assets/screenshots/package-lock.json — js-yaml 4.2.0: [GHSA redacted] — js-yaml is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin js-yaml to 4.3.0 with an `overrides` entry).
  • High CVE: [GHSA redacted] package-lock.json — shell-quote 1.8.4: [GHSA redacted] — shell-quote is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin shell-quote to 1.9.0 with an `overrides` entry).
D38 · OSV Dependency Vulnerabilities · High vulnerability · ×3
  • High vulnerability: [GHSA redacted] docs-assets/app/composer.lock — laravel/framework v11.54.0: [GHSA redacted] — upgrade to 12.60.0. This is 1 of 2 advisories this scan raises against laravel/framework v11.54.0, and their fixed versions do not agree — anything below 12.61.1 still leaves at least one of them open, so 12.61.1 is the floor for this package, not this row's target alone. One upgrade of laravel/framework v11.54.0 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
  • High vulnerability: [GHSA redacted] docs-assets/app/package-lock.json — postcss 8.5.15: [GHSA redacted] — postcss is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or pin postcss to 8.5.18 with an `overrides` entry). (in 2 lockfiles)
  • High vulnerability: [GHSA redacted] docs-assets/screenshots/package-lock.json — sharp 0.32.6: [GHSA redacted] — upgrade to 0.35.0
Warning — 585 finding(s)
D3 · God Classes · TooManyMethods · ×50
  • TooManyMethods: FilamentManager packages/panels/src/FilamentManager.php:44 — TooManyMethods — 162 methods.
  • TooManyMethods: Repeater packages/forms/src/Components/Repeater.php:36 — TooManyMethods — 117 methods.
  • TooManyMethods: Builder packages/forms/src/Components/Builder.php:35 — TooManyMethods — 99 methods.
  • TooManyMethods: Select packages/forms/src/Components/Select.php:49 — TooManyMethods — 84 methods.
  • TooManyMethods: BaseFileUpload packages/forms/src/Components/BaseFileUpload.php:23 — TooManyMethods — 83 methods.
  • TooManyMethods: CanBeValidated packages/forms/src/Components/Concerns/CanBeValidated.php:23 — TooManyMethods — 82 methods.
  • TooManyMethods: HasAuth packages/panels/src/Panel/Concerns/HasAuth.php:24 — TooManyMethods — 80 methods.
  • TooManyMethods: FileUpload packages/forms/src/Components/FileUpload.php:21 — TooManyMethods — 75 methods.
  • TooManyMethods: CanOpenModal packages/actions/src/Concerns/CanOpenModal.php:20 — TooManyMethods — 74 methods.
  • TooManyMethods: RichEditor packages/forms/src/Components/RichEditor.php:48 — TooManyMethods — 72 methods.
  • TooManyMethods: HasState packages/schemas/src/Components/Concerns/HasState.php:23 — TooManyMethods — 72 methods.
  • TooManyMethods: Action packages/actions/src/Action.php:51 — TooManyMethods — 71 methods.
  • TooManyMethods: SelectColumn packages/tables/src/Columns/SelectColumn.php:40 — TooManyMethods — 66 methods.
  • TooManyMethods: ImportColumn packages/actions/src/Imports/ImportColumn.php:19 — TooManyMethods — 61 methods.
  • TooManyMethods: DateTimePicker packages/forms/src/Components/DateTimePicker.php:24 — TooManyMethods — 58 methods.
  • TooManyMethods: InteractsWithRelationshipTable packages/panels/src/Resources/Concerns/InteractsWithRelationshipTable.php:16 — TooManyMethods — 51 methods.
  • TooManyMethods: Slider packages/forms/src/Components/Slider.php:21 — TooManyMethods — 50 methods.
  • TooManyMethods: Page packages/panels/src/Pages/Page.php:33 — TooManyMethods — 49 methods.
  • TooManyMethods: ResourceClassGenerator packages/panels/src/Commands/FileGenerators/Resources/ResourceClassGenerator.php:28 — TooManyMethods — 48 methods.
  • TooManyMethods: ActionGroup packages/actions/src/ActionGroup.php:38 — TooManyMethods — 46 methods.
  • TooManyMethods: ImageEntry packages/infolists/src/Components/ImageEntry.php:24 — TooManyMethods — 46 methods.
  • TooManyMethods: HasComponents packages/panels/src/Panel/Concerns/HasComponents.php:30 — TooManyMethods — 44 methods.
  • TooManyMethods: HasTenancy packages/panels/src/Panel/Concerns/HasTenancy.php:17 — TooManyMethods — 44 methods.
  • TooManyMethods: KeyValue packages/forms/src/Components/KeyValue.php:17 — TooManyMethods — 43 methods.
  • TooManyMethods: ImageColumn packages/tables/src/Columns/ImageColumn.php:24 — TooManyMethods — 43 methods.
  • + 25 more in this group — see findings.md.
D4 · Code Duplication · Duplicated block (17 lines × 2) · ×19
  • Duplicated block (17 lines × 2) packages/actions/src/Action.php:604 — packages/actions/src/Action.php:604-620 | packages/actions/src/ActionGroup.php:418-434
  • Duplicated block (17 lines × 2) packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:138 — packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:138-154 | packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:96-112
  • Duplicated block (17 lines × 2) packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:128 — packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:128-144 | packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:56-72
  • Duplicated block (17 lines × 2) packages/actions/src/Concerns/CanExportRecords.php:362 — packages/actions/src/Concerns/CanExportRecords.php:362-378 | packages/actions/src/ImportAction.php:340-356
  • Duplicated block (17 lines × 2) packages/actions/src/ForceDeleteAction.php:42 — packages/actions/src/ForceDeleteAction.php:42-58 | packages/actions/src/RestoreAction.php:48-64
  • Duplicated block (17 lines × 2) packages/forms/src/Components/Builder.php:266 — packages/forms/src/Components/Builder.php:266-288 | packages/forms/src/Components/Repeater.php:296-312
  • Duplicated block (17 lines × 2) packages/forms/src/Components/Concerns/CanBeValidated.php:645 — packages/forms/src/Components/Concerns/CanBeValidated.php:645-661 | packages/forms/src/Components/Concerns/CanFixIndistinctState.php:22-38
  • Duplicated block (17 lines × 2) packages/forms/src/Components/Concerns/HasHint.php:73 — packages/forms/src/Components/Concerns/HasHint.php:73-89 | packages/infolists/src/Components/Concerns/HasHint.php:72-88
  • Duplicated block (17 lines × 2) packages/forms/src/Components/DateTimePicker.php:300 — packages/forms/src/Components/DateTimePicker.php:300-316 | packages/forms/src/Components/TextInput.php:390-406
  • Duplicated block (17 lines × 2) packages/forms/src/Components/Repeater.php:1577 — packages/forms/src/Components/Repeater.php:1577-1593 | packages/forms/src/Components/Repeater.php:1790-1806
  • Duplicated block (17 lines × 2) packages/forms/src/Testing/TestsForms.php:87 — packages/forms/src/Testing/TestsForms.php:87-103 | packages/forms/src/Testing/TestsForms.php:122-138
  • Duplicated block (17 lines × 2) packages/infolists/src/Components/TextEntry.php:107 — packages/infolists/src/Components/TextEntry.php:107-123 | packages/tables/src/Columns/TextColumn.php:114-130
  • Duplicated block (17 lines × 2) packages/panels/src/Commands/MakePageCommand.php:251 — packages/panels/src/Commands/MakePageCommand.php:251-267 | packages/widgets/src/Commands/MakeWidgetCommand.php:267-283
  • Duplicated block (17 lines × 2) packages/query-builder/src/Models/Scopes/QueryBuilderScope.php:113 — packages/query-builder/src/Models/Scopes/QueryBuilderScope.php:113-129 | packages/tables/src/Filters/QueryBuilder.php:447-463
  • Duplicated block (17 lines × 2) packages/schemas/src/Components/Concerns/BelongsToModel.php:47 — packages/schemas/src/Components/Concerns/BelongsToModel.php:47-63 | packages/schemas/src/Components/Concerns/BelongsToModel.php:78-94
  • Duplicated block (17 lines × 2) packages/support/src/Concerns/HasCellState.php:349 — packages/support/src/Concerns/HasCellState.php:349-365 | packages/support/src/Concerns/HasCellState.php:380-396
  • Duplicated block (17 lines × 2) packages/support/src/View/Concerns/CanGenerateButtonHtml.php:238 — packages/support/src/View/Concerns/CanGenerateButtonHtml.php:238-254 | packages/support/src/View/Concerns/CanGenerateLinkHtml.php:176-192
  • Duplicated block (17 lines × 2) packages/tables/src/Columns/SelectColumn.php:625 — packages/tables/src/Columns/SelectColumn.php:625-641 | packages/tables/src/Columns/SelectColumn.php:689-705
  • Duplicated block (17 lines × 2) packages/tables/src/Testing/TestsColumns.php:313 — packages/tables/src/Testing/TestsColumns.php:313-329 | packages/tables/src/Testing/TestsColumns.php:351-367
D4 · Code Duplication · Duplicated block (18 lines × 2) · ×18
  • Duplicated block (18 lines × 2) packages/actions/src/AssociateAction.php:237 — packages/actions/src/AssociateAction.php:237-254 | packages/actions/src/AttachAction.php:255-272
  • Duplicated block (18 lines × 2) packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:116 — packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:116-133 | packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:118-135
  • Duplicated block (18 lines × 2) packages/actions/src/Concerns/CanExportRecords.php:218 — packages/actions/src/Concerns/CanExportRecords.php:218-235 | packages/actions/src/ImportAction.php:203-220
  • Duplicated block (18 lines × 2) packages/actions/src/Exports/Models/Export.php:60 — packages/actions/src/Exports/Models/Export.php:60-77 | packages/actions/src/Imports/Models/Import.php:66-83
  • Duplicated block (18 lines × 2) packages/forms/src/Components/Field.php:337 — packages/forms/src/Components/Field.php:337-358 | packages/schemas/src/Components/FusedGroup.php:309-326
  • Duplicated block (18 lines × 2) packages/forms/src/Components/ModalTableSelect.php:375 — packages/forms/src/Components/ModalTableSelect.php:375-392 | packages/forms/src/Components/Select.php:912-929
  • Duplicated block (18 lines × 2) packages/forms/src/Components/ModalTableSelect.php:406 — packages/forms/src/Components/ModalTableSelect.php:406-423 | packages/forms/src/Components/Select.php:943-960
  • Duplicated block (18 lines × 2) packages/forms/src/Testing/TestsForms.php:261 — packages/forms/src/Testing/TestsForms.php:261-278 | packages/forms/src/Testing/TestsForms.php:303-320
  • Duplicated block (18 lines × 2) packages/infolists/src/Components/Concerns/CanFormatState.php:430 — packages/infolists/src/Components/Concerns/CanFormatState.php:430-447 | packages/tables/src/Columns/Concerns/CanFormatState.php:438-455
  • Duplicated block (18 lines × 2) packages/infolists/src/Components/ImageEntry.php:216 — packages/infolists/src/Components/ImageEntry.php:216-233 | packages/tables/src/Columns/ImageColumn.php:210-227
  • Duplicated block (18 lines × 2) packages/panels/src/Auth/Pages/EditProfile.php:200 — packages/panels/src/Auth/Pages/EditProfile.php:200-217 | packages/panels/src/Pages/Tenancy/RegisterTenant.php:92-109
  • Duplicated block (18 lines × 2) packages/panels/src/Commands/FileGenerators/Resources/Pages/ResourceManageRelatedRecordsPageClassGenerator.php:302 — packages/panels/src/Commands/FileGenerators/Resources/Pages/ResourceManageRelatedRecordsPageClassGenerator.php:302-319 | packages/panels/src/Commands/FileGenerators/Resources/RelationManagerClassGenerator.php:324-341
  • Duplicated block (18 lines × 2) packages/panels/src/Commands/MakePageCommand.php:341 — packages/panels/src/Commands/MakePageCommand.php:341-358 | packages/spatie-laravel-settings-plugin/src/Commands/MakeSettingsPageCommand.php:236-253
  • Duplicated block (18 lines × 2) packages/support/src/SupportServiceProvider.php:255 — packages/support/src/SupportServiceProvider.php:255-272 | packages/support/src/View/ComponentAttributeBag.php:115-132
  • Duplicated block (18 lines × 2) packages/tables/src/Testing/TestsColumns.php:215 — packages/tables/src/Testing/TestsColumns.php:215-232 | packages/tables/src/Testing/TestsColumns.php:264-281
  • Duplicated block (18 lines × 2) packages/tables/src/Testing/TestsColumns.php:389 — packages/tables/src/Testing/TestsColumns.php:389-406 | packages/tables/src/Testing/TestsColumns.php:540-557
  • Duplicated block (18 lines × 2) packages/tables/src/Testing/TestsColumns.php:426 — packages/tables/src/Testing/TestsColumns.php:426-443 | packages/tables/src/Testing/TestsColumns.php:578-595
  • Duplicated block (18 lines × 2) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:146 — packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:146-163 | packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:188-205
D4 · Code Duplication · Duplicated block (11 lines × 2) · ×18
  • Duplicated block (11 lines × 2) packages/actions/src/ActionGroup.php:345 — packages/actions/src/ActionGroup.php:345-355 | packages/notifications/src/Notification.php:111-121
  • Duplicated block (11 lines × 2) packages/actions/src/AssociateAction.php:50 — packages/actions/src/AssociateAction.php:50-60 | packages/actions/src/AttachAction.php:66-76
  • Duplicated block (11 lines × 2) packages/actions/src/AssociateAction.php:327 — packages/actions/src/AssociateAction.php:327-337 | packages/actions/src/AttachAction.php:349-359
  • Duplicated block (11 lines × 2) packages/actions/src/AttachAction.php:224 — packages/actions/src/AttachAction.php:224-235 | packages/actions/src/AttachAction.php:333-343
  • Duplicated block (11 lines × 2) packages/actions/src/DetachBulkAction.php:28 — packages/actions/src/DetachBulkAction.php:28-38 | packages/actions/src/DissociateBulkAction.php:29-39
  • Duplicated block (11 lines × 2) packages/actions/src/Exports/ExportColumn.php:146 — packages/actions/src/Exports/ExportColumn.php:146-156 | packages/tables/src/Columns/Concerns/InteractsWithTableQuery.php:43-53
  • Duplicated block (11 lines × 2) packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:159 — packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:159-169 | packages/spatie-laravel-settings-plugin/src/Commands/FileGenerators/SettingsPageClassGenerator.php:198-208
  • Duplicated block (11 lines × 2) packages/forms/src/Components/Builder.php:200 — packages/forms/src/Components/Builder.php:200-210 | packages/forms/src/Components/Builder.php:295-305
  • Duplicated block (11 lines × 2) packages/forms/src/Components/Builder.php:1438 — packages/forms/src/Components/Builder.php:1438-1448 | packages/forms/src/Components/Repeater.php:1551-1561
  • Duplicated block (11 lines × 2) packages/forms/src/Components/Concerns/HasAffixes.php:184 — packages/forms/src/Components/Concerns/HasAffixes.php:184-194 | packages/infolists/src/Components/Concerns/HasAffixes.php:87-97
  • Duplicated block (11 lines × 2) packages/forms/src/Components/Concerns/HasAffixes.php:212 — packages/forms/src/Components/Concerns/HasAffixes.php:212-222 | packages/infolists/src/Components/Concerns/HasAffixes.php:115-125
  • Duplicated block (11 lines × 2) packages/panels/src/Commands/FileGenerators/Resources/Pages/ResourceManageRelatedRecordsPageClassGenerator.php:254 — packages/panels/src/Commands/FileGenerators/Resources/Pages/ResourceManageRelatedRecordsPageClassGenerator.php:254-264 | packages/panels/src/Commands/FileGenerators/Resources/RelationManagerClassGenerator.php:239-249
  • Duplicated block (11 lines × 2) packages/panels/src/Pages/Dashboard/Concerns/HasFilters.php:56 — packages/panels/src/Pages/Dashboard/Concerns/HasFilters.php:56-66 | packages/tables/src/Concerns/InteractsWithTable.php:277-287
  • Duplicated block (11 lines × 2) packages/panels/src/Panel/Concerns/HasTenancy.php:454 — packages/panels/src/Panel/Concerns/HasTenancy.php:454-464 | packages/panels/src/Panel/Concerns/HasUserMenu.php:126-136
  • Duplicated block (11 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:227 — packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:227-237 | packages/query-builder/src/Constraints/DateConstraint/Operators/IsBeforeOperator.php:227-237
  • Duplicated block (11 lines × 2) packages/schemas/src/Components/Actions.php:186 — packages/schemas/src/Components/Actions.php:186-197 | packages/schemas/src/Components/Flex.php:52-62
  • Duplicated block (11 lines × 2) packages/tables/src/Columns/Concerns/CanFormatState.php:225 — packages/tables/src/Columns/Concerns/CanFormatState.php:225-235 | packages/tables/src/Columns/Summarizers/Concerns/CanFormatState.php:53-63
  • Duplicated block (11 lines × 2) packages/tables/src/Testing/TestsSummaries.php:21 — packages/tables/src/Testing/TestsSummaries.php:21-31 | packages/tables/src/Testing/TestsSummaries.php:55-65
D4 · Code Duplication · Duplicated block (14 lines × 2) · ×17
  • Duplicated block (14 lines × 2) packages/actions/src/AssociateAction.php:298 — packages/actions/src/AssociateAction.php:298-311 | packages/actions/src/AttachAction.php:320-333
  • Duplicated block (14 lines × 2) packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:170 — packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:170-183 | packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:216-229
  • Duplicated block (14 lines × 2) packages/actions/src/Exports/Concerns/CanFormatState.php:135 — packages/actions/src/Exports/Concerns/CanFormatState.php:135-156 | packages/actions/src/Imports/Http/Controllers/DownloadImportFailureCsv.php:52-65
  • Duplicated block (14 lines × 2) packages/actions/src/Exports/Http/Controllers/DownloadExport.php:18 — packages/actions/src/Exports/Http/Controllers/DownloadExport.php:18-31 | packages/actions/src/Imports/Http/Controllers/DownloadImportFailureCsv.php:20-33
  • Duplicated block (14 lines × 2) packages/forms/src/Components/Builder.php:176 — packages/forms/src/Components/Builder.php:176-195 | packages/forms/src/Components/Repeater.php:222-235
  • Duplicated block (14 lines × 2) packages/forms/src/Components/Builder.php:619 — packages/forms/src/Components/Builder.php:619-632 | packages/forms/src/Components/Repeater.php:636-649
  • Duplicated block (14 lines × 2) packages/forms/src/Components/Builder.php:649 — packages/forms/src/Components/Builder.php:649-662 | packages/forms/src/Components/Repeater.php:666-679
  • Duplicated block (14 lines × 2) packages/forms/src/Components/ToggleButtons.php:132 — packages/forms/src/Components/ToggleButtons.php:132-145 | packages/forms/src/Components/ToggleButtons.php:210-224
  • Duplicated block (14 lines × 2) packages/panels/src/Auth/Pages/EditProfile.php:172 — packages/panels/src/Auth/Pages/EditProfile.php:172-185 | packages/panels/src/Auth/Pages/EmailVerification/EmailVerificationPrompt.php:77-90
  • Duplicated block (14 lines × 2) packages/panels/src/Auth/Pages/EmailVerification/EmailVerificationPrompt.php:46 — packages/panels/src/Auth/Pages/EmailVerification/EmailVerificationPrompt.php:46-59 | packages/panels/src/Auth/Pages/Register.php:167-180
  • Duplicated block (14 lines × 2) packages/panels/src/Navigation/NavigationManager.php:75 — packages/panels/src/Navigation/NavigationManager.php:75-88 | packages/panels/src/Pages/Concerns/HasSubNavigation.php:141-154
  • Duplicated block (14 lines × 2) packages/panels/src/Resources/Pages/ManageRelatedRecords.php:302 — packages/panels/src/Resources/Pages/ManageRelatedRecords.php:302-315 | packages/panels/src/Resources/RelationManagers/RelationManager.php:394-407
  • Duplicated block (14 lines × 2) packages/panels/src/Resources/Resource/Concerns/BelongsToParent.php:51 — packages/panels/src/Resources/Resource/Concerns/BelongsToParent.php:51-64 | packages/panels/src/Resources/Resource/Concerns/BelongsToTenant.php:49-62
  • Duplicated block (14 lines × 2) packages/query-builder/src/Constraints/RelationshipConstraint/Operators/IsRelatedToOperator.php:129 — packages/query-builder/src/Constraints/RelationshipConstraint/Operators/IsRelatedToOperator.php:129-142 | packages/tables/src/Filters/SelectFilter.php:346-359
  • Duplicated block (14 lines × 2) packages/schemas/src/Components/Tabs.php:433 — packages/schemas/src/Components/Tabs.php:433-447 | packages/schemas/src/Components/Tabs.php:748-761
  • Duplicated block (14 lines × 2) packages/schemas/src/Testing/TestsSchemas.php:210 — packages/schemas/src/Testing/TestsSchemas.php:210-223 | packages/schemas/src/Testing/TestsSchemas.php:239-252
  • Duplicated block (14 lines × 2) packages/tables/src/Testing/TestsColumns.php:98 — packages/tables/src/Testing/TestsColumns.php:98-111 | packages/tables/src/Testing/TestsColumns.php:136-149
D4 · Code Duplication · Duplicated block (15 lines × 2) · ×16
  • Duplicated block (15 lines × 2) packages/actions/src/Action.php:635 — packages/actions/src/Action.php:635-649 | packages/actions/src/ActionGroup.php:439-453
  • Duplicated block (15 lines × 2) packages/actions/src/Concerns/CanExportRecords.php:597 — packages/actions/src/Concerns/CanExportRecords.php:597-611 | packages/actions/src/ImportAction.php:700-714
  • Duplicated block (15 lines × 2) packages/actions/src/Imports/Importer.php:247 — packages/actions/src/Imports/Importer.php:247-261 | packages/actions/src/Imports/Importer.php:272-286
  • Duplicated block (15 lines × 2) packages/actions/src/Testing/TestsActions.php:415 — packages/actions/src/Testing/TestsActions.php:415-429 | packages/actions/src/Testing/TestsActions.php:464-478
  • Duplicated block (15 lines × 2) packages/forms/src/Components/Builder.php:342 — packages/forms/src/Components/Builder.php:342-356 | packages/forms/src/Components/Repeater.php:366-380
  • Duplicated block (15 lines × 2) packages/forms/src/Components/ModalTableSelect.php:299 — packages/forms/src/Components/ModalTableSelect.php:299-313 | packages/forms/src/Components/Select.php:841-855
  • Duplicated block (15 lines × 2) packages/forms/src/Components/Select.php:941 — packages/forms/src/Components/Select.php:941-955 | packages/tables/src/Filters/SelectFilter.php:472-486
  • Duplicated block (15 lines × 2) packages/forms/src/Components/Select.php:1089 — packages/forms/src/Components/Select.php:1089-1103 | packages/forms/src/Components/Select.php:1131-1145
  • Duplicated block (15 lines × 2) packages/forms/src/Components/Select.php:1794 — packages/forms/src/Components/Select.php:1794-1808 | packages/tables/src/Columns/SelectColumn.php:154-171
  • Duplicated block (15 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:200 — packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:200-214 | packages/query-builder/src/Constraints/DateConstraint/Operators/IsBeforeOperator.php:200-214
  • Duplicated block (15 lines × 2) packages/schemas/src/Concerns/InteractsWithSchemas.php:74 — packages/schemas/src/Concerns/InteractsWithSchemas.php:74-88 | packages/tables/src/Concerns/HasColumns.php:94-108
  • Duplicated block (15 lines × 2) packages/schemas/src/Testing/TestsSchemas.php:348 — packages/schemas/src/Testing/TestsSchemas.php:348-362 | packages/schemas/src/Testing/TestsSchemas.php:372-386
  • Duplicated block (15 lines × 2) packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:128 — packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:128-142 | packages/support/src/View/Concerns/CanGenerateLinkHtml.php:155-169
  • Duplicated block (15 lines × 2) packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:112 — packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:112-126 | packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:134-148
  • Duplicated block (15 lines × 2) packages/tables/src/Commands/MakeLivewireTableCommand.php:149 — packages/tables/src/Commands/MakeLivewireTableCommand.php:149-163 | packages/tables/src/Commands/MakeTableCommand.php:139-153
  • Duplicated block (15 lines × 2) packages/tables/src/Testing/TestsColumns.php:463 — packages/tables/src/Testing/TestsColumns.php:463-477 | packages/tables/src/Testing/TestsColumns.php:501-515
D4 · Code Duplication · Duplicated block (12 lines × 2) · ×16
  • Duplicated block (12 lines × 2) packages/forms/src/Components/Builder.php:389 — packages/forms/src/Components/Builder.php:389-400 | packages/forms/src/Components/Repeater.php:413-424
  • Duplicated block (12 lines × 2) packages/forms/src/Components/Builder.php:470 — packages/forms/src/Components/Builder.php:470-481 | packages/forms/src/Components/Repeater.php:494-505
  • Duplicated block (12 lines × 2) packages/forms/src/Components/Field.php:368 — packages/forms/src/Components/Field.php:368-379 | packages/schemas/src/Components/FusedGroup.php:333-345
  • Duplicated block (12 lines × 2) packages/forms/src/Components/FileUpload.php:532 — packages/forms/src/Components/FileUpload.php:532-543 | packages/forms/src/Components/FileUpload.php:549-560
  • Duplicated block (12 lines × 2) packages/forms/src/Components/Repeater.php:1770 — packages/forms/src/Components/Repeater.php:1770-1781 | packages/forms/src/Components/Repeater.php:1906-1917
  • Duplicated block (12 lines × 2) packages/forms/src/Components/Repeater.php:1807 — packages/forms/src/Components/Repeater.php:1807-1818 | packages/forms/src/Components/Repeater.php:1992-2003
  • Duplicated block (12 lines × 2) packages/panels/src/Commands/MakePageCommand.php:371 — packages/panels/src/Commands/MakePageCommand.php:371-382 | packages/widgets/src/Commands/MakeWidgetCommand.php:363-374
  • Duplicated block (12 lines × 2) packages/panels/src/Livewire/Concerns/HasTenantMenu.php:75 — packages/panels/src/Livewire/Concerns/HasTenantMenu.php:75-88 | packages/panels/src/Livewire/Concerns/HasUserMenu.php:65-76
  • Duplicated block (12 lines × 2) packages/panels/src/Livewire/Concerns/HasTenantMenu.php:93 — packages/panels/src/Livewire/Concerns/HasTenantMenu.php:93-104 | packages/panels/src/Livewire/Concerns/HasUserMenu.php:79-90
  • Duplicated block (12 lines × 2) packages/panels/src/Resources/Resource/Concerns/HasGlobalSearch.php:178 — packages/panels/src/Resources/Resource/Concerns/HasGlobalSearch.php:178-189 | packages/panels/src/Resources/Resource/Concerns/HasGlobalSearch.php:200-211
  • Duplicated block (12 lines × 2) packages/query-builder/src/Constraints/RelationshipConstraint/Operators/IsRelatedToOperator.php:285 — packages/query-builder/src/Constraints/RelationshipConstraint/Operators/IsRelatedToOperator.php:285-296 | packages/tables/src/Filters/Concerns/HasRelationship.php:107-118
  • Duplicated block (12 lines × 2) packages/schemas/src/Components/Concerns/HasState.php:989 — packages/schemas/src/Components/Concerns/HasState.php:989-1000 | packages/support/src/Concerns/HasCellState.php:100-111
  • Duplicated block (12 lines × 2) packages/schemas/src/Components/Tabs.php:403 — packages/schemas/src/Components/Tabs.php:403-416 | packages/schemas/src/Components/Tabs.php:468-479
  • Duplicated block (12 lines × 2) packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:96 — packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:96-107 | packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:118-129
  • Duplicated block (12 lines × 2) packages/tables/src/Testing/TestsFilters.php:114 — packages/tables/src/Testing/TestsFilters.php:114-125 | packages/tables/src/Testing/TestsFilters.php:135-146
  • Duplicated block (12 lines × 2) packages/upgrade/src/Rector/SimpleMethodChangesRector.php:188 — packages/upgrade/src/Rector/SimpleMethodChangesRector.php:188-199 | packages/upgrade/src/Rector/SimplePropertyChangesRector.php:177-188
D4 · Code Duplication · Duplicated block (10 lines × 2) · ×15
  • Duplicated block (10 lines × 2) packages/actions/src/Action.php:824 — packages/actions/src/Action.php:824-833 | packages/actions/src/Action.php:933-942
  • Duplicated block (10 lines × 2) packages/actions/src/AssociateAction.php:269 — packages/actions/src/AssociateAction.php:269-278 | packages/actions/src/AttachAction.php:289-298
  • Duplicated block (10 lines × 2) packages/actions/src/Imports/ImportColumn.php:438 — packages/actions/src/Imports/ImportColumn.php:438-447 | packages/actions/src/Imports/ImportColumn.php:493-502
  • Duplicated block (10 lines × 2) packages/forms/src/Components/Repeater.php:1822 — packages/forms/src/Components/Repeater.php:1822-1831 | packages/forms/src/Components/Repeater.php:2007-2016
  • Duplicated block (10 lines × 2) packages/infolists/src/Components/Concerns/CanFormatState.php:68 — packages/infolists/src/Components/Concerns/CanFormatState.php:68-77 | packages/infolists/src/Components/Concerns/CanFormatState.php:141-150
  • Duplicated block (10 lines × 2) packages/infolists/src/Components/Concerns/CanFormatState.php:98 — packages/infolists/src/Components/Concerns/CanFormatState.php:98-107 | packages/infolists/src/Components/Concerns/CanFormatState.php:191-200
  • Duplicated block (10 lines × 2) packages/infolists/src/Components/TextEntry.php:295 — packages/infolists/src/Components/TextEntry.php:295-304 | packages/tables/src/Columns/TextColumn.php:399-408
  • Duplicated block (10 lines × 2) packages/panels/src/Resources/Pages/CreateRecord.php:284 — packages/panels/src/Resources/Pages/CreateRecord.php:284-293 | packages/panels/src/Resources/Pages/EditRecord.php:352-361
  • Duplicated block (10 lines × 2) packages/schemas/src/Components/Component.php:194 — packages/schemas/src/Components/Component.php:194-203 | packages/schemas/src/Components/Flex.php:95-104
  • Duplicated block (10 lines × 2) packages/schemas/src/Components/Section.php:105 — packages/schemas/src/Components/Section.php:105-114 | packages/schemas/src/Components/Tabs.php:82-91
  • Duplicated block (10 lines × 2) packages/spatie-laravel-settings-plugin/src/Commands/MakeSettingsPageCommand.php:180 — packages/spatie-laravel-settings-plugin/src/Commands/MakeSettingsPageCommand.php:180-189 | packages/support/src/Commands/Concerns/CanAskForRelatedModel.php:27-36
  • Duplicated block (10 lines × 2) packages/support/src/Commands/Concerns/CanAskForResource.php:61 — packages/support/src/Commands/Concerns/CanAskForResource.php:61-70 | packages/support/src/Commands/Concerns/HasCluster.php:58-67
  • Duplicated block (10 lines × 2) packages/tables/src/Columns/Concerns/CanFormatState.php:68 — packages/tables/src/Columns/Concerns/CanFormatState.php:68-77 | packages/tables/src/Columns/Concerns/CanFormatState.php:141-150
  • Duplicated block (10 lines × 2) packages/tables/src/Columns/Concerns/CanFormatState.php:98 — packages/tables/src/Columns/Concerns/CanFormatState.php:98-107 | packages/tables/src/Columns/Concerns/CanFormatState.php:191-200
  • Duplicated block (10 lines × 2) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:315 — packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:315-324 | packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:342-351
D3 · God Classes · FileTooLong · ×13
  • FileTooLong: Components/Repeater.php packages/forms/src/Components/Repeater.php:0 — FileTooLong — 1309 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Components/Select.php packages/forms/src/Components/Select.php:0 — FileTooLong — 1112 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Components/RichEditor.php packages/forms/src/Components/RichEditor.php:0 — FileTooLong — 1093 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Components/Builder.php packages/forms/src/Components/Builder.php:0 — FileTooLong — 1008 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: src/Action.php packages/actions/src/Action.php:0 — FileTooLong — 745 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Components/FileUpload.php packages/forms/src/Components/FileUpload.php:0 — FileTooLong — 699 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Components/Tabs.php packages/schemas/src/Components/Tabs.php:0 — FileTooLong — 679 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Icons/Heroicon.php packages/support/src/Icons/Heroicon.php:0 — FileTooLong — 660 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Components/BaseFileUpload.php packages/forms/src/Components/BaseFileUpload.php:0 — FileTooLong — 589 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Columns/SelectColumn.php packages/tables/src/Columns/SelectColumn.php:0 — FileTooLong — 572 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Components/ModalTableSelect.php packages/forms/src/Components/ModalTableSelect.php:0 — FileTooLong — 547 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Concerns/CanBeValidated.php packages/forms/src/Components/Concerns/CanBeValidated.php:0 — FileTooLong — 507 significant lines (blank, comment-only and punctuation-only lines excluded).
  • FileTooLong: Colors/Color.php packages/support/src/Colors/Color.php:0 — FileTooLong — 504 significant lines (blank, comment-only and punctuation-only lines excluded).
D4 · Code Duplication · Duplicated block (13 lines × 2) · ×13
  • Duplicated block (13 lines × 2) packages/actions/src/DetachAction.php:28 — packages/actions/src/DetachAction.php:28-40 | packages/actions/src/DetachBulkAction.php:32-44
  • Duplicated block (13 lines × 2) packages/actions/src/DissociateAction.php:28 — packages/actions/src/DissociateAction.php:28-40 | packages/actions/src/DissociateBulkAction.php:33-45
  • Duplicated block (13 lines × 2) packages/forms/src/Components/Builder.php:431 — packages/forms/src/Components/Builder.php:431-443 | packages/forms/src/Components/Builder.php:471-483
  • Duplicated block (13 lines × 2) packages/forms/src/Components/ColorPicker.php:88 — packages/forms/src/Components/ColorPicker.php:88-100 | packages/forms/src/Components/Select.php:1854-1866
  • Duplicated block (13 lines × 2) packages/forms/src/Components/Concerns/CanBeValidated.php:172 — packages/forms/src/Components/Concerns/CanBeValidated.php:172-184 | packages/forms/src/Components/Concerns/CanBeValidated.php:209-221
  • Duplicated block (13 lines × 2) packages/forms/src/Components/Repeater.php:455 — packages/forms/src/Components/Repeater.php:455-467 | packages/forms/src/Components/Repeater.php:495-507
  • Duplicated block (13 lines × 2) packages/forms/src/Testing/TestsForms.php:194 — packages/forms/src/Testing/TestsForms.php:194-207 | packages/forms/src/Testing/TestsForms.php:231-243
  • Duplicated block (13 lines × 2) packages/notifications/src/Notification.php:251 — packages/notifications/src/Notification.php:251-263 | packages/notifications/src/Notification.php:296-308
  • Duplicated block (13 lines × 2) packages/schemas/src/Components/Concerns/HasState.php:866 — packages/schemas/src/Components/Concerns/HasState.php:866-878 | packages/schemas/src/Components/Concerns/HasState.php:898-910
  • Duplicated block (13 lines × 2) packages/schemas/src/Components/StateCasts/StripCharactersStateCast.php:18 — packages/schemas/src/Components/StateCasts/StripCharactersStateCast.php:18-30 | packages/schemas/src/Components/StateCasts/StripCharactersStateCast.php:35-47
  • Duplicated block (13 lines × 2) packages/support/src/View/Concerns/CanGenerateButtonHtml.php:142 — packages/support/src/View/Concerns/CanGenerateButtonHtml.php:142-154 | packages/support/src/View/Concerns/CanGenerateLinkHtml.php:131-143
  • Duplicated block (13 lines × 2) packages/tables/src/Columns/Column.php:117 — packages/tables/src/Columns/Column.php:117-129 | packages/tables/src/Columns/Layout/Component.php:148-160
  • Duplicated block (13 lines × 2) packages/tables/src/Testing/TestsColumns.php:27 — packages/tables/src/Testing/TestsColumns.php:27-39 | packages/tables/src/Testing/TestsColumns.php:49-61
D4 · Code Duplication · Duplicated block (16 lines × 2) · ×12
  • Duplicated block (16 lines × 2) packages/forms/src/Components/Builder.php:517 — packages/forms/src/Components/Builder.php:517-532 | packages/forms/src/Components/Repeater.php:534-549
  • Duplicated block (16 lines × 2) packages/forms/src/Components/CheckboxList.php:209 — packages/forms/src/Components/CheckboxList.php:209-224 | packages/forms/src/Components/Select.php:1155-1170
  • Duplicated block (16 lines × 2) packages/forms/src/Components/Repeater.php:1662 — packages/forms/src/Components/Repeater.php:1662-1677 | packages/forms/src/Components/Repeater.php:2020-2040
  • Duplicated block (16 lines × 2) packages/forms/src/Testing/TestsForms.php:382 — packages/forms/src/Testing/TestsForms.php:382-397 | packages/forms/src/Testing/TestsForms.php:419-434
  • Duplicated block (16 lines × 2) packages/infolists/src/Components/Concerns/CanFormatState.php:235 — packages/infolists/src/Components/Concerns/CanFormatState.php:235-250 | packages/tables/src/Columns/Concerns/CanFormatState.php:235-250
  • Duplicated block (16 lines × 2) packages/infolists/src/Components/IconEntry.php:334 — packages/infolists/src/Components/IconEntry.php:334-349 | packages/tables/src/Columns/IconColumn.php:361-376
  • Duplicated block (16 lines × 2) packages/panels/src/Pages/Tenancy/RegisterTenant.php:92 — packages/panels/src/Pages/Tenancy/RegisterTenant.php:92-107 | packages/spatie-laravel-settings-plugin/src/Pages/SettingsPage.php:84-99
  • Duplicated block (16 lines × 2) packages/schemas/src/Components/Concerns/HasState.php:1063 — packages/schemas/src/Components/Concerns/HasState.php:1063-1078 | packages/support/src/Concerns/HasCellState.php:127-142
  • Duplicated block (16 lines × 2) packages/schemas/src/Components/StateCasts/OptionStateCast.php:25 — packages/schemas/src/Components/StateCasts/OptionStateCast.php:25-40 | packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:38-53
  • Duplicated block (16 lines × 2) packages/schemas/src/Testing/TestsSchemas.php:27 — packages/schemas/src/Testing/TestsSchemas.php:27-42 | packages/schemas/src/Testing/TestsSchemas.php:63-78
  • Duplicated block (16 lines × 2) packages/schemas/src/Testing/TestsSchemas.php:91 — packages/schemas/src/Testing/TestsSchemas.php:91-106 | packages/schemas/src/Testing/TestsSchemas.php:120-135
  • Duplicated block (16 lines × 2) packages/spatie-laravel-media-library-plugin/src/Infolists/Components/SpatieMediaLibraryImageEntry.php:98 — packages/spatie-laravel-media-library-plugin/src/Infolists/Components/SpatieMediaLibraryImageEntry.php:98-113 | packages/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php:96-111
D15 · Churn × Complexity Hotspots · Hotspot · ×10
  • Hotspot: packages/forms/src/Components/Repeater.php packages/forms/src/Components/Repeater.php — packages/forms/src/Components/Repeater.php changed 11 times in last 90 days, max complexity 50. 5 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/forms/src/Components/Builder.php packages/forms/src/Components/Builder.php — packages/forms/src/Components/Builder.php changed 9 times in last 90 days, max complexity 59. 3 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/support/src/View/Concerns/CanGenerateButtonHtml.php packages/support/src/View/Concerns/CanGenerateButtonHtml.php — packages/support/src/View/Concerns/CanGenerateButtonHtml.php changed 7 times in last 90 days, max complexity 63. 3 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php — packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php changed 7 times in last 90 days, max complexity 47. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/tables/src/Columns/TextColumn.php packages/tables/src/Columns/TextColumn.php — packages/tables/src/Columns/TextColumn.php changed 5 times in last 90 days, max complexity 65. 1 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/infolists/src/Components/TextEntry.php packages/infolists/src/Components/TextEntry.php — packages/infolists/src/Components/TextEntry.php changed 5 times in last 90 days, max complexity 63. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/support/src/View/Concerns/CanGenerateLinkHtml.php packages/support/src/View/Concerns/CanGenerateLinkHtml.php — packages/support/src/View/Concerns/CanGenerateLinkHtml.php changed 6 times in last 90 days, max complexity 50. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/forms/src/Components/Field.php packages/forms/src/Components/Field.php — packages/forms/src/Components/Field.php changed 4 times in last 90 days, max complexity 54. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/forms/src/Components/Select.php packages/forms/src/Components/Select.php — packages/forms/src/Components/Select.php changed 7 times in last 90 days, max complexity 30. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
  • Hotspot: packages/schemas/src/Components/FusedGroup.php packages/schemas/src/Components/FusedGroup.php — packages/schemas/src/Components/FusedGroup.php changed 4 times in last 90 days, max complexity 48. 2 of those changes were fix/bug commits — a defect-dense hotspot worth prioritising.
D4 · Code Duplication · Duplicated block (6 lines × 2) · ×8
  • Duplicated block (6 lines × 2) packages/actions/src/Action.php:252 — packages/actions/src/Action.php:252-258 | packages/actions/src/ActionGroup.php:378-383
  • Duplicated block (6 lines × 2) packages/forms/src/Components/Select.php:153 — packages/forms/src/Components/Select.php:153-158 | packages/tables/src/Columns/SelectColumn.php:126-131
  • Duplicated block (6 lines × 2) packages/infolists/src/View/Components/IconEntryComponent/IconComponent.php:24 — packages/infolists/src/View/Components/IconEntryComponent/IconComponent.php:24-29 | packages/tables/src/View/Components/Columns/IconColumnComponent/IconComponent.php:24-29
  • Duplicated block (6 lines × 2) packages/panels/src/Auth/MultiFactor/App/Actions/DisableAppAuthenticationAction.php:32 — packages/panels/src/Auth/MultiFactor/App/Actions/DisableAppAuthenticationAction.php:32-37 | packages/panels/src/Auth/MultiFactor/Email/Actions/DisableEmailAuthenticationAction.php:35-40
  • Duplicated block (6 lines × 2) packages/panels/src/Resources/Pages/CreateRecord.php:118 — packages/panels/src/Resources/Pages/CreateRecord.php:118-123 | packages/panels/src/Resources/Pages/EditRecord.php:179-184
  • Duplicated block (6 lines × 2) packages/schemas/src/Components/Tabs.php:463 — packages/schemas/src/Components/Tabs.php:463-468 | packages/schemas/src/Components/Tabs.php:534-539
  • Duplicated block (6 lines × 2) packages/support/src/View/Components/DropdownComponent/HeaderComponent.php:18 — packages/support/src/View/Components/DropdownComponent/HeaderComponent.php:18-23 | packages/widgets/src/View/Components/StatsOverviewWidgetComponent/StatComponent/DescriptionComponent.php:18-23
  • Duplicated block (6 lines × 2) packages/tables/src/Columns/Summarizers/Summarizer.php:138 — packages/tables/src/Columns/Summarizers/Summarizer.php:138-143 | packages/tables/src/Concerns/CanSummarizeRecords.php:95-104
D4 · Code Duplication · Duplicated block (20 lines × 2) · ×6
  • Duplicated block (20 lines × 2) packages/actions/src/Imports/ImportColumn.php:464 — packages/actions/src/Imports/ImportColumn.php:464-483 | packages/actions/src/Imports/ImportColumn.php:519-538
  • Duplicated block (20 lines × 2) packages/forms/src/Components/ModalTableSelect.php:211 — packages/forms/src/Components/ModalTableSelect.php:211-230 | packages/forms/src/Components/Select.php:668-687
  • Duplicated block (20 lines × 2) packages/forms/src/Components/MorphToSelect/Type.php:117 — packages/forms/src/Components/MorphToSelect/Type.php:117-136 | packages/forms/src/Components/MorphToSelect/Type.php:167-186
  • Duplicated block (20 lines × 2) packages/infolists/src/Components/IconEntry.php:299 — packages/infolists/src/Components/IconEntry.php:299-318 | packages/tables/src/Columns/IconColumn.php:329-348
  • Duplicated block (20 lines × 2) packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:22 — packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:22-41 | packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:84-103
  • Duplicated block (20 lines × 2) packages/tables/src/Concerns/CanSearchRecords.php:155 — packages/tables/src/Concerns/CanSearchRecords.php:155-174 | packages/tables/src/Concerns/CanSearchRecords.php:181-200
D4 · Code Duplication · Duplicated block (19 lines × 2) · ×6
  • Duplicated block (19 lines × 2) packages/actions/src/Action.php:891 — packages/actions/src/Action.php:891-909 | packages/actions/src/Action.php:975-993
  • Duplicated block (19 lines × 2) packages/forms/src/Commands/MakeFormCommand.php:135 — packages/forms/src/Commands/MakeFormCommand.php:135-153 | packages/forms/src/Commands/MakeLivewireFormCommand.php:167-185
  • Duplicated block (19 lines × 2) packages/forms/src/Components/Field.php:466 — packages/forms/src/Components/Field.php:466-489 | packages/schemas/src/Components/FusedGroup.php:401-419
  • Duplicated block (19 lines × 2) packages/panels/src/Navigation/NavigationManager.php:219 — packages/panels/src/Navigation/NavigationManager.php:219-237 | packages/panels/src/Panel/Concerns/HasNavigation.php:58-76
  • Duplicated block (19 lines × 2) packages/spatie-laravel-media-library-plugin/src/Infolists/Components/SpatieMediaLibraryImageEntry.php:36 — packages/spatie-laravel-media-library-plugin/src/Infolists/Components/SpatieMediaLibraryImageEntry.php:36-54 | packages/spatie-laravel-media-library-plugin/src/Tables/Columns/SpatieMediaLibraryImageColumn.php:38-56
  • Duplicated block (19 lines × 2) packages/spatie-laravel-tags-plugin/src/Infolists/Components/SpatieTagsEntry.php:51 — packages/spatie-laravel-tags-plugin/src/Infolists/Components/SpatieTagsEntry.php:51-69 | packages/spatie-laravel-tags-plugin/src/Tables/Columns/SpatieTagsColumn.php:50-68
D4 · Code Duplication · Duplicated block (15 lines × 3) · ×6
  • Duplicated block (15 lines × 3) packages/actions/src/Action.php:1050 — packages/actions/src/Action.php:1050-1064 | packages/actions/src/Action.php:1124-1138 | packages/actions/src/Action.php:1160-1174
  • Duplicated block (15 lines × 3) packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:227 — packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:227-241 | packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:177-191 | packages/spatie-laravel-settings-plugin/src/Commands/FileGenerators/SettingsPageClassGenerator.php:251-265
  • Duplicated block (15 lines × 3) packages/forms/src/Testing/TestsForms.php:26 — packages/forms/src/Testing/TestsForms.php:26-40 | packages/forms/src/Testing/TestsForms.php:87-101 | packages/forms/src/Testing/TestsForms.php:122-136
  • Duplicated block (15 lines × 3) packages/query-builder/src/Constraints/RelationshipConstraint/Operators/EqualsOperator.php:57 — packages/query-builder/src/Constraints/RelationshipConstraint/Operators/EqualsOperator.php:57-71 | packages/query-builder/src/Constraints/RelationshipConstraint/Operators/HasMaxOperator.php:57-71 | packages/query-builder/src/Constraints/RelationshipConstraint/Operators/HasMinOperator.php:57-71
  • Duplicated block (15 lines × 3) packages/schemas/src/Components/Concerns/CanBeDisabled.php:35 — packages/schemas/src/Components/Concerns/CanBeDisabled.php:35-49 | packages/schemas/src/Components/Concerns/CanBeHidden.php:42-56 | packages/schemas/src/Components/Concerns/CanBeHidden.php:126-140
  • Duplicated block (15 lines × 3) packages/tables/src/Columns/Layout/Grid.php:65 — packages/tables/src/Columns/Layout/Grid.php:65-84 | packages/tables/src/Columns/Layout/Split.php:35-49 | packages/tables/src/Columns/Layout/Stack.php:44-64
D4 · Code Duplication · Duplicated block (7 lines × 2) · ×6
  • Duplicated block (7 lines × 2) packages/actions/src/AssociateAction.php:259 — packages/actions/src/AssociateAction.php:259-265 | packages/actions/src/AttachAction.php:277-284
  • Duplicated block (7 lines × 2) packages/actions/src/Exports/Downloaders/XlsxDownloader.php:42 — packages/actions/src/Exports/Downloaders/XlsxDownloader.php:42-48 | packages/actions/src/Exports/Jobs/CreateXlsxFile.php:64-70
  • Duplicated block (7 lines × 2) packages/actions/src/Exports/ExportColumn.php:124 — packages/actions/src/Exports/ExportColumn.php:124-130 | packages/tables/src/Columns/Concerns/InteractsWithTableQuery.php:21-27
  • Duplicated block (7 lines × 2) packages/panels/src/Auth/MultiFactor/Pages/SetUpRequiredMultiFactorAuthentication.php:56 — packages/panels/src/Auth/MultiFactor/Pages/SetUpRequiredMultiFactorAuthentication.php:56-62 | packages/panels/src/Auth/Pages/EditProfile.php:540-546
  • Duplicated block (7 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:245 — packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:245-251 | packages/query-builder/src/Constraints/DateConstraint/Operators/IsBeforeOperator.php:245-251
  • Duplicated block (7 lines × 2) packages/schemas/src/Components/Actions.php:210 — packages/schemas/src/Components/Actions.php:210-216 | packages/schemas/src/Components/Section.php:322-329
D4 · Code Duplication · Duplicated block (9 lines × 2) · ×5
  • Duplicated block (9 lines × 2) packages/forms/src/Components/Select.php:1728 — packages/forms/src/Components/Select.php:1728-1736 | packages/forms/src/Components/ToggleButtons.php:330-338
  • Duplicated block (9 lines × 2) packages/panels/src/Auth/MultiFactor/Email/Actions/DisableEmailAuthenticationAction.php:85 — packages/panels/src/Auth/MultiFactor/Email/Actions/DisableEmailAuthenticationAction.php:85-93 | packages/panels/src/Auth/MultiFactor/Email/Actions/SetUpEmailAuthenticationAction.php:87-95
  • Duplicated block (9 lines × 2) packages/panels/src/Resources/Pages/ManageRelatedRecords.php:123 — packages/panels/src/Resources/Pages/ManageRelatedRecords.php:123-131 | packages/panels/src/Resources/RelationManagers/RelationManager.php:294-302
  • Duplicated block (9 lines × 2) packages/tables/src/Concerns/HasBulkActions.php:108 — packages/tables/src/Concerns/HasBulkActions.php:108-116 | packages/tables/src/Concerns/HasBulkActions.php:181-190
  • Duplicated block (9 lines × 2) packages/tables/src/Filters/QueryBuilder.php:172 — packages/tables/src/Filters/QueryBuilder.php:172-180 | packages/tables/src/Filters/QueryBuilder.php:255-263
D4 · Code Duplication · Duplicated block (8 lines × 2) · ×5
  • Duplicated block (8 lines × 2) packages/actions/src/Action.php:1031 — packages/actions/src/Action.php:1031-1038 | packages/actions/src/Action.php:1141-1148
  • Duplicated block (8 lines × 2) packages/infolists/src/Components/Concerns/CanFormatState.php:140 — packages/infolists/src/Components/Concerns/CanFormatState.php:140-147 | packages/tables/src/Columns/Concerns/CanFormatState.php:140-147
  • Duplicated block (8 lines × 2) packages/infolists/src/Components/Concerns/CanFormatState.php:190 — packages/infolists/src/Components/Concerns/CanFormatState.php:190-197 | packages/tables/src/Columns/Concerns/CanFormatState.php:190-197
  • Duplicated block (8 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:287 — packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:287-294 | packages/query-builder/src/Constraints/DateConstraint/Operators/IsBeforeOperator.php:287-294
  • Duplicated block (8 lines × 2) packages/schemas/src/Components/EmptyState.php:90 — packages/schemas/src/Components/EmptyState.php:90-97 | packages/schemas/src/Components/Section.php:270-277
D4 · Code Duplication · Duplicated block (22 lines × 2) · ×4
  • Duplicated block (22 lines × 2) packages/forms/src/Components/Builder.php:1477 — packages/forms/src/Components/Builder.php:1477-1498 | packages/forms/src/Components/Repeater.php:1593-1614
  • Duplicated block (22 lines × 2) packages/forms/src/Components/Builder.php:1542 — packages/forms/src/Components/Builder.php:1542-1563 | packages/forms/src/Components/Repeater.php:1649-1670
  • Duplicated block (22 lines × 2) packages/forms/src/Components/ToggleButtons.php:110 — packages/forms/src/Components/ToggleButtons.php:110-131 | packages/forms/src/Components/ToggleButtons.php:189-210
  • Duplicated block (22 lines × 2) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:137 — packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:137-158 | packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:152-173
D4 · Code Duplication · Duplicated block (11 lines × 3) · ×4
  • Duplicated block (11 lines × 3) packages/forms/src/Components/MorphToSelect.php:272 — packages/forms/src/Components/MorphToSelect.php:272-282 | packages/forms/src/Components/RichEditor/RichEditorTool.php:155-165 | packages/infolists/src/Components/Entry.php:97-107
  • Duplicated block (11 lines × 3) packages/forms/src/Components/MorphToSelect/Type.php:148 — packages/forms/src/Components/MorphToSelect/Type.php:148-158 | packages/forms/src/Components/Select.php:1093-1104 | packages/forms/src/Components/Select.php:1135-1146
  • Duplicated block (11 lines × 3) packages/forms/src/Components/RichEditor.php:1356 — packages/forms/src/Components/RichEditor.php:1356-1366 | packages/forms/src/Components/RichEditor.php:1374-1384 | packages/forms/src/Components/RichEditor.php:1392-1402
  • Duplicated block (11 lines × 3) packages/support/src/View/Concerns/CanGenerateButtonHtml.php:65 — packages/support/src/View/Concerns/CanGenerateButtonHtml.php:65-75 | packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:56-66 | packages/support/src/View/Concerns/CanGenerateLinkHtml.php:65-75
D4 · Code Duplication · Duplicated block (24 lines × 2) · ×3
  • Duplicated block (24 lines × 2) packages/forms/src/Components/Select.php:594 — packages/forms/src/Components/Select.php:594-617 | packages/tables/src/Columns/SelectColumn.php:416-439
  • Duplicated block (24 lines × 2) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:59 — packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:59-82 | packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:78-102
  • Duplicated block (24 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:45 — packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:45-68 | packages/query-builder/src/Constraints/DateConstraint/Operators/IsBeforeOperator.php:45-68
D4 · Code Duplication · Duplicated block (18 lines × 3) · ×3
  • Duplicated block (18 lines × 3) packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:48 — packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:48-65 | packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:34-51 | packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:53-70
  • Duplicated block (18 lines × 3) packages/forms/src/Components/ModalTableSelect.php:793 — packages/forms/src/Components/ModalTableSelect.php:793-810 | packages/forms/src/Components/Select.php:1678-1695 | packages/tables/src/Columns/SelectColumn.php:898-915
  • Duplicated block (18 lines × 3) packages/panels/src/Pages/Tenancy/EditTenantProfile.php:127 — packages/panels/src/Pages/Tenancy/EditTenantProfile.php:127-144 | packages/panels/src/Resources/Pages/EditRecord.php:232-249 | packages/spatie-laravel-settings-plugin/src/Pages/SettingsPage.php:84-101
D4 · Code Duplication · Duplicated block (17 lines × 3) · ×3
  • Duplicated block (17 lines × 3) packages/forms/src/Commands/MakeFieldCommand.php:121 — packages/forms/src/Commands/MakeFieldCommand.php:121-137 | packages/infolists/src/Commands/MakeEntryCommand.php:121-137 | packages/schemas/src/Commands/MakeComponentCommand.php:137-153
  • Duplicated block (17 lines × 3) packages/forms/src/Commands/MakeLivewireFormCommand.php:236 — packages/forms/src/Commands/MakeLivewireFormCommand.php:236-252 | packages/schemas/src/Commands/MakeLivewireSchemaCommand.php:122-138 | packages/tables/src/Commands/MakeLivewireTableCommand.php:196-212
  • Duplicated block (17 lines × 3) packages/forms/src/Components/ModalTableSelect.php:252 — packages/forms/src/Components/ModalTableSelect.php:252-268 | packages/forms/src/Components/Select.php:812-828 | packages/tables/src/Filters/SelectFilter.php:422-438
D4 · Code Duplication · Duplicated block (5 lines × 2) · ×3
  • Duplicated block (5 lines × 2) packages/actions/src/Action.php:574 — packages/actions/src/Action.php:574-578 | packages/actions/src/ActionGroup.php:404-408
  • Duplicated block (5 lines × 2) packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php:158 — packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php:158-162 | packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php:195-199
  • Duplicated block (5 lines × 2) packages/panels/src/Resources/Pages/ManageRelatedRecords.php:283 — packages/panels/src/Resources/Pages/ManageRelatedRecords.php:283-287 | packages/panels/src/Resources/RelationManagers/RelationManager.php:375-379
D4 · Code Duplication · Duplicated block (28 lines × 2) · ×2
  • Duplicated block (28 lines × 2) packages/infolists/src/Components/ImageEntry.php:451 — packages/infolists/src/Components/ImageEntry.php:451-479 | packages/tables/src/Columns/ImageColumn.php:446-473
  • Duplicated block (28 lines × 2) packages/infolists/src/Components/ImageEntry.php:504 — packages/infolists/src/Components/ImageEntry.php:504-532 | packages/tables/src/Columns/ImageColumn.php:497-524
D4 · Code Duplication · Duplicated block (25 lines × 2) · ×2
  • Duplicated block (25 lines × 2) packages/forms/src/Components/Builder.php:1602 — packages/forms/src/Components/Builder.php:1602-1627 | packages/forms/src/Components/Repeater.php:1697-1721
  • Duplicated block (25 lines × 2) packages/infolists/src/Components/TextEntry.php:190 — packages/infolists/src/Components/TextEntry.php:190-214 | packages/tables/src/Columns/TextColumn.php:298-322
D4 · Code Duplication · Duplicated block (23 lines × 2) · ×2
  • Duplicated block (23 lines × 2) packages/forms/src/Components/Select.php:1302 — packages/forms/src/Components/Select.php:1302-1324 | packages/forms/src/Components/TableSelect.php:215-237
  • Duplicated block (23 lines × 2) packages/support/src/SupportServiceProvider.php:222 — packages/support/src/SupportServiceProvider.php:222-244 | packages/support/src/View/ComponentAttributeBag.php:75-97
D4 · Code Duplication · Duplicated block (18 lines × 4) · ×2
  • Duplicated block (18 lines × 4) packages/query-builder/src/Constraints/RelationshipConstraint/Operators/IsRelatedToOperator.php:263 — packages/query-builder/src/Constraints/RelationshipConstraint/Operators/IsRelatedToOperator.php:263-280 | packages/schemas/src/Components/Concerns/CanGetStateFromRelationships.php:32-49 | packages/tables/src/Grouping/Group.php:437-454 | packages/tables/src/Table/Concerns/CanSearchRecords.php:250-267
  • Duplicated block (18 lines × 4) packages/schemas/src/Components/StateCasts/EnumArrayStateCast.php:24 — packages/schemas/src/Components/StateCasts/EnumArrayStateCast.php:24-41 | packages/schemas/src/Components/StateCasts/EnumArrayStateCast.php:61-78 | packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:17-37 | packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:79-99
D4 · Code Duplication · Duplicated block (16 lines × 4) · ×2
  • Duplicated block (16 lines × 4) packages/forms/src/Components/Field.php:245 — packages/forms/src/Components/Field.php:245-266 | packages/infolists/src/Components/Entry.php:219-238 | packages/schemas/src/Components/Actions.php:150-165 | packages/schemas/src/Components/FusedGroup.php:201-218
  • Duplicated block (16 lines × 4) packages/query-builder/src/Constraints/TextConstraint/Operators/ContainsOperator.php:60 — packages/query-builder/src/Constraints/TextConstraint/Operators/ContainsOperator.php:60-75 | packages/query-builder/src/Constraints/TextConstraint/Operators/EndsWithOperator.php:60-75 | packages/query-builder/src/Constraints/TextConstraint/Operators/EqualsOperator.php:60-75 | packages/query-builder/src/Constraints/TextConstraint/Operators/StartsWithOperator.php:60-75
D4 · Code Duplication · Duplicated block (16 lines × 3) · ×2
  • Duplicated block (16 lines × 3) packages/forms/src/Components/Select.php:1041 — packages/forms/src/Components/Select.php:1041-1056 | packages/tables/src/Columns/SelectColumn.php:645-660 | packages/tables/src/Columns/SelectColumn.php:709-724
  • Duplicated block (16 lines × 3) packages/infolists/src/Components/Concerns/CanFormatState.php:265 — packages/infolists/src/Components/Concerns/CanFormatState.php:265-280 | packages/tables/src/Columns/Concerns/CanFormatState.php:265-280 | packages/tables/src/Columns/Summarizers/Concerns/CanFormatState.php:91-106
D4 · Code Duplication · Duplicated block (15 lines × 4) · ×2
  • Duplicated block (15 lines × 4) packages/forms/src/Components/Concerns/CanBeValidated.php:99 — packages/forms/src/Components/Concerns/CanBeValidated.php:99-113 | packages/forms/src/Components/Concerns/CanBeValidated.php:121-135 | packages/forms/src/Components/Concerns/CanBeValidated.php:143-157 | packages/forms/src/Components/Concerns/CanBeValidated.php:439-453
  • Duplicated block (15 lines × 4) packages/infolists/src/Components/Concerns/HasColor.php:32 — packages/infolists/src/Components/Concerns/HasColor.php:32-46 | packages/infolists/src/Components/Concerns/HasIcon.php:31-45 | packages/tables/src/Columns/Concerns/HasColor.php:32-46 | packages/tables/src/Columns/Concerns/HasIcon.php:31-45
D4 · Code Duplication · Duplicated block (14 lines × 4) · ×2
  • Duplicated block (14 lines × 4) packages/actions/src/SelectAction.php:58 — packages/actions/src/SelectAction.php:58-71 | packages/forms/src/Components/Concerns/HasOptions.php:44-57 | packages/query-builder/src/Constraints/SelectConstraint.php:136-149 | packages/tables/src/Filters/Concerns/HasOptions.php:46-59
  • Duplicated block (14 lines × 4) packages/panels/src/Commands/FileGenerators/Resources/ResourceClassGenerator.php:268 — packages/panels/src/Commands/FileGenerators/Resources/ResourceClassGenerator.php:268-281 | packages/panels/src/Commands/FileGenerators/Resources/Schemas/ResourceFormSchemaClassGenerator.php:72-85 | packages/panels/src/Commands/FileGenerators/Resources/Schemas/ResourceInfolistSchemaClassGenerator.php:71-84 | packages/panels/src/Commands/FileGenerators/Resources/Schemas/ResourceTableClassGenerator.php:77-90
D4 · Code Duplication · Duplicated block (14 lines × 3) · ×2
  • Duplicated block (14 lines × 3) packages/actions/src/Commands/MakeExporterCommand.php:125 — packages/actions/src/Commands/MakeExporterCommand.php:125-138 | packages/actions/src/Commands/MakeImporterCommand.php:132-145 | packages/panels/src/Commands/MakeResourceCommand.php:295-308
  • Duplicated block (14 lines × 3) packages/panels/src/Auth/Pages/Login.php:169 — packages/panels/src/Auth/Pages/Login.php:169-182 | packages/panels/src/Auth/Pages/PasswordReset/ResetPassword.php:150-163 | packages/panels/src/Auth/Pages/Register.php:135-148
D4 · Code Duplication · Duplicated block (12 lines × 3) · ×2
  • Duplicated block (12 lines × 3) packages/forms/src/Components/Select.php:1000 — packages/forms/src/Components/Select.php:1000-1011 | packages/forms/src/Components/Select.php:1088-1099 | packages/forms/src/Components/Select.php:1130-1141
  • Duplicated block (12 lines × 3) packages/query-builder/src/Constraints/NumberConstraint/Operators/EqualsOperator.php:61 — packages/query-builder/src/Constraints/NumberConstraint/Operators/EqualsOperator.php:61-72 | packages/query-builder/src/Constraints/NumberConstraint/Operators/IsMaxOperator.php:61-72 | packages/query-builder/src/Constraints/NumberConstraint/Operators/IsMinOperator.php:61-72
D1 · Cyclomatic Complexity · TextColumn.toEmbeddedHtml (cyclomatic 65) · ×1
  • TextColumn.toEmbeddedHtml (cyclomatic 65) packages/tables/src/Columns/TextColumn.php:269 — TextColumn.toEmbeddedHtml has cyclomatic complexity 65 (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.
D1 · Cyclomatic Complexity · TextEntry.toEmbeddedHtml (cyclomatic 63) · ×1
  • TextEntry.toEmbeddedHtml (cyclomatic 63) packages/infolists/src/Components/TextEntry.php:173 — TextEntry.toEmbeddedHtml has cyclomatic complexity 63 (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.
D1 · Cyclomatic Complexity · CanGenerateButtonHtml.generateButtonHtml (cyclomatic 63) · ×1
  • CanGenerateButtonHtml.generateButtonHtml (cyclomatic 63) packages/support/src/View/Concerns/CanGenerateButtonHtml.php:29 — CanGenerateButtonHtml.generateButtonHtml has cyclomatic complexity 63 (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.
D1 · Cyclomatic Complexity · Builder.toEmbeddedHtml (cyclomatic 59) · ×1
  • Builder.toEmbeddedHtml (cyclomatic 59) packages/forms/src/Components/Builder.php:1404 — Builder.toEmbeddedHtml has cyclomatic complexity 59 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Field.wrapEmbeddedHtml (cyclomatic 54) · ×1
  • Field.wrapEmbeddedHtml (cyclomatic 54) packages/forms/src/Components/Field.php:289 — Field.wrapEmbeddedHtml has cyclomatic complexity 54 (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.
D1 · Cyclomatic Complexity · Field.wrapInputHtml (cyclomatic 51) · ×1
  • Field.wrapInputHtml (cyclomatic 51) packages/forms/src/Components/Field.php:521 — Field.wrapInputHtml has cyclomatic complexity 51 (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.
D1 · Cyclomatic Complexity · Repeater.toEmbeddedHtml (cyclomatic 50) · ×1
  • Repeater.toEmbeddedHtml (cyclomatic 50) packages/forms/src/Components/Repeater.php:1521 — Repeater.toEmbeddedHtml has cyclomatic complexity 50 (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.
D1 · Cyclomatic Complexity · CanGenerateLinkHtml.generateLinkHtml (cyclomatic 50) · ×1
  • CanGenerateLinkHtml.generateLinkHtml (cyclomatic 50) packages/support/src/View/Concerns/CanGenerateLinkHtml.php:30 — CanGenerateLinkHtml.generateLinkHtml has cyclomatic complexity 50 (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.
D1 · Cyclomatic Complexity · Tabs.toEmbeddedHtml (cyclomatic 49) · ×1
  • Tabs.toEmbeddedHtml (cyclomatic 49) packages/schemas/src/Components/Tabs.php:257 — Tabs.toEmbeddedHtml has cyclomatic complexity 49 (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.
D1 · Cyclomatic Complexity · FusedGroup.toEmbeddedHtml (cyclomatic 48) · ×1
  • FusedGroup.toEmbeddedHtml (cyclomatic 48) packages/schemas/src/Components/FusedGroup.php:221 — FusedGroup.toEmbeddedHtml has cyclomatic complexity 48 (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.
D1 · Cyclomatic Complexity · Section.toEmbeddedHtml (cyclomatic 47) · ×1
  • Section.toEmbeddedHtml (cyclomatic 47) packages/schemas/src/Components/Section.php:260 — Section.toEmbeddedHtml has cyclomatic complexity 47 (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.
D1 · Cyclomatic Complexity · CanGenerateIconButtonHtml.generateIconButtonHtml (cyclomatic 47) · ×1
  • CanGenerateIconButtonHtml.generateIconButtonHtml (cyclomatic 47) packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:28 — CanGenerateIconButtonHtml.generateIconButtonHtml has cyclomatic complexity 47 (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.
D1 · Cyclomatic Complexity · CanGenerateModelForms.getFormComponents (cyclomatic 44) · ×1
  • CanGenerateModelForms.getFormComponents (cyclomatic 44) packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:46 — CanGenerateModelForms.getFormComponents has cyclomatic complexity 44 (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.
D1 · Cyclomatic Complexity · SettingsPageClassGenerator.getFormComponents (cyclomatic 44) · ×1
  • SettingsPageClassGenerator.getFormComponents (cyclomatic 44) packages/spatie-laravel-settings-plugin/src/Commands/FileGenerators/SettingsPageClassGenerator.php:149 — SettingsPageClassGenerator.getFormComponents has cyclomatic complexity 44 (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.
D1 · Cyclomatic Complexity · Repeater.toTableEmbeddedHtml (cyclomatic 42) · ×1
  • Repeater.toTableEmbeddedHtml (cyclomatic 42) packages/forms/src/Components/Repeater.php:1895 — Repeater.toTableEmbeddedHtml has cyclomatic complexity 42 (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.
D1 · Cyclomatic Complexity · CanGenerateBadgeHtml.generateBadgeHtml (cyclomatic 40) · ×1
  • CanGenerateBadgeHtml.generateBadgeHtml (cyclomatic 40) packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:27 — CanGenerateBadgeHtml.generateBadgeHtml has cyclomatic complexity 40 (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.
D1 · Cyclomatic Complexity · CanExportRecords.setUp (cyclomatic 37) · ×1
  • CanExportRecords.setUp (cyclomatic 37) packages/actions/src/Concerns/CanExportRecords.php:81 — CanExportRecords.setUp has cyclomatic complexity 37 (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.
D1 · Cyclomatic Complexity · SupportServiceProvider.packageBooted (cyclomatic 36) · ×1
  • SupportServiceProvider.packageBooted (cyclomatic 36) packages/support/src/SupportServiceProvider.php:165 — SupportServiceProvider.packageBooted has cyclomatic complexity 36 (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.
D1 · Cyclomatic Complexity · openDropdown (cyclomatic 36) · ×1
  • openDropdown (cyclomatic 36) packages/support/resources/js/utilities/select.js:1389 — openDropdown has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · MakePageCommand.createResourceManageRelatedRecordsPage (cyclomatic 35) · ×1
  • MakePageCommand.createResourceManageRelatedRecordsPage (cyclomatic 35) packages/panels/src/Commands/MakePageCommand.php:512 — MakePageCommand.createResourceManageRelatedRecordsPage has cyclomatic complexity 35 (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.
D1 · Cyclomatic Complexity · CanGenerateModelTables.getTableColumns (cyclomatic 34) · ×1
  • CanGenerateModelTables.getTableColumns (cyclomatic 34) packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:51 — CanGenerateModelTables.getTableColumns has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · EntanglesStateWithSingularRelationship.relationship (cyclomatic 33) · ×1
  • EntanglesStateWithSingularRelationship.relationship (cyclomatic 33) packages/schemas/src/Components/Concerns/EntanglesStateWithSingularRelationship.php:33 — EntanglesStateWithSingularRelationship.relationship has cyclomatic complexity 33 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · CanGenerateModelInfolists.getInfolistComponents (cyclomatic 31) · ×1
  • CanGenerateModelInfolists.getInfolistComponents (cyclomatic 31) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:32 — CanGenerateModelInfolists.getInfolistComponents has cyclomatic complexity 31 (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.
D1 · Cyclomatic Complexity · CanGenerateDropdownItemHtml.generateDropdownItemHtml (cyclomatic 31) · ×1
  • CanGenerateDropdownItemHtml.generateDropdownItemHtml (cyclomatic 31) packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:28 — CanGenerateDropdownItemHtml.generateDropdownItemHtml has cyclomatic complexity 31 (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.
D1 · Cyclomatic Complexity · Select.getOptionsFromRelationship (cyclomatic 30) · ×1
  • Select.getOptionsFromRelationship (cyclomatic 30) packages/forms/src/Components/Select.php:1063 — Select.getOptionsFromRelationship has cyclomatic complexity 30 (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.
D1 · Cyclomatic Complexity · TextInput.toEmbeddedHtml (cyclomatic 30) · ×1
  • TextInput.toEmbeddedHtml (cyclomatic 30) packages/forms/src/Components/TextInput.php:309 — TextInput.toEmbeddedHtml has cyclomatic complexity 30 (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.
D1 · Cyclomatic Complexity · DateTimePicker.toEmbeddedHtml (cyclomatic 29) · ×1
  • DateTimePicker.toEmbeddedHtml (cyclomatic 29) packages/forms/src/Components/DateTimePicker.php:97 — DateTimePicker.toEmbeddedHtml has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · renderOptions (cyclomatic 29) · ×1
  • renderOptions (cyclomatic 29) packages/support/resources/js/utilities/select.js:358 — renderOptions has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · Action.canRenderOptimizedLink (cyclomatic 27) · ×1
  • Action.canRenderOptimizedLink (cyclomatic 27) packages/actions/src/Action.php:813 — Action.canRenderOptimizedLink has cyclomatic complexity 27 (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.
D1 · Cyclomatic Complexity · Entry.wrapEmbeddedHtml (cyclomatic 27) · ×1
  • Entry.wrapEmbeddedHtml (cyclomatic 27) packages/infolists/src/Components/Entry.php:244 — Entry.wrapEmbeddedHtml has cyclomatic complexity 27 (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.
D1 · Cyclomatic Complexity · Select.relationship (cyclomatic 26) · ×1
  • Select.relationship (cyclomatic 26) packages/forms/src/Components/Select.php:790 — Select.relationship has cyclomatic complexity 26 (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.
D1 · Cyclomatic Complexity · ImageEntry.toEmbeddedHtml (cyclomatic 26) · ×1
  • ImageEntry.toEmbeddedHtml (cyclomatic 26) packages/infolists/src/Components/ImageEntry.php:435 — ImageEntry.toEmbeddedHtml has cyclomatic complexity 26 (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.
D1 · Cyclomatic Complexity · HasComponents.registerLivewireComponents (cyclomatic 26) · ×1
  • HasComponents.registerLivewireComponents (cyclomatic 26) packages/panels/src/Panel/Concerns/HasComponents.php:575 — HasComponents.registerLivewireComponents has cyclomatic complexity 26 (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.
D1 · Cyclomatic Complexity · ImageColumn.toEmbeddedHtml (cyclomatic 26) · ×1
  • ImageColumn.toEmbeddedHtml (cyclomatic 26) packages/tables/src/Columns/ImageColumn.php:426 — ImageColumn.toEmbeddedHtml has cyclomatic complexity 26 (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.
D1 · Cyclomatic Complexity · InteractsWithTable.bootedInteractsWithTable (cyclomatic 26) · ×1
  • InteractsWithTable.bootedInteractsWithTable (cyclomatic 26) packages/tables/src/Concerns/InteractsWithTable.php:45 — InteractsWithTable.bootedInteractsWithTable has cyclomatic complexity 26 (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.
D1 · Cyclomatic Complexity · HasComponents.getAction (cyclomatic 25) · ×1
  • HasComponents.getAction (cyclomatic 25) packages/schemas/src/Concerns/HasComponents.php:66 — HasComponents.getAction has cyclomatic complexity 25 (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.
D1 · Cyclomatic Complexity · getLabelsForMultipleSelection (cyclomatic 25) · ×1
  • getLabelsForMultipleSelection (cyclomatic 25) packages/support/resources/js/utilities/select.js:681 — getLabelsForMultipleSelection has cyclomatic complexity 25 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · Repeater.toSimpleEmbeddedHtml (cyclomatic 23) · ×1
  • Repeater.toSimpleEmbeddedHtml (cyclomatic 23) packages/forms/src/Components/Repeater.php:1759 — Repeater.toSimpleEmbeddedHtml has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Select.toEmbeddedHtml (cyclomatic 23) · ×1
  • Select.toEmbeddedHtml (cyclomatic 23) packages/forms/src/Components/Select.php:1824 — Select.toEmbeddedHtml has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Text.toEmbeddedHtml (cyclomatic 23) · ×1
  • Text.toEmbeddedHtml (cyclomatic 23) packages/schemas/src/Components/Text.php:123 — Text.toEmbeddedHtml has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TextInputColumn.toEmbeddedHtml (cyclomatic 23) · ×1
  • TextInputColumn.toEmbeddedHtml (cyclomatic 23) packages/tables/src/Columns/TextInputColumn.php:204 — TextInputColumn.toEmbeddedHtml has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · handleSelectButtonKeydown (cyclomatic 23) · ×1
  • handleSelectButtonKeydown (cyclomatic 23) packages/support/resources/js/utilities/select.js:1182 — handleSelectButtonKeydown has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · TranslationFileLineParser.parse (cyclomatic 22) · ×1
  • TranslationFileLineParser.parse (cyclomatic 22) bin/TranslationTool/src/DataObjects/TranslationFileLineParser.php:12 — TranslationFileLineParser.parse has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · AssociateAction.getRecordSelect (cyclomatic 22) · ×1
  • AssociateAction.getRecordSelect (cyclomatic 22) packages/actions/src/AssociateAction.php:202 — AssociateAction.getRecordSelect has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · AttachAction.getRecordSelect (cyclomatic 22) · ×1
  • AttachAction.getRecordSelect (cyclomatic 22) packages/actions/src/AttachAction.php:216 — AttachAction.getRecordSelect has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · InteractsWithActions.callMountedAction (cyclomatic 22) · ×1
  • InteractsWithActions.callMountedAction (cyclomatic 22) packages/actions/src/Concerns/InteractsWithActions.php:197 — InteractsWithActions.callMountedAction has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · PrepareCsvExport.handle (cyclomatic 22) · ×1
  • PrepareCsvExport.handle (cyclomatic 22) packages/actions/src/Exports/Jobs/PrepareCsvExport.php:57 — PrepareCsvExport.handle has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · ImportAction.setUp (cyclomatic 22) · ×1
  • ImportAction.setUp (cyclomatic 22) packages/actions/src/ImportAction.php:75 — ImportAction.setUp has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · IconEntry.toEmbeddedHtml (cyclomatic 22) · ×1
  • IconEntry.toEmbeddedHtml (cyclomatic 22) packages/infolists/src/Components/IconEntry.php:237 — IconEntry.toEmbeddedHtml has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · RelationManager.getDefaultActionAuthorizationResponse (cyclomatic 22) · ×1
  • RelationManager.getDefaultActionAuthorizationResponse (cyclomatic 22) packages/panels/src/Resources/RelationManagers/RelationManager.php:346 — RelationManager.getDefaultActionAuthorizationResponse has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · CanFormatState.formatState (cyclomatic 22) · ×1
  • CanFormatState.formatState (cyclomatic 22) packages/tables/src/Columns/Concerns/CanFormatState.php:376 — CanFormatState.formatState has cyclomatic complexity 22 (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.
D1 · Cyclomatic Complexity · Type.setUp (cyclomatic 21) · ×1
  • Type.setUp (cyclomatic 21) packages/forms/src/Components/MorphToSelect/Type.php:67 — Type.setUp has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Select.fillStateFromRelationship (cyclomatic 21) · ×1
  • Select.fillStateFromRelationship (cyclomatic 21) packages/forms/src/Components/Select.php:1180 — Select.fillStateFromRelationship has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · TestsActions.parseNestedActions (cyclomatic 20) · ×1
  • TestsActions.parseNestedActions (cyclomatic 20) packages/actions/src/Testing/TestsActions.php:695 — TestsActions.parseNestedActions has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · CanFormatState.formatState (cyclomatic 20) · ×1
  • CanFormatState.formatState (cyclomatic 20) packages/infolists/src/Components/Concerns/CanFormatState.php:376 — CanFormatState.formatState has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · NavigationManager.get (cyclomatic 20) · ×1
  • NavigationManager.get (cyclomatic 20) packages/panels/src/Navigation/NavigationManager.php:47 — NavigationManager.get has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · Tabs.toEmbeddedHtmlForLivewireProperty (cyclomatic 20) · ×1
  • Tabs.toEmbeddedHtmlForLivewireProperty (cyclomatic 20) packages/schemas/src/Components/Tabs.php:641 — Tabs.toEmbeddedHtmlForLivewireProperty has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · HasComponents.getComponent (cyclomatic 20) · ×1
  • HasComponents.getComponent (cyclomatic 20) packages/schemas/src/Concerns/HasComponents.php:152 — HasComponents.getComponent has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · CanReadModelSchemas.parseDefaultExpression (cyclomatic 20) · ×1
  • CanReadModelSchemas.parseDefaultExpression (cyclomatic 20) packages/support/src/Commands/Concerns/CanReadModelSchemas.php:207 — CanReadModelSchemas.parseDefaultExpression has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · IconColumn.toEmbeddedHtml (cyclomatic 20) · ×1
  • IconColumn.toEmbeddedHtml (cyclomatic 20) packages/tables/src/Columns/IconColumn.php:267 — IconColumn.toEmbeddedHtml has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · CanSummarizeRecords.getTableSummarySelectedState (cyclomatic 20) · ×1
  • CanSummarizeRecords.getTableSummarySelectedState (cyclomatic 20) packages/tables/src/Concerns/CanSummarizeRecords.php:85 — CanSummarizeRecords.getTableSummarySelectedState has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · UpgradeDirectoryStructureToV4Command.moveClass (cyclomatic 20) · ×1
  • UpgradeDirectoryStructureToV4Command.moveClass (cyclomatic 20) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:296 — UpgradeDirectoryStructureToV4Command.moveClass has cyclomatic complexity 20 (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.
D1 · Cyclomatic Complexity · handleDropdownKeydown (cyclomatic 20) · ×1
  • handleDropdownKeydown (cyclomatic 20) packages/support/resources/js/utilities/select.js:1263 — handleDropdownKeydown has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · Action.canRenderOptimizedGrouped (cyclomatic 19) · ×1
  • Action.canRenderOptimizedGrouped (cyclomatic 19) packages/actions/src/Action.php:927 — Action.canRenderOptimizedGrouped has cyclomatic complexity 19 (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.
D1 · Cyclomatic Complexity · ImporterClassGenerator.getImporterColumns (cyclomatic 19) · ×1
  • ImporterClassGenerator.getImporterColumns (cyclomatic 19) packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:116 — ImporterClassGenerator.getImporterColumns has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · FileUpload.toEmbeddedHtml (cyclomatic 19) · ×1
  • FileUpload.toEmbeddedHtml (cyclomatic 19) packages/forms/src/Components/FileUpload.php:830 — FileUpload.toEmbeddedHtml has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D1 · Cyclomatic Complexity · ModalTableSelect.fillStateFromRelationship (cyclomatic 19) · ×1
  • ModalTableSelect.fillStateFromRelationship (cyclomatic 19) packages/forms/src/Components/ModalTableSelect.php:427 — ModalTableSelect.fillStateFromRelationship has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Select.getInValidationRuleValues (cyclomatic 19) · ×1
  • Select.getInValidationRuleValues (cyclomatic 19) packages/forms/src/Components/Select.php:1742 — Select.getInValidationRuleValues has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Callout.toEmbeddedHtml (cyclomatic 19) · ×1
  • Callout.toEmbeddedHtml (cyclomatic 19) packages/schemas/src/Components/Callout.php:237 — Callout.toEmbeddedHtml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ColorEntry.toEmbeddedHtml (cyclomatic 18) · ×1
  • ColorEntry.toEmbeddedHtml (cyclomatic 18) packages/infolists/src/Components/ColorEntry.php:21 — ColorEntry.toEmbeddedHtml has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CanSortRecords.applySortingToTableQuery (cyclomatic 18) · ×1
  • CanSortRecords.applySortingToTableQuery (cyclomatic 18) packages/tables/src/Concerns/CanSortRecords.php:78 — CanSortRecords.applySortingToTableQuery has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · createOptionElement (cyclomatic 18) · ×1
  • createOptionElement (cyclomatic 18) packages/support/resources/js/utilities/select.js:522 — createOptionElement has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · AdminPanelProvider.panel (cyclomatic 17) · ×1
  • AdminPanelProvider.panel (cyclomatic 17) docs-assets/app/app/Providers/Filament/AdminPanelProvider.php:39 — AdminPanelProvider.panel has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · ActionGroup.toEmbeddedHtml (cyclomatic 17) · ×1
  • ActionGroup.toEmbeddedHtml (cyclomatic 17) packages/actions/src/ActionGroup.php:468 — ActionGroup.toEmbeddedHtml has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · InteractsWithRecord.getRecord (cyclomatic 17) · ×1
  • InteractsWithRecord.getRecord (cyclomatic 17) packages/actions/src/Concerns/InteractsWithRecord.php:97 — InteractsWithRecord.getRecord has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · BaseFileUpload.getUploadedFiles (cyclomatic 17) · ×1
  • BaseFileUpload.getUploadedFiles (cyclomatic 17) packages/forms/src/Components/BaseFileUpload.php:912 — BaseFileUpload.getUploadedFiles has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · CheckboxList.relationship (cyclomatic 17) · ×1
  • CheckboxList.relationship (cyclomatic 17) packages/forms/src/Components/CheckboxList.php:135 — CheckboxList.relationship has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · KeyValue.toEmbeddedHtml (cyclomatic 17) · ×1
  • KeyValue.toEmbeddedHtml (cyclomatic 17) packages/forms/src/Components/KeyValue.php:375 — KeyValue.toEmbeddedHtml has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · TableSelect.fillStateFromRelationship (cyclomatic 17) · ×1
  • TableSelect.fillStateFromRelationship (cyclomatic 17) packages/forms/src/Components/TableSelect.php:107 — TableSelect.fillStateFromRelationship has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · ToggleButtons.toEmbeddedHtml (cyclomatic 17) · ×1
  • ToggleButtons.toEmbeddedHtml (cyclomatic 17) packages/forms/src/Components/ToggleButtons.php:68 — ToggleButtons.toEmbeddedHtml has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · InteractsWithSchemas.cacheSchema (cyclomatic 17) · ×1
  • InteractsWithSchemas.cacheSchema (cyclomatic 17) packages/schemas/src/Concerns/InteractsWithSchemas.php:202 — InteractsWithSchemas.cacheSchema has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · EvaluatesClosures.resolveClosureDependencyForEvaluation (cyclomatic 17) · ×1
  • EvaluatesClosures.resolveClosureDependencyForEvaluation (cyclomatic 17) packages/support/src/Concerns/EvaluatesClosures.php:43 — EvaluatesClosures.resolveClosureDependencyForEvaluation has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · ColorColumn.toEmbeddedHtml (cyclomatic 17) · ×1
  • ColorColumn.toEmbeddedHtml (cyclomatic 17) packages/tables/src/Columns/ColorColumn.php:21 — ColorColumn.toEmbeddedHtml has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · Column.renderInLayout (cyclomatic 17) · ×1
  • Column.renderInLayout (cyclomatic 17) packages/tables/src/Columns/Column.php:133 — Column.renderInLayout has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · TextColumn.canRenderOptimized (cyclomatic 17) · ×1
  • TextColumn.canRenderOptimized (cyclomatic 17) packages/tables/src/Columns/TextColumn.php:185 — TextColumn.canRenderOptimized has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · HasRecords.getTableRecords (cyclomatic 17) · ×1
  • HasRecords.getTableRecords (cyclomatic 17) packages/tables/src/Concerns/HasRecords.php:95 — HasRecords.getTableRecords has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · SelectFilter.setUp (cyclomatic 17) · ×1
  • SelectFilter.setUp (cyclomatic 17) packages/tables/src/Filters/SelectFilter.php:44 — SelectFilter.setUp has cyclomatic complexity 17 (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.
D1 · Cyclomatic Complexity · syncActionModals (cyclomatic 17) · ×1
  • syncActionModals (cyclomatic 17) packages/actions/resources/js/components/modals.js:68 — syncActionModals has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D1 · Cyclomatic Complexity · ModalTableSelect.saveStateToRelationship (cyclomatic 16) · ×1
  • ModalTableSelect.saveStateToRelationship (cyclomatic 16) packages/forms/src/Components/ModalTableSelect.php:579 — ModalTableSelect.saveStateToRelationship has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ModalTableSelect.toEmbeddedHtml (cyclomatic 16) · ×1
  • ModalTableSelect.toEmbeddedHtml (cyclomatic 16) packages/forms/src/Components/ModalTableSelect.php:902 — ModalTableSelect.toEmbeddedHtml has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · RichEditor.toEmbeddedHtml (cyclomatic 16) · ×1
  • RichEditor.toEmbeddedHtml (cyclomatic 16) packages/forms/src/Components/RichEditor.php:1518 — RichEditor.toEmbeddedHtml has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Select.saveStateToRelationship (cyclomatic 16) · ×1
  • Select.saveStateToRelationship (cyclomatic 16) packages/forms/src/Components/Select.php:1333 — Select.saveStateToRelationship has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HasRelationManagers.getRelationManagersContentComponent (cyclomatic 16) · ×1
  • HasRelationManagers.getRelationManagersContentComponent (cyclomatic 16) packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php:122 — HasRelationManagers.getRelationManagersContentComponent has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Flex.toEmbeddedHtml (cyclomatic 16) · ×1
  • Flex.toEmbeddedHtml (cyclomatic 16) packages/schemas/src/Components/Flex.php:47 — Flex.toEmbeddedHtml has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Schema.renderEmbeddedHtml (cyclomatic 16) · ×1
  • Schema.renderEmbeddedHtml (cyclomatic 16) packages/schemas/src/Schema.php:151 — Schema.renderEmbeddedHtml has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · CheckTranslationsCommand.scan (cyclomatic 16) · ×1
  • CheckTranslationsCommand.scan (cyclomatic 16) packages/support/src/Commands/CheckTranslationsCommand.php:79 — CheckTranslationsCommand.scan has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HasCluster.askForCluster (cyclomatic 16) · ×1
  • HasCluster.askForCluster (cyclomatic 16) packages/support/src/Commands/Concerns/HasCluster.php:27 — HasCluster.askForCluster has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · ComponentAttributeBag.merge (cyclomatic 16) · ×1
  • ComponentAttributeBag.merge (cyclomatic 16) packages/support/src/View/ComponentAttributeBag.php:227 — ComponentAttributeBag.merge has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · Summarizer.getState (cyclomatic 16) · ×1
  • Summarizer.getState (cyclomatic 16) packages/tables/src/Columns/Summarizers/Summarizer.php:72 — Summarizer.getState has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · HasBulkActions.getSelectedTableRecordsQuery (cyclomatic 16) · ×1
  • HasBulkActions.getSelectedTableRecordsQuery (cyclomatic 16) packages/tables/src/Concerns/HasBulkActions.php:296 — HasBulkActions.getSelectedTableRecordsQuery has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
D1 · Cyclomatic Complexity · updateOptionLabelInList (cyclomatic 16) · ×1
  • updateOptionLabelInList (cyclomatic 16) packages/support/resources/js/utilities/select.js:1124 — updateOptionLabelInList has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
D19 · Documentation Quality · LLM evaluation failed · ×1
  • LLM evaluation failed — JSON parse error: Expected end of string, but instead reached end of data. Path: $.findings[2].docPath | LineNumber: 0 | BytePositionInLine: 1215.
D2 · Cognitive Complexity · Builder.toEmbeddedHtml (cognitive 123) · ×1
  • Builder.toEmbeddedHtml (cognitive 123) packages/forms/src/Components/Builder.php:1404 — Builder.toEmbeddedHtml has cognitive complexity 123 (threshold 15). Drivers by points: if/else 84, boolean chains 32, loops 7 (nesting depth added 64). 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.
D2 · Cognitive Complexity · Repeater.toTableEmbeddedHtml (cognitive 114) · ×1
  • Repeater.toTableEmbeddedHtml (cognitive 114) packages/forms/src/Components/Repeater.php:1895 — Repeater.toTableEmbeddedHtml has cognitive complexity 114 (threshold 15). Drivers by points: if/else 68, ternaries 19, boolean chains 15, loops 12 (nesting depth added 70). 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.
D2 · Cognitive Complexity · Repeater.toEmbeddedHtml (cognitive 102) · ×1
  • Repeater.toEmbeddedHtml (cognitive 102) packages/forms/src/Components/Repeater.php:1521 — Repeater.toEmbeddedHtml has cognitive complexity 102 (threshold 15). Drivers by points: if/else 69, boolean chains 24, loops 7, ternaries 2 (nesting depth added 53). 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.
D2 · Cognitive Complexity · TextColumn.toEmbeddedHtml (cognitive 101) · ×1
  • TextColumn.toEmbeddedHtml (cognitive 101) packages/tables/src/Columns/TextColumn.php:269 — TextColumn.toEmbeddedHtml has cognitive complexity 101 (threshold 15). Drivers by points: if/else 53, ternaries 30, boolean chains 13, loops 4, match/switch 1 (nesting depth added 36). 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.
D2 · Cognitive Complexity · Field.wrapEmbeddedHtml (cognitive 93) · ×1
  • Field.wrapEmbeddedHtml (cognitive 93) packages/forms/src/Components/Field.php:289 — Field.wrapEmbeddedHtml has cognitive complexity 93 (threshold 15). Drivers by points: if/else 44, boolean chains 26, ternaries 19, loops 4 (nesting depth added 35). 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.
D2 · Cognitive Complexity · TextEntry.toEmbeddedHtml (cognitive 92) · ×1
  • TextEntry.toEmbeddedHtml (cognitive 92) packages/infolists/src/Components/TextEntry.php:173 — TextEntry.toEmbeddedHtml has cognitive complexity 92 (threshold 15). Drivers by points: if/else 44, ternaries 26, boolean chains 12, loops 9, match/switch 1 (nesting depth added 30). 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.
D2 · Cognitive Complexity · FusedGroup.toEmbeddedHtml (cognitive 82) · ×1
  • FusedGroup.toEmbeddedHtml (cognitive 82) packages/schemas/src/Components/FusedGroup.php:221 — FusedGroup.toEmbeddedHtml has cognitive complexity 82 (threshold 15). Drivers by points: if/else 54, boolean chains 14, ternaries 10, loops 4 (nesting depth added 31). 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.
D2 · Cognitive Complexity · Tabs.toEmbeddedHtml (cognitive 80) · ×1
  • Tabs.toEmbeddedHtml (cognitive 80) packages/schemas/src/Components/Tabs.php:257 — Tabs.toEmbeddedHtml has cognitive complexity 80 (threshold 15). Drivers by points: if/else 34, ternaries 31, loops 8, boolean chains 5, match/switch 2 (nesting depth added 36). 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.
D2 · Cognitive Complexity · CanGenerateModelForms.getFormComponents (cognitive 79) · ×1
  • CanGenerateModelForms.getFormComponents (cognitive 79) packages/forms/src/Commands/FileGenerators/Concerns/CanGenerateModelForms.php:46 — CanGenerateModelForms.getFormComponents has cognitive complexity 79 (threshold 15). Drivers by points: if/else 70, boolean chains 5, loops 2, match/switch 2 (nesting depth added 41). 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.
D2 · Cognitive Complexity · Field.wrapInputHtml (cognitive 73) · ×1
  • Field.wrapInputHtml (cognitive 73) packages/forms/src/Components/Field.php:521 — Field.wrapInputHtml has cognitive complexity 73 (threshold 15). Drivers by points: if/else 30, boolean chains 19, ternaries 18, loops 6 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Section.toEmbeddedHtml (cognitive 70) · ×1
  • Section.toEmbeddedHtml (cognitive 70) packages/schemas/src/Components/Section.php:260 — Section.toEmbeddedHtml has cognitive complexity 70 (threshold 15). Drivers by points: if/else 41, boolean chains 18, ternaries 11 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanGenerateButtonHtml.generateButtonHtml (cognitive 68) · ×1
  • CanGenerateButtonHtml.generateButtonHtml (cognitive 68) packages/support/src/View/Concerns/CanGenerateButtonHtml.php:29 — CanGenerateButtonHtml.generateButtonHtml has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 31, if/else 19, boolean chains 16, match/switch 2 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CanGenerateModelTables.getTableColumns (cognitive 67) · ×1
  • CanGenerateModelTables.getTableColumns (cognitive 67) packages/tables/src/Commands/FileGenerators/Concerns/CanGenerateModelTables.php:51 — CanGenerateModelTables.getTableColumns has cognitive complexity 67 (threshold 15). Drivers by points: if/else 51, boolean chains 7, ternaries 4, match/switch 3, loops 2 (nesting depth added 32). 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.
D2 · Cognitive Complexity · SettingsPageClassGenerator.getFormComponents (cognitive 61) · ×1
  • SettingsPageClassGenerator.getFormComponents (cognitive 61) packages/spatie-laravel-settings-plugin/src/Commands/FileGenerators/SettingsPageClassGenerator.php:149 — SettingsPageClassGenerator.getFormComponents has cognitive complexity 61 (threshold 15). Drivers by points: if/else 29, boolean chains 19, ternaries 9, loops 2, match/switch 2 (nesting depth added 22). 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.
D2 · Cognitive Complexity · CanGenerateModelInfolists.getInfolistComponents (cognitive 60) · ×1
  • CanGenerateModelInfolists.getInfolistComponents (cognitive 60) packages/infolists/src/Commands/FileGenerators/Concerns/CanGenerateModelInfolists.php:32 — CanGenerateModelInfolists.getInfolistComponents has cognitive complexity 60 (threshold 15). Drivers by points: if/else 47, boolean chains 4, ternaries 4, match/switch 3, loops 2 (nesting depth added 29). 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.
D2 · Cognitive Complexity · MakePageCommand.createResourceManageRelatedRecordsPage (cognitive 60) · ×1
  • MakePageCommand.createResourceManageRelatedRecordsPage (cognitive 60) packages/panels/src/Commands/MakePageCommand.php:512 — MakePageCommand.createResourceManageRelatedRecordsPage has cognitive complexity 60 (threshold 15). Drivers by points: if/else 38, boolean chains 14, error handling 5, ternaries 3 (nesting depth added 25). 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.
D2 · Cognitive Complexity · TranslationFileLineParser.parse (cognitive 58) · ×1
  • TranslationFileLineParser.parse (cognitive 58) bin/TranslationTool/src/DataObjects/TranslationFileLineParser.php:12 — TranslationFileLineParser.parse has cognitive complexity 58 (threshold 15). Drivers by points: if/else 38, ternaries 10, boolean chains 5, loops 5 (nesting depth added 38). 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.
D2 · Cognitive Complexity · HasComponents.getAction (cognitive 54) · ×1
  • HasComponents.getAction (cognitive 54) packages/schemas/src/Concerns/HasComponents.php:66 — HasComponents.getAction has cognitive complexity 54 (threshold 15). Drivers by points: if/else 39, boolean chains 8, ternaries 4, loops 3 (nesting depth added 28). 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.
D2 · Cognitive Complexity · CanGenerateLinkHtml.generateLinkHtml (cognitive 54) · ×1
  • CanGenerateLinkHtml.generateLinkHtml (cognitive 54) packages/support/src/View/Concerns/CanGenerateLinkHtml.php:30 — CanGenerateLinkHtml.generateLinkHtml has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 28, if/else 13, boolean chains 11, match/switch 2 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · HasComponents.registerLivewireComponents (cognitive 51) · ×1
  • HasComponents.registerLivewireComponents (cognitive 51) packages/panels/src/Panel/Concerns/HasComponents.php:575 — HasComponents.registerLivewireComponents has cognitive complexity 51 (threshold 15). Drivers by points: if/else 27, loops 17, boolean chains 7 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HasComponents.getComponent (cognitive 50) · ×1
  • HasComponents.getComponent (cognitive 50) packages/schemas/src/Concerns/HasComponents.php:152 — HasComponents.getComponent has cognitive complexity 50 (threshold 15). Drivers by points: if/else 36, loops 10, boolean chains 4 (nesting depth added 31). 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.
D2 · Cognitive Complexity · openDropdown (cognitive 50) · ×1
  • openDropdown (cognitive 50) packages/support/resources/js/utilities/select.js:1389 — openDropdown has cognitive complexity 50 (threshold 15). 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.
D2 · Cognitive Complexity · CanGenerateIconButtonHtml.generateIconButtonHtml (cognitive 48) · ×1
  • CanGenerateIconButtonHtml.generateIconButtonHtml (cognitive 48) packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:28 — CanGenerateIconButtonHtml.generateIconButtonHtml has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 25, boolean chains 13, if/else 8, match/switch 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · renderOptions (cognitive 47) · ×1
  • renderOptions (cognitive 47) packages/support/resources/js/utilities/select.js:358 — renderOptions has cognitive complexity 47 (threshold 15). 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.
D2 · Cognitive Complexity · DateTimePicker.toEmbeddedHtml (cognitive 44) · ×1
  • DateTimePicker.toEmbeddedHtml (cognitive 44) packages/forms/src/Components/DateTimePicker.php:97 — DateTimePicker.toEmbeddedHtml has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16, ternaries 14, boolean chains 12, loops 2 (nesting depth added 15). 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.
D2 · Cognitive Complexity · EntanglesStateWithSingularRelationship.relationship (cognitive 44) · ×1
  • EntanglesStateWithSingularRelationship.relationship (cognitive 44) packages/schemas/src/Components/Concerns/EntanglesStateWithSingularRelationship.php:33 — EntanglesStateWithSingularRelationship.relationship has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17, loops 13, boolean chains 12, ternaries 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Select.toEmbeddedHtml (cognitive 43) · ×1
  • Select.toEmbeddedHtml (cognitive 43) packages/forms/src/Components/Select.php:1824 — Select.toEmbeddedHtml has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20, boolean chains 10, ternaries 7, loops 6 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Repeater.toSimpleEmbeddedHtml (cognitive 41) · ×1
  • Repeater.toSimpleEmbeddedHtml (cognitive 41) packages/forms/src/Components/Repeater.php:1759 — Repeater.toSimpleEmbeddedHtml has cognitive complexity 41 (threshold 15). Drivers by points: if/else 21, boolean chains 12, loops 6, ternaries 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Select.relationship (cognitive 41) · ×1
  • Select.relationship (cognitive 41) packages/forms/src/Components/Select.php:790 — Select.relationship has cognitive complexity 41 (threshold 15). Drivers by points: if/else 30, boolean chains 8, ternaries 3 (nesting depth added 15). 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.
D2 · Cognitive Complexity · CanGenerateBadgeHtml.generateBadgeHtml (cognitive 41) · ×1
  • CanGenerateBadgeHtml.generateBadgeHtml (cognitive 41) packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:27 — CanGenerateBadgeHtml.generateBadgeHtml has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 20, boolean chains 11, if/else 9, match/switch 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · getLabelsForMultipleSelection (cognitive 40) · ×1
  • getLabelsForMultipleSelection (cognitive 40) packages/support/resources/js/utilities/select.js:681 — getLabelsForMultipleSelection has cognitive complexity 40 (threshold 15). 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.
D2 · Cognitive Complexity · FileUpload.toEmbeddedHtml (cognitive 38) · ×1
  • FileUpload.toEmbeddedHtml (cognitive 38) packages/forms/src/Components/FileUpload.php:830 — FileUpload.toEmbeddedHtml has cognitive complexity 38 (threshold 15). Drivers by points: loops 19, if/else 10, ternaries 6, boolean chains 3 (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline.
D2 · Cognitive Complexity · SupportServiceProvider.packageBooted (cognitive 38) · ×1
  • SupportServiceProvider.packageBooted (cognitive 38) packages/support/src/SupportServiceProvider.php:165 — SupportServiceProvider.packageBooted has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20, ternaries 8, match/switch 6, boolean chains 4 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CanExportRecords.setUp (cognitive 37) · ×1
  • CanExportRecords.setUp (cognitive 37) packages/actions/src/Concerns/CanExportRecords.php:81 — CanExportRecords.setUp has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14, ternaries 10, boolean chains 7, loops 4, match/switch 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · Text.toEmbeddedHtml (cognitive 37) · ×1
  • Text.toEmbeddedHtml (cognitive 37) packages/schemas/src/Components/Text.php:123 — Text.toEmbeddedHtml has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 19, if/else 15, boolean chains 3 (nesting depth added 15). 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.
D2 · Cognitive Complexity · Select.getOptionsFromRelationship (cognitive 35) · ×1
  • Select.getOptionsFromRelationship (cognitive 35) packages/forms/src/Components/Select.php:1063 — Select.getOptionsFromRelationship has cognitive complexity 35 (threshold 15). Drivers by points: if/else 24, boolean chains 11 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · PrepareCsvExport.handle (cognitive 34) · ×1
  • PrepareCsvExport.handle (cognitive 34) packages/actions/src/Exports/Jobs/PrepareCsvExport.php:57 — PrepareCsvExport.handle has cognitive complexity 34 (threshold 15). Drivers by points: if/else 26, loops 5, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RichEditor.toEmbeddedHtml (cognitive 32) · ×1
  • RichEditor.toEmbeddedHtml (cognitive 32) packages/forms/src/Components/RichEditor.php:1518 — RichEditor.toEmbeddedHtml has cognitive complexity 32 (threshold 15). Drivers by points: loops 15, if/else 14, ternaries 2, boolean chains 1 (nesting depth added 15). 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.
D2 · Cognitive Complexity · ListRecords.makeTable (cognitive 32) · ×1
  • ListRecords.makeTable (cognitive 32) packages/panels/src/Resources/Pages/ListRecords.php:116 — ListRecords.makeTable has cognitive complexity 32 (threshold 15). Drivers by points: if/else 22, loops 10 (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.
D2 · Cognitive Complexity · handleSelectButtonKeydown (cognitive 32) · ×1
  • handleSelectButtonKeydown (cognitive 32) packages/support/resources/js/utilities/select.js:1182 — handleSelectButtonKeydown has cognitive complexity 32 (threshold 15). 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.
D2 · Cognitive Complexity · Select.fillStateFromRelationship (cognitive 31) · ×1
  • Select.fillStateFromRelationship (cognitive 31) packages/forms/src/Components/Select.php:1180 — Select.fillStateFromRelationship has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16, ternaries 10, boolean chains 5 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · updateOptionLabelInList (cognitive 31) · ×1
  • updateOptionLabelInList (cognitive 31) packages/support/resources/js/utilities/select.js:1124 — updateOptionLabelInList has cognitive complexity 31 (threshold 15). 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.
D2 · Cognitive Complexity · Select.getOptionLabels (cognitive 30) · ×1
  • Select.getOptionLabels (cognitive 30) packages/forms/src/Components/Select.php:624 — Select.getOptionLabels has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, loops 6, boolean chains 1 (nesting depth added 17). 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.
D2 · Cognitive Complexity · TextInput.toEmbeddedHtml (cognitive 30) · ×1
  • TextInput.toEmbeddedHtml (cognitive 30) packages/forms/src/Components/TextInput.php:309 — TextInput.toEmbeddedHtml has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, ternaries 9, if/else 5, loops 2 (nesting depth added 1). 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 · Entry.wrapEmbeddedHtml (cognitive 30) · ×1
  • Entry.wrapEmbeddedHtml (cognitive 30) packages/infolists/src/Components/Entry.php:244 — Entry.wrapEmbeddedHtml has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12, boolean chains 11, ternaries 6, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Callout.toEmbeddedHtml (cognitive 30) · ×1
  • Callout.toEmbeddedHtml (cognitive 30) packages/schemas/src/Components/Callout.php:237 — Callout.toEmbeddedHtml has cognitive complexity 30 (threshold 15). Drivers by points: if/else 23, boolean chains 6, ternaries 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanGenerateDropdownItemHtml.generateDropdownItemHtml (cognitive 30) · ×1
  • CanGenerateDropdownItemHtml.generateDropdownItemHtml (cognitive 30) packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:28 — CanGenerateDropdownItemHtml.generateDropdownItemHtml has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 12, boolean chains 9, if/else 8, match/switch 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CanSummarizeRecords.getTableSummarySelectedState (cognitive 30) · ×1
  • CanSummarizeRecords.getTableSummarySelectedState (cognitive 30) packages/tables/src/Concerns/CanSummarizeRecords.php:85 — CanSummarizeRecords.getTableSummarySelectedState has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17, loops 6, ternaries 4, boolean chains 3 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InteractsWithToolbarButtons.applyDisableToolbarButtonsModification (cognitive 29) · ×1
  • InteractsWithToolbarButtons.applyDisableToolbarButtonsModification (cognitive 29) packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php:132 — InteractsWithToolbarButtons.applyDisableToolbarButtonsModification has cognitive complexity 29 (threshold 15). Drivers by points: if/else 25, loops 4 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Select.getInValidationRuleValues (cognitive 29) · ×1
  • Select.getInValidationRuleValues (cognitive 29) packages/forms/src/Components/Select.php:1742 — Select.getInValidationRuleValues has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, boolean chains 3, loops 3, ternaries 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ColorEntry.toEmbeddedHtml (cognitive 29) · ×1
  • ColorEntry.toEmbeddedHtml (cognitive 29) packages/infolists/src/Components/ColorEntry.php:21 — ColorEntry.toEmbeddedHtml has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 24, if/else 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Tabs.toEmbeddedHtmlForLivewireProperty (cognitive 29) · ×1
  • Tabs.toEmbeddedHtmlForLivewireProperty (cognitive 29) packages/schemas/src/Components/Tabs.php:641 — Tabs.toEmbeddedHtmlForLivewireProperty has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 16, if/else 7, loops 4, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · TextInputColumn.toEmbeddedHtml (cognitive 29) · ×1
  • TextInputColumn.toEmbeddedHtml (cognitive 29) packages/tables/src/Columns/TextInputColumn.php:204 — TextInputColumn.toEmbeddedHtml has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 19, if/else 8, boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · QueryBuilder.getRuleSummaries (cognitive 29) · ×1
  • QueryBuilder.getRuleSummaries (cognitive 29) packages/tables/src/Filters/QueryBuilder.php:92 — QueryBuilder.getRuleSummaries has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 14, if/else 10, loops 4, boolean chains 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.
D2 · Cognitive Complexity · SelectFilter.setUp (cognitive 29) · ×1
  • SelectFilter.setUp (cognitive 29) packages/tables/src/Filters/SelectFilter.php:44 — SelectFilter.setUp has cognitive complexity 29 (threshold 15). Drivers by points: if/else 21, ternaries 6, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseFileUpload.getUploadedFiles (cognitive 28) · ×1
  • BaseFileUpload.getUploadedFiles (cognitive 28) packages/forms/src/Components/BaseFileUpload.php:912 — BaseFileUpload.getUploadedFiles has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, ternaries 5, boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ImageEntry.toEmbeddedHtml (cognitive 28) · ×1
  • ImageEntry.toEmbeddedHtml (cognitive 28) packages/infolists/src/Components/ImageEntry.php:435 — ImageEntry.toEmbeddedHtml has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13, if/else 8, boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CanReadModelSchemas.parseDefaultExpression (cognitive 28) · ×1
  • CanReadModelSchemas.parseDefaultExpression (cognitive 28) packages/support/src/Commands/Concerns/CanReadModelSchemas.php:207 — CanReadModelSchemas.parseDefaultExpression has cognitive complexity 28 (threshold 15). Drivers by points: if/else 21, boolean chains 5, loops 2 (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.
D2 · Cognitive Complexity · ImageColumn.toEmbeddedHtml (cognitive 28) · ×1
  • ImageColumn.toEmbeddedHtml (cognitive 28) packages/tables/src/Columns/ImageColumn.php:426 — ImageColumn.toEmbeddedHtml has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 13, if/else 8, boolean chains 6, loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AssociateAction.getRecordSelect (cognitive 27) · ×1
  • AssociateAction.getRecordSelect (cognitive 27) packages/actions/src/AssociateAction.php:202 — AssociateAction.getRecordSelect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11, ternaries 9, boolean chains 5, loops 2 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CheckboxList.relationship (cognitive 27) · ×1
  • CheckboxList.relationship (cognitive 27) packages/forms/src/Components/CheckboxList.php:135 — CheckboxList.relationship has cognitive complexity 27 (threshold 15). Drivers by points: if/else 24, boolean chains 3 (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.
D2 · Cognitive Complexity · ModalTableSelect.getOptionLabelsFromRelationship (cognitive 27) · ×1
  • ModalTableSelect.getOptionLabelsFromRelationship (cognitive 27) packages/forms/src/Components/ModalTableSelect.php:333 — ModalTableSelect.getOptionLabelsFromRelationship has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20, boolean chains 4, ternaries 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModalTableSelect.toEmbeddedHtml (cognitive 27) · ×1
  • ModalTableSelect.toEmbeddedHtml (cognitive 27) packages/forms/src/Components/ModalTableSelect.php:902 — ModalTableSelect.toEmbeddedHtml has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9, loops 7, ternaries 7, boolean chains 4 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Wizard.toEmbeddedHtml (cognitive 27) · ×1
  • Wizard.toEmbeddedHtml (cognitive 27) packages/schemas/src/Components/Wizard.php:349 — Wizard.toEmbeddedHtml has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, ternaries 6, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RelationshipJoiner.prepareQueryForNoConstraints (cognitive 27) · ×1
  • RelationshipJoiner.prepareQueryForNoConstraints (cognitive 27) packages/support/src/Services/RelationshipJoiner.php:26 — RelationshipJoiner.prepareQueryForNoConstraints has cognitive complexity 27 (threshold 15). Drivers by points: if/else 18, boolean chains 4, ternaries 3, loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Action.canRenderOptimizedLink (cognitive 26) · ×1
  • Action.canRenderOptimizedLink (cognitive 26) packages/actions/src/Action.php:813 — Action.canRenderOptimizedLink has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 26. 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 · InteractsWithActions.callMountedAction (cognitive 26) · ×1
  • InteractsWithActions.callMountedAction (cognitive 26) packages/actions/src/Concerns/InteractsWithActions.php:197 — InteractsWithActions.callMountedAction has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12, error handling 6, ternaries 4, loops 2, boolean chains 1, match/switch 1 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · CheckboxList.toEmbeddedHtml (cognitive 26) · ×1
  • CheckboxList.toEmbeddedHtml (cognitive 26) packages/forms/src/Components/CheckboxList.php:484 — CheckboxList.toEmbeddedHtml has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, ternaries 4, boolean chains 2, loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModalTableSelect.fillStateFromRelationship (cognitive 26) · ×1
  • ModalTableSelect.fillStateFromRelationship (cognitive 26) packages/forms/src/Components/ModalTableSelect.php:427 — ModalTableSelect.fillStateFromRelationship has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, boolean chains 5, ternaries 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ComponentAttributeBag.merge (cognitive 26) · ×1
  • ComponentAttributeBag.merge (cognitive 26) packages/support/src/View/ComponentAttributeBag.php:227 — ComponentAttributeBag.merge has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18, boolean chains 4, loops 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HasBulkActions.getSelectedTableRecordsQuery (cognitive 26) · ×1
  • HasBulkActions.getSelectedTableRecordsQuery (cognitive 26) packages/tables/src/Concerns/HasBulkActions.php:296 — HasBulkActions.getSelectedTableRecordsQuery has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20, loops 5, 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.
D2 · Cognitive Complexity · InteractsWithTable.bootedInteractsWithTable (cognitive 26) · ×1
  • InteractsWithTable.bootedInteractsWithTable (cognitive 26) packages/tables/src/Concerns/InteractsWithTable.php:45 — InteractsWithTable.bootedInteractsWithTable has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15, boolean chains 9, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · ActionGroup.toEmbeddedHtml (cognitive 25) · ×1
  • ActionGroup.toEmbeddedHtml (cognitive 25) packages/actions/src/ActionGroup.php:468 — ActionGroup.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, loops 6, ternaries 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AttachAction.getRecordSelect (cognitive 25) · ×1
  • AttachAction.getRecordSelect (cognitive 25) packages/actions/src/AttachAction.php:216 — AttachAction.getRecordSelect has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10, ternaries 8, boolean chains 5, loops 2 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TestsActions.parseNestedActions (cognitive 25) · ×1
  • TestsActions.parseNestedActions (cognitive 25) packages/actions/src/Testing/TestsActions.php:695 — TestsActions.parseNestedActions has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, boolean chains 6, ternaries 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ToggleButtons.toEmbeddedHtml (cognitive 25) · ×1
  • ToggleButtons.toEmbeddedHtml (cognitive 25) packages/forms/src/Components/ToggleButtons.php:68 — ToggleButtons.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 7, boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InteractsWithRelationshipTable.makeTable (cognitive 25) · ×1
  • InteractsWithRelationshipTable.makeTable (cognitive 25) packages/panels/src/Resources/Concerns/InteractsWithRelationshipTable.php:108 — InteractsWithRelationshipTable.makeTable has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17, loops 8 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Flex.toEmbeddedHtml (cognitive 25) · ×1
  • Flex.toEmbeddedHtml (cognitive 25) packages/schemas/src/Components/Flex.php:47 — Flex.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 14, ternaries 6, match/switch 3, boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ColorColumn.toEmbeddedHtml (cognitive 25) · ×1
  • ColorColumn.toEmbeddedHtml (cognitive 25) packages/tables/src/Columns/ColorColumn.php:21 — ColorColumn.toEmbeddedHtml has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 18, if/else 4, boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RepeatableEntry.toEmbeddedTableHtml (cognitive 24) · ×1
  • RepeatableEntry.toEmbeddedTableHtml (cognitive 24) packages/infolists/src/Components/RepeatableEntry.php:165 — RepeatableEntry.toEmbeddedTableHtml has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16, loops 4, ternaries 4 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HasRelationManagers.getRelationManagersContentComponent (cognitive 24) · ×1
  • HasRelationManagers.getRelationManagersContentComponent (cognitive 24) packages/panels/src/Resources/Pages/Concerns/HasRelationManagers.php:122 — HasRelationManagers.getRelationManagersContentComponent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10, ternaries 9, match/switch 3, boolean chains 2 (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.
D2 · Cognitive Complexity · UpgradeDirectoryStructureToV4Command.moveClass (cognitive 24) · ×1
  • UpgradeDirectoryStructureToV4Command.moveClass (cognitive 24) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:296 — UpgradeDirectoryStructureToV4Command.moveClass has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15, boolean chains 8, error handling 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · (anonymous) (cognitive 24) · ×1
  • (anonymous) (cognitive 24) packages/support/resources/js/utilities/select.js:227 — (anonymous) has cognitive complexity 24 (threshold 15). 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.
D2 · Cognitive Complexity · ImportAction.setUp (cognitive 23) · ×1
  • ImportAction.setUp (cognitive 23) packages/actions/src/ImportAction.php:75 — ImportAction.setUp has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, boolean chains 5, loops 3, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TableSelect.fillStateFromRelationship (cognitive 23) · ×1
  • TableSelect.fillStateFromRelationship (cognitive 23) packages/forms/src/Components/TableSelect.php:107 — TableSelect.fillStateFromRelationship has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, ternaries 5, boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanFormatState.formatState (cognitive 23) · ×1
  • CanFormatState.formatState (cognitive 23) packages/tables/src/Columns/Concerns/CanFormatState.php:376 — CanFormatState.formatState has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, boolean chains 2, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · getSelectedOptionLabels (cognitive 23) · ×1
  • getSelectedOptionLabels (cognitive 23) packages/support/resources/js/utilities/select.js:1736 — getSelectedOptionLabels has cognitive complexity 23 (threshold 15). 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.
D2 · Cognitive Complexity · InteractsWithToolbarButtons.applyEnableToolbarButtonsModification (cognitive 22) · ×1
  • InteractsWithToolbarButtons.applyEnableToolbarButtonsModification (cognitive 22) packages/forms/src/Components/Concerns/InteractsWithToolbarButtons.php:194 — InteractsWithToolbarButtons.applyEnableToolbarButtonsModification has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, loops 4, boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · MakeRelationManagerCommand.handle (cognitive 22) · ×1
  • MakeRelationManagerCommand.handle (cognitive 22) packages/panels/src/Commands/MakeRelationManagerCommand.php:239 — MakeRelationManagerCommand.handle has cognitive complexity 22 (threshold 15). Drivers by points: if/else 17, boolean chains 4, error handling 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.
D2 · Cognitive Complexity · HasState.dehydrateState (cognitive 22) · ×1
  • HasState.dehydrateState (cognitive 22) packages/schemas/src/Components/Concerns/HasState.php:316 — HasState.dehydrateState has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, loops 5, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HasRecords.getTableRecords (cognitive 22) · ×1
  • HasRecords.getTableRecords (cognitive 22) packages/tables/src/Concerns/HasRecords.php:95 — HasRecords.getTableRecords has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, boolean chains 6 (nesting depth added 4). 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.
D2 · Cognitive Complexity · TestsFilters.filterTable (cognitive 22) · ×1
  • TestsFilters.filterTable (cognitive 22) packages/tables/src/Testing/TestsFilters.php:24 — TestsFilters.filterTable has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 12, if/else 7, boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · handleDropdownKeydown (cognitive 22) · ×1
  • handleDropdownKeydown (cognitive 22) packages/support/resources/js/utilities/select.js:1263 — handleDropdownKeydown has cognitive complexity 22 (threshold 15). 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.
D2 · Cognitive Complexity · Type.setUp (cognitive 21) · ×1
  • Type.setUp (cognitive 21) packages/forms/src/Components/MorphToSelect/Type.php:67 — Type.setUp has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, ternaries 4, boolean chains 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · Repeater.saveToRelationship (cognitive 21) · ×1
  • Repeater.saveToRelationship (cognitive 21) packages/forms/src/Components/Repeater.php:979 — Repeater.saveToRelationship has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, ternaries 3, loops 2 (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.
D2 · Cognitive Complexity · InteractsWithSchemas.cacheSchema (cognitive 21) · ×1
  • InteractsWithSchemas.cacheSchema (cognitive 21) packages/schemas/src/Concerns/InteractsWithSchemas.php:202 — InteractsWithSchemas.cacheSchema has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21 (nesting depth added 5). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · HasCellState.getStateFromRecord (cognitive 21) · ×1
  • HasCellState.getStateFromRecord (cognitive 21) packages/support/src/Concerns/HasCellState.php:115 — HasCellState.getStateFromRecord has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 3 (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.
D2 · Cognitive Complexity · updateSelectedDisplay (cognitive 21) · ×1
  • updateSelectedDisplay (cognitive 21) packages/support/resources/js/utilities/select.js:617 — updateSelectedDisplay has cognitive complexity 21 (threshold 15). 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.
D2 · Cognitive Complexity · selectOption (cognitive 21) · ×1
  • selectOption (cognitive 21) packages/support/resources/js/utilities/select.js:2039 — selectOption has cognitive complexity 21 (threshold 15). 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.
D2 · Cognitive Complexity · ImporterClassGenerator.getImporterColumns (cognitive 20) · ×1
  • ImporterClassGenerator.getImporterColumns (cognitive 20) packages/actions/src/Commands/FileGenerators/ImporterClassGenerator.php:116 — ImporterClassGenerator.getImporterColumns has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · BaseFileUpload.getValidationRules (cognitive 20) · ×1
  • BaseFileUpload.getValidationRules (cognitive 20) packages/forms/src/Components/BaseFileUpload.php:697 — BaseFileUpload.getValidationRules has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, loops 3, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ModalTableSelect.saveStateToRelationship (cognitive 20) · ×1
  • ModalTableSelect.saveStateToRelationship (cognitive 20) packages/forms/src/Components/ModalTableSelect.php:579 — ModalTableSelect.saveStateToRelationship has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · RichEditor.getGroupedCustomBlocks (cognitive 20) · ×1
  • RichEditor.getGroupedCustomBlocks (cognitive 20) packages/forms/src/Components/RichEditor.php:1290 — RichEditor.getGroupedCustomBlocks has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8, loops 7, if/else 4, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Select.saveStateToRelationship (cognitive 20) · ×1
  • Select.saveStateToRelationship (cognitive 20) packages/forms/src/Components/Select.php:1333 — Select.saveStateToRelationship has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ToggleButtons.toGroupedEmbeddedHtml (cognitive 20) · ×1
  • ToggleButtons.toGroupedEmbeddedHtml (cognitive 20) packages/forms/src/Components/ToggleButtons.php:165 — ToggleButtons.toGroupedEmbeddedHtml has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, ternaries 7, boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanFormatState.formatState (cognitive 20) · ×1
  • CanFormatState.formatState (cognitive 20) packages/infolists/src/Components/Concerns/CanFormatState.php:376 — CanFormatState.formatState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, boolean chains 2, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · NavigationManager.get (cognitive 20) · ×1
  • NavigationManager.get (cognitive 20) packages/panels/src/Navigation/NavigationManager.php:47 — NavigationManager.get has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, boolean chains 2, ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · HasComponents.discoverComponents (cognitive 20) · ×1
  • HasComponents.discoverComponents (cognitive 20) packages/panels/src/Panel/Concerns/HasComponents.php:501 — HasComponents.discoverComponents has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, boolean chains 3, ternaries 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HasState.hydrateState (cognitive 20) · ×1
  • HasState.hydrateState (cognitive 20) packages/schemas/src/Components/Concerns/HasState.php:446 — HasState.hydrateState has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanSearchRecords.applyGlobalSearchToTableQuery (cognitive 20) · ×1
  • CanSearchRecords.applyGlobalSearchToTableQuery (cognitive 20) packages/tables/src/Concerns/CanSearchRecords.php:140 — CanSearchRecords.applyGlobalSearchToTableQuery has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, loops 5 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · ConvertStaticConfigurationToConfigureUsingFunction.refactor (cognitive 20) · ×1
  • ConvertStaticConfigurationToConfigureUsingFunction.refactor (cognitive 20) packages/upgrade/src/Rector/ConvertStaticConfigurationToConfigureUsingFunction.php:77 — ConvertStaticConfigurationToConfigureUsingFunction.refactor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12, loops 6, ternaries 2 (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.
D2 · Cognitive Complexity · applyDisabledState (cognitive 20) · ×1
  • applyDisabledState (cognitive 20) packages/support/resources/js/utilities/select.js:2251 — applyDisabledState has cognitive complexity 20 (threshold 15). 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.
D2 · Cognitive Complexity · HasComponents.getComponentByStatePath (cognitive 19) · ×1
  • HasComponents.getComponentByStatePath (cognitive 19) packages/schemas/src/Concerns/HasComponents.php:217 — HasComponents.getComponentByStatePath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, loops 4, boolean chains 3, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InteractsWithSchemas.getSchemaComponentForFileUpload (cognitive 19) · ×1
  • InteractsWithSchemas.getSchemaComponentForFileUpload (cognitive 19) packages/schemas/src/Concerns/InteractsWithSchemas.php:524 — InteractsWithSchemas.getSchemaComponentForFileUpload has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 3, boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanSortRecords.applySortingToTableQuery (cognitive 19) · ×1
  • CanSortRecords.applySortingToTableQuery (cognitive 19) packages/tables/src/Concerns/CanSortRecords.php:78 — CanSortRecords.applySortingToTableQuery has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 5, ternaries 3, loops 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SelectFilter.apply (cognitive 19) · ×1
  • SelectFilter.apply (cognitive 19) packages/tables/src/Filters/SelectFilter.php:165 — SelectFilter.apply has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, ternaries 6, boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · AddTraitByTraitRector.refactor (cognitive 19) · ×1
  • AddTraitByTraitRector.refactor (cognitive 19) packages/upgrade/src/Rector/AddTraitByTraitRector.php:48 — AddTraitByTraitRector.refactor has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, loops 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Action.canRenderOptimizedGrouped (cognitive 18) · ×1
  • Action.canRenderOptimizedGrouped (cognitive 18) packages/actions/src/Action.php:927 — Action.canRenderOptimizedGrouped has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 18. 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 · DownloadImportFailureCsv.__invoke (cognitive 18) · ×1
  • DownloadImportFailureCsv.__invoke (cognitive 18) packages/actions/src/Imports/Http/Controllers/DownloadImportFailureCsv.php:17 — DownloadImportFailureCsv.__invoke has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 3, ternaries 3, loops 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · RichContentRenderer.customBlocks (cognitive 18) · ×1
  • RichContentRenderer.customBlocks (cognitive 18) packages/forms/src/Components/RichEditor/RichContentRenderer.php:629 — RichContentRenderer.customBlocks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 6, boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanGenerateUrls.getUrl (cognitive 18) · ×1
  • CanGenerateUrls.getUrl (cognitive 18) packages/panels/src/Resources/Resource/Concerns/CanGenerateUrls.php:16 — CanGenerateUrls.getUrl has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, loops 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Actions.toEmbeddedHtml (cognitive 18) · ×1
  • Actions.toEmbeddedHtml (cognitive 18) packages/schemas/src/Components/Actions.php:180 — Actions.toEmbeddedHtml has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 11, if/else 5, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Schema.renderEmbeddedHtml (cognitive 18) · ×1
  • Schema.renderEmbeddedHtml (cognitive 18) packages/schemas/src/Schema.php:151 — Schema.renderEmbeddedHtml has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, ternaries 5, boolean chains 1, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · AssetsCommand.handle (cognitive 18) · ×1
  • AssetsCommand.handle (cognitive 18) packages/support/src/Commands/AssetsCommand.php:23 — AssetsCommand.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, loops 7 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanAskForResource.askForResource (cognitive 18) · ×1
  • CanAskForResource.askForResource (cognitive 18) packages/support/src/Commands/Concerns/CanAskForResource.php:16 — CanAskForResource.askForResource has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, match/switch 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HasCluster.askForCluster (cognitive 18) · ×1
  • HasCluster.askForCluster (cognitive 18) packages/support/src/Commands/Concerns/HasCluster.php:27 — HasCluster.askForCluster has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 4, match/switch 2 (nesting depth added 4). 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.
D2 · Cognitive Complexity · Summarizer.getState (cognitive 18) · ×1
  • Summarizer.getState (cognitive 18) packages/tables/src/Columns/Summarizers/Summarizer.php:72 — Summarizer.getState has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 2 (nesting depth added 4). 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.
D2 · Cognitive Complexity · UpgradeDirectoryStructureToV4Command.handle (cognitive 18) · ×1
  • UpgradeDirectoryStructureToV4Command.handle (cognitive 18) packages/upgrade/src/Commands/UpgradeDirectoryStructureToV4Command.php:52 — UpgradeDirectoryStructureToV4Command.handle has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, loops 7, boolean chains 1 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · refreshOptionLabelListener (cognitive 18) · ×1
  • refreshOptionLabelListener (cognitive 18) packages/support/resources/js/utilities/select.js:1071 — refreshOptionLabelListener has cognitive complexity 18 (threshold 15). 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.
D2 · Cognitive Complexity · InteractsWithActions.unmountAction (cognitive 17) · ×1
  • InteractsWithActions.unmountAction (cognitive 17) packages/actions/src/Concerns/InteractsWithActions.php:732 — InteractsWithActions.unmountAction has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6, boolean chains 5, loops 3, ternaries 2, error handling 1 (nesting depth added 4). 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.
D2 · Cognitive Complexity · Builder.generateBlockPickerHtml (cognitive 17) · ×1
  • Builder.generateBlockPickerHtml (cognitive 17) packages/forms/src/Components/Builder.php:1269 — Builder.generateBlockPickerHtml has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, ternaries 5, loops 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · Select.resolveOptionLabel (cognitive 17) · ×1
  • Select.resolveOptionLabel (cognitive 17) packages/forms/src/Components/Select.php:572 — Select.resolveOptionLabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · IconEntry.toEmbeddedHtml (cognitive 17) · ×1
  • IconEntry.toEmbeddedHtml (cognitive 17) packages/infolists/src/Components/IconEntry.php:237 — IconEntry.toEmbeddedHtml has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8, if/else 7, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · Page.getResourceBreadcrumbs (cognitive 17) · ×1
  • Page.getResourceBreadcrumbs (cognitive 17) packages/panels/src/Resources/Pages/Page.php:179 — Page.getResourceBreadcrumbs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 3, ternaries 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · OptionsArrayStateCast.get (cognitive 17) · ×1
  • OptionsArrayStateCast.get (cognitive 17) packages/schemas/src/Components/StateCasts/OptionsArrayStateCast.php:14 — OptionsArrayStateCast.get has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · HasStateBindingModifiers.getStateBindingModifiers (cognitive 17) · ×1
  • HasStateBindingModifiers.getStateBindingModifiers (cognitive 17) packages/schemas/src/Concerns/HasStateBindingModifiers.php:83 — HasStateBindingModifiers.getStateBindingModifiers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, ternaries 6 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · CanAskForViewLocation.askForViewLocation (cognitive 17) · ×1
  • CanAskForViewLocation.askForViewLocation (cognitive 17) packages/support/src/Commands/Concerns/CanAskForViewLocation.php:19 — CanAskForViewLocation.askForViewLocation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 3, ternaries 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · EvaluatesClosures.resolveClosureDependencyForEvaluation (cognitive 17) · ×1
  • EvaluatesClosures.resolveClosureDependencyForEvaluation (cognitive 17) packages/support/src/Concerns/EvaluatesClosures.php:43 — EvaluatesClosures.resolveClosureDependencyForEvaluation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SelectColumn.getOptionLabel (cognitive 17) · ×1
  • SelectColumn.getOptionLabel (cognitive 17) packages/tables/src/Columns/SelectColumn.php:392 — SelectColumn.getOptionLabel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14, loops 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · HasBulkActions.getSelectedTableRecords (cognitive 17) · ×1
  • HasBulkActions.getSelectedTableRecords (cognitive 17) packages/tables/src/Concerns/HasBulkActions.php:233 — HasBulkActions.getSelectedTableRecords has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10, ternaries 4, boolean chains 3 (nesting depth added 4). 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.
D2 · Cognitive Complexity · createOptionElement (cognitive 17) · ×1
  • createOptionElement (cognitive 17) packages/support/resources/js/utilities/select.js:522 — createOptionElement has cognitive complexity 17 (threshold 15). 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.
D2 · Cognitive Complexity · ListTranslations.__invoke (cognitive 16) · ×1
  • ListTranslations.__invoke (cognitive 16) bin/TranslationTool/src/Commands/ListTranslations.php:11 — ListTranslations.__invoke has cognitive complexity 16 (threshold 15). Drivers by points: loops 6, if/else 5, ternaries 4, 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.
D2 · Cognitive Complexity · ExporterClassGenerator.getExporterColumns (cognitive 16) · ×1
  • ExporterClassGenerator.getExporterColumns (cognitive 16) packages/actions/src/Commands/FileGenerators/ExporterClassGenerator.php:114 — ExporterClassGenerator.getExporterColumns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D2 · Cognitive Complexity · InteractsWithRecord.getRecord (cognitive 16) · ×1
  • InteractsWithRecord.getRecord (cognitive 16) packages/actions/src/Concerns/InteractsWithRecord.php:97 — InteractsWithRecord.getRecord has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 1. 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 · EditAction.setUp (cognitive 16) · ×1
  • EditAction.setUp (cognitive 16) packages/actions/src/EditAction.php:28 — EditAction.setUp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16 (nesting depth added 4). 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.
D2 · Cognitive Complexity · CanBeValidated.distinct (cognitive 16) · ×1
  • CanBeValidated.distinct (cognitive 16) packages/forms/src/Components/Concerns/CanBeValidated.php:641 — CanBeValidated.distinct has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 2 (nesting depth added 4). 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.
D2 · Cognitive Complexity · KeyValue.toEmbeddedHtml (cognitive 16) · ×1
  • KeyValue.toEmbeddedHtml (cognitive 16) packages/forms/src/Components/KeyValue.php:375 — KeyValue.toEmbeddedHtml has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 2. To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · Login.authenticate (cognitive 16) · ×1
  • Login.authenticate (cognitive 16) packages/panels/src/Auth/Pages/Login.php:73 — Login.authenticate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, boolean chains 2, error handling 1, loops 1 (nesting depth added 3). 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.
D2 · Cognitive Complexity · HasState.getState (cognitive 16) · ×1
  • HasState.getState (cognitive 16) packages/schemas/src/Concerns/HasState.php:450 — HasState.getState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 4, loops 2 (nesting depth added 4). 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.
D2 · Cognitive Complexity · IconColumn.toEmbeddedHtml (cognitive 16) · ×1
  • IconColumn.toEmbeddedHtml (cognitive 16) packages/tables/src/Columns/IconColumn.php:267 — IconColumn.toEmbeddedHtml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 6, boolean chains 1, loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · SelectColumn.toEmbeddedHtml (cognitive 16) · ×1
  • SelectColumn.toEmbeddedHtml (cognitive 16) packages/tables/src/Columns/SelectColumn.php:931 — SelectColumn.toEmbeddedHtml has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, if/else 5, loops 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · TextColumn.canRenderOptimized (cognitive 16) · ×1
  • TextColumn.canRenderOptimized (cognitive 16) packages/tables/src/Columns/TextColumn.php:185 — TextColumn.canRenderOptimized has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 14, if/else 2. 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 · TextColumn.toOptimizedHtml (cognitive 16) · ×1
  • TextColumn.toOptimizedHtml (cognitive 16) packages/tables/src/Columns/TextColumn.php:214 — TextColumn.toOptimizedHtml has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, ternaries 3, boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth — many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
D2 · Cognitive Complexity · HasFilters.removeTableFilter (cognitive 16) · ×1
  • HasFilters.removeTableFilter (cognitive 16) packages/tables/src/Concerns/HasFilters.php:78 — HasFilters.removeTableFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, match/switch 3, ternaries 3, boolean chains 2, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body.
D35 · Change Coupling · Change coupling clique · ×1
  • Change coupling clique: TestsActions.php, TestsFormComponentActions.php, TestsInfolistActions.php, TestsActions.php packages/actions/src/Testing/TestsActions.php — 4 files — `packages/actions/src/Testing/TestsActions.php`, `packages/forms/src/Testing/TestsFormComponentActions.php`, `packages/infolists/src/Testing/TestsInfolistActions.php`, `packages/tables/src/Testing/TestsActions.php` — all change together with no explicit dependency: a fully-connected co-change clique, not 6 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique's coupling clears at once — you do not need to break each pair individually.
D36 · Supply-chain Provenance & Signing · Secret passed as a command-line argument · ×1
  • Secret passed as a command-line argument — 1 CI command(s) pass a credential as a bare command-line argument, where it is visible in the runner's process table to any other process on the host (and to anything that logs a command line): issue-reproduction-template.yml: auth_header=$(printf 'x-access-token:%s' "$TOKEN" | base64 | tr -d '\n'). Pass the credential through the environment instead (an `env:` mapping on the step, read by the tool from its own variable) or on stdin, so it never appears in an argument vector.
D38 · OSV Dependency Vulnerabilities · Medium vulnerability · ×1
  • Medium vulnerability: [GHSA redacted] composer.lock — guzzlehttp/guzzle 7.11.1: [GHSA redacted] — upgrade to 7.14.2. This is 1 of 7 advisories this scan raises against guzzlehttp/guzzle 7.11.1, and their fixed versions do not agree — anything below 7.15.1 still leaves at least one of them open, so 7.15.1 is the floor for this package, not this row's target alone. One upgrade of guzzlehttp/guzzle 7.11.1 clears all 7 advisories it raises: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted].
D38 · OSV Dependency Vulnerabilities · Medium CVE · ×1
  • Medium CVE: [GHSA redacted] composer.lock — guzzlehttp/psr7 2.11.0: [GHSA redacted] — guzzlehttp/psr7 is not declared in this repo's manifests: it is pulled in transitively, so upgrade the dependency that requires it (or require guzzlehttp/psr7:^2.12.3 explicitly so composer resolves the patched copy). This is 1 of 2 advisories this scan raises against guzzlehttp/psr7 2.11.0, and their fixed versions do not agree — anything below 2.12.3 still leaves at least one of them open, so 2.12.3 is the floor for this package, not this row's target alone. One upgrade of guzzlehttp/psr7 2.11.0 clears all 2 advisories it raises: [GHSA redacted], [GHSA redacted].
D4 · Code Duplication · Duplicated block (36 lines × 2) · ×1
  • Duplicated block (36 lines × 2) packages/schemas/src/Components/Concerns/CanGetStateFromRelationships.php:99 — packages/schemas/src/Components/Concerns/CanGetStateFromRelationships.php:99-134 | packages/support/src/Concerns/HasCellState.php:302-337
D4 · Code Duplication · Duplicated block (32 lines × 3) · ×1
  • Duplicated block (32 lines × 3) packages/tables/src/Columns/CheckboxColumn.php:36 — packages/tables/src/Columns/CheckboxColumn.php:36-80 | packages/tables/src/Columns/SelectColumn.php:991-1022 | packages/tables/src/Columns/TextInputColumn.php:228-276
D4 · Code Duplication · Duplicated block (32 lines × 2) · ×1
  • Duplicated block (32 lines × 2) packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:155 — packages/query-builder/src/Constraints/DateConstraint/Operators/IsAfterOperator.php:155-186 | packages/query-builder/src/Constraints/DateConstraint/Operators/IsBeforeOperator.php:155-186
D4 · Code Duplication · Duplicated block (30 lines × 2) · ×1
  • Duplicated block (30 lines × 2) packages/forms/src/Components/ModalTableSelect.php:607 — packages/forms/src/Components/ModalTableSelect.php:607-636 | packages/forms/src/Components/Select.php:1361-1390
D4 · Code Duplication · Duplicated block (29 lines × 2) · ×1
  • Duplicated block (29 lines × 2) packages/tables/src/Columns/ColorColumn.php:26 — packages/tables/src/Columns/ColorColumn.php:26-54 | packages/tables/src/Columns/IconColumn.php:272-300
D4 · Code Duplication · Duplicated block (28 lines × 3) · ×1
  • Duplicated block (28 lines × 3) packages/forms/src/Components/ModalTableSelect.php:473 — packages/forms/src/Components/ModalTableSelect.php:473-500 | packages/forms/src/Components/Select.php:1228-1255 | packages/forms/src/Components/TableSelect.php:151-178
D4 · Code Duplication · Duplicated block (27 lines × 5) · ×1
  • Duplicated block (27 lines × 5) packages/infolists/src/Components/CodeEntry.php:86 — packages/infolists/src/Components/CodeEntry.php:86-112 | packages/infolists/src/Components/ColorEntry.php:32-58 | packages/infolists/src/Components/IconEntry.php:248-274 | packages/tables/src/Columns/ColorColumn.php:36-62 | packages/tables/src/Columns/IconColumn.php:282-308
D4 · Code Duplication · Duplicated block (27 lines × 2) · ×1
  • Duplicated block (27 lines × 2) packages/infolists/src/Components/RepeatableEntry.php:121 — packages/infolists/src/Components/RepeatableEntry.php:121-147 | packages/infolists/src/Components/RepeatableEntry.php:173-199
D4 · Code Duplication · Duplicated block (26 lines × 3) · ×1
  • Duplicated block (26 lines × 3) packages/infolists/src/Components/ColorEntry.php:36 — packages/infolists/src/Components/ColorEntry.php:36-61 | packages/infolists/src/Components/IconEntry.php:252-277 | packages/infolists/src/Components/ImageEntry.php:456-482
D4 · Code Duplication · Duplicated block (23 lines × 6) · ×1
  • Duplicated block (23 lines × 6) packages/forms/src/Components/Builder.php:1135 — packages/forms/src/Components/Builder.php:1135-1157 | packages/schemas/src/Components/Concerns/HasContainerGridLayout.php:57-79 | packages/schemas/src/Concerns/HasColumns.php:81-103 | packages/support/src/Concerns/CanOrderColumns.php:57-79 | packages/support/src/Concerns/CanSpanColumns.php:95-117 | packages/support/src/Concerns/CanSpanColumns.php:147-169
D4 · Code Duplication · Duplicated block (22 lines × 5) · ×1
  • Duplicated block (22 lines × 5) packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:68 — packages/support/src/View/Concerns/CanGenerateBadgeHtml.php:68-90 | packages/support/src/View/Concerns/CanGenerateButtonHtml.php:87-114 | packages/support/src/View/Concerns/CanGenerateDropdownItemHtml.php:64-85 | packages/support/src/View/Concerns/CanGenerateIconButtonHtml.php:78-103 | packages/support/src/View/Concerns/CanGenerateLinkHtml.php:90-116
D4 · Code Duplication · Duplicated block (21 lines × 4) · ×1
  • Duplicated block (21 lines × 4) packages/forms/src/Components/ModalTableSelect.php:745 — packages/forms/src/Components/ModalTableSelect.php:745-765 | packages/forms/src/Components/Select.php:1530-1550 | packages/forms/src/Components/TableSelect.php:352-372 | packages/tables/src/Filters/Concerns/HasRelationship.php:67-87
D4 · Code Duplication · Duplicated block (21 lines × 3) · ×1
  • Duplicated block (21 lines × 3) packages/actions/src/DeleteBulkAction.php:101 — packages/actions/src/DeleteBulkAction.php:101-121 | packages/actions/src/ForceDeleteBulkAction.php:101-121 | packages/actions/src/RestoreBulkAction.php:105-125
D4 · Code Duplication · Duplicated block (21 lines × 2) · ×1
  • Duplicated block (21 lines × 2) packages/panels/src/Resources/Concerns/InteractsWithRelationshipTable.php:116 — packages/panels/src/Resources/Concerns/InteractsWithRelationshipTable.php:116-136 | packages/panels/src/Resources/Pages/ListRecords.php:131-151
D4 · Code Duplication · Duplicated block (20 lines × 3) · ×1
  • Duplicated block (20 lines × 3) packages/actions/src/DeleteBulkAction.php:40 — packages/actions/src/DeleteBulkAction.php:40-59 | packages/actions/src/ForceDeleteBulkAction.php:40-59 | packages/actions/src/RestoreBulkAction.php:40-59
D4 · Code Duplication · Duplicated block (17 lines × 4) · ×1
  • Duplicated block (17 lines × 4) packages/forms/src/Components/CheckboxList.php:313 — packages/forms/src/Components/CheckboxList.php:313-329 | packages/forms/src/Components/ModalTableSelect.php:666-682 | packages/forms/src/Components/Select.php:1420-1436 | packages/forms/src/Components/TableSelect.php:312-328
D4 · Code Duplication · Duplicated block (14 lines × 8) · ×1
  • Duplicated block (14 lines × 8) packages/forms/src/Testing/TestsForms.php:230 — packages/forms/src/Testing/TestsForms.php:230-243 | packages/schemas/src/Testing/TestsSchemas.php:25-38 | packages/schemas/src/Testing/TestsSchemas.php:61-74 | packages/schemas/src/Testing/TestsSchemas.php:165-178 | packages/schemas/src/Testing/TestsSchemas.php:266-280 | packages/schemas/src/Testing/TestsSchemas.php:293-307 | packages/schemas/src/Testing/TestsSchemas.php:346-360 | packages/schemas/src/Testing/TestsSchemas.php:370-384
D4 · Code Duplication · Duplicated block (13 lines × 5) · ×1
  • Duplicated block (13 lines × 5) packages/panels/src/Commands/MakePageCommand.php:449 — packages/panels/src/Commands/MakePageCommand.php:449-461 | packages/panels/src/Commands/MakePageCommand.php:469-481 | packages/panels/src/Commands/MakePageCommand.php:494-506 | packages/widgets/src/Commands/MakeWidgetCommand.php:395-407 | packages/widgets/src/Commands/MakeWidgetCommand.php:450-462
D4 · Code Duplication · Duplicated block (13 lines × 3) · ×1
  • Duplicated block (13 lines × 3) packages/infolists/src/Components/CodeEntry.php:129 — packages/infolists/src/Components/CodeEntry.php:129-141 | packages/infolists/src/Components/ColorEntry.php:76-88 | packages/tables/src/Columns/ColorColumn.php:77-89
D4 · Code Duplication · Duplicated block (11 lines × 7) · ×1
  • Duplicated block (11 lines × 7) packages/actions/src/DeleteAction.php:22 — packages/actions/src/DeleteAction.php:22-32 | packages/actions/src/DetachAction.php:24-34 | packages/actions/src/DissociateAction.php:24-34 | packages/actions/src/EditAction.php:30-40 | packages/actions/src/ForceDeleteAction.php:22-32 | packages/actions/src/ReplicateAction.php:36-46 | packages/actions/src/RestoreAction.php:22-32
D4 · Code Duplication · Duplicated block (11 lines × 5) · ×1
  • Duplicated block (11 lines × 5) packages/forms/src/Components/CheckboxList.php:399 — packages/forms/src/Components/CheckboxList.php:399-409 | packages/forms/src/Components/ModalTableSelect.php:719-729 | packages/forms/src/Components/Repeater.php:1145-1155 | packages/forms/src/Components/Select.php:1504-1514 | packages/forms/src/Components/TableSelect.php:387-397
D4 · Code Duplication · Duplicated block (10 lines × 4) · ×1
  • Duplicated block (10 lines × 4) packages/panels/src/Commands/MakeClusterCommand.php:173 — packages/panels/src/Commands/MakeClusterCommand.php:173-182 | packages/panels/src/Commands/MakePageCommand.php:351-360 | packages/spatie-laravel-settings-plugin/src/Commands/MakeSettingsPageCommand.php:246-255 | packages/widgets/src/Commands/MakeWidgetCommand.php:343-352
D4 · Code Duplication · Duplicated block (9 lines × 4) · ×1
  • Duplicated block (9 lines × 4) packages/forms/src/Components/ColorPicker.php:76 — packages/forms/src/Components/ColorPicker.php:76-84 | packages/forms/src/Components/DateTimePicker.php:114-122 | packages/forms/src/Components/Select.php:1842-1850 | packages/forms/src/Components/TextInput.php:319-327
D4 · Code Duplication · Duplicated block (8 lines × 3) · ×1
  • Duplicated block (8 lines × 3) packages/actions/src/ActionGroup.php:646 — packages/actions/src/ActionGroup.php:646-653 | packages/actions/src/ActionGroup.php:686-693 | packages/actions/src/ActionGroup.php:704-711
D4 · Code Duplication · Duplicated block (7 lines × 3) · ×1
  • Duplicated block (7 lines × 3) packages/forms/src/Components/Repeater.php:1625 — packages/forms/src/Components/Repeater.php:1625-1631 | packages/forms/src/Components/Repeater.php:1816-1822 | packages/forms/src/Components/Repeater.php:2001-2007
D4 · Code Duplication · Duplicated block (6 lines × 3) · ×1
  • Duplicated block (6 lines × 3) packages/schemas/src/View/Components/TextComponent.php:18 — packages/schemas/src/View/Components/TextComponent.php:18-23 | packages/support/src/View/Components/BadgeComponent.php:18-23 | packages/support/src/View/Components/LinkComponent.php:18-23
Recommendation — 8 finding(s)
D11 · Test Reliability · Test reliability not included · ×1
  • Test reliability not included — Test source is present (.php) but the built-in reliability runner does not support this repository's ecosystem, so flakiness couldn't be assessed. Not scored — this is a gap in the analyzer's language coverage, not a finding about this repository.
D16 · Bus Factor · Off-boarding risk · ×1
  • Off-boarding risk: anonymized user #1 — If anonymized user #1 becomes unavailable, 52 significant file(s) lose their only recent owner (largest: packages/upgrade/src/rector.php). Pair on, review, or document these before any departure.
D16 · Bus Factor · Further sole-owners (lower concentration) · ×1
  • Further sole-owners (lower concentration) — 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold — folded into the bus-factor score and metrics (54 single-owned of 442 analysed files in total).
D34 · Knowledge Freshness · Further orphaned files (smaller) · ×1
  • Further orphaned files (smaller) — 6 of 442 analysed file(s) have no living knowledge left — their last meaningful change has decayed away, so if one breaks, no one currently understands it. None is large enough to schedule a dedicated read-through on its own, so they are folded into the freshness score rather than raised individually — largest first: packages/forms/src/Components/ColorPicker.php, packages/forms/src/Components/RichEditor/TipTapExtensions/MentionExtension.php, packages/tables/resources/views/components/column-manager/index.blade.php (and 3 more).
D36 · Supply-chain Provenance & Signing · No build provenance · ×1
  • No build provenance — No SLSA provenance generation or build attestation found in CI (e.g. slsa-github-generator, actions/attest-build-provenance).
D36 · Supply-chain Provenance & Signing · No artifact signing · ×1
  • No artifact signing — No artifact signing found in CI — sign your released artifacts with whatever your ecosystem ships (a GPG/minisign detached signature — or `cosign sign-blob` — over the release archives, or over a checksum file published alongside them, `npm publish --provenance` under GitHub OIDC for npm packages) so consumers can verify what you built.
D36 · Supply-chain Provenance & Signing · No SBOM · ×1
  • No SBOM — No SBOM generation or committed SBOM found — produce one with what your ecosystem ships (`npm sbom --sbom-format cyclonedx` (npm 9+) or `@cyclonedx/cyclonedx-npm` over the lockfile, `syft` (or `anchore/sbom-action` in CI) over the source tree or released image). Publish it as a release asset (`*.spdx.json` / `*.cdx.json`) so consumers can see what they are installing.
D8 · Code Coverage · Coverage not included · ×1
  • Coverage not included — suite not readable by the collector — Coverage NOT MEASURED: test source is present (.php) but the built-in coverage collector has no runner for this repository's ecosystem — so this suite was never executed by it. Not scored — this is a gap in the analyzer's language coverage, not a defect in the repo. To have real coverage read, produce a coverage report in a standard format (Clover XML — `vendor/bin/phpunit --coverage-clover coverage.xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored.
Info — 2 finding(s)
D12 · Dependency Hygiene · Dependency hygiene not measured · ×1
  • Dependency hygiene not measured — dependency manifest found but not parsed for hygiene — This repository's dependency manifest (composer.json, package.json) was found, but this pass cannot parse it for hygiene, so no package was assessed. Zero packages read is NOT a clean dependency tree, so this is NOT SCORED — a gap in the analyzer, not a verdict about this repository. This row is about dependency HYGIENE — outdated, deprecated or unmaintained direct dependencies; known CVEs in the same dependency graph are a separate question, reported under D38 wherever the manifest is OSV-readable. Your package.json IS read in this same run: the frontend dependency lens (R8) parses it for unused declarations, undeclared imports and misplaced production dependencies — what is missing here is the outdated/deprecated/unmaintained signal for those npm packages, not the manifest.
D22 · Internal API Consistency · No exposed public API · ×1
  • No exposed public API — No intentionally-exposed types (IsPackable or .Contracts) to evaluate.

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)gitleaksgitleaks detect --no-banner --report-format json --report-path /dev/stdout --exit-code 0 --source .0artifacts/raw/gitleaks-history.json
D29 · Static Analysis (SAST)semgrepsemgrep --config /opt/semgrep-rules/security-audit.yml --config /opt/semgrep-rules/owasp-top-ten.yml --json --quiet --timeout 0 --metrics off .0artifacts/raw/semgrep.json
D30 · Dependency Vulnerabilitiesnone (no readable dependency manifest)none (no readable dependency manifest): not present in this environment0
D31 · IaC & Container Securitytrivytrivy: not applicable — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.0
D32 · Data Compliance (PII/GDPR)semgrepsemgrep: not applicable — No PII/GDPR ruleset is bundled (the public p/gdpr semgrep pack was retired) — data compliance is not assessed in this scan.0
D33 · JS/npm Dependency Vulnerabilitiestrivytrivy fs --scanners vuln --format json --quiet --severity CRITICAL,HIGH,MEDIUM,LOW --skip-dirs **/bin/** --skip-dirs **/obj/** . --skip-db-update0
D38 · OSV Dependency Vulnerabilitiesosv-scannerosv-scanner --format json --recursive .8artifacts/raw/osv-scanner.json
D40 · Network Egress Confinementruntime-hardeningruntime-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-hardeningruntime-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-hardeningruntime-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

Run 019fae13-77e5-7527-bf05-86fa902cf48a · 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