Skip to content

refactor(aangeboden-gebruik): remove two ownership checks nothing calls - #1380

Merged
rubenvdlinde merged 1 commit into
developmentfrom
refactor/sig-dead-ownership-checks
Nov 2, 2026
Merged

rubenvdlinde merged 1 commit into
developmentfrom
refactor/sig-dead-ownership-checks

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

What

Removes AangebodenGebruikService::checkOrganisationOwnership and getApplicationsOwnedByOrganisation (160 lines) and their two PHPStan baseline entries. Both are private and nothing calls them; PHPStan baselined both as unused.

They are not a missing guard. Both duplicate the ownership check that getKoppelingenGebruikByUuid does inline, added in the same commit (919697e). RW40 reviewed this and found no access gap. I left them out of #1374 for that review.

SIG

No check moves on its own. Neither method took 3 or more parameters; php unit LOC drops by about 116.

Verified

  • php -l, phpcs (0 errors), phpstan (0 new; no other member became unused), psalm, phpmd on the file.
  • The 34 AangebodenGebruikService unit tests pass.
  • Full unit suite once under pcov with --fail-on-risky: 1,506 tests, the same 20 errors as development (Doctrine\DBAL\ParameterType missing locally), 0 risky.
  • gate 122 ratchet 0; gate 123 (sig-floor) PASS, 29 floored checks held; diff-check gates, phpcs and phpstan 0 new (its phpunit step exits 255 on phpunit.xml's server bootstrap, as on development).
  • Branched from current development.

AI disclosure: prepared with Claude Code (claude-opus-5-5) and reviewed by the lane before opening.

checkOrganisationOwnership and getApplicationsOwnedByOrganisation were
never called (PHPStan baselined both as unused). They duplicate the
ownership check that getKoppelingenGebruikByUuid does inline, added in
the same commit (919697e), so removing them leaves no access gap.

Assisted-by: ClaudeCode:claude-opus-5-5
@rubenvdlinde
rubenvdlinde merged commit 5e0f241 into development Nov 2, 2026
8 checks passed
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Quality Report — ConductionNL/stackiq @ 7e16b3b

Check PHP Vue Security License Tests
lint ✅
phpcs ✅
phpmd ✅
psalm ✅
phpstan ✅
phpmetrics ✅
eslint ✅
stylelint ✅
build ✅
check-manifest ✅
check-vue-demi ✅
test-l10n ✅
format ❌
check-schema-l10n ❌
check-l10n-js ✅
composer ❌ ✅ 127/127
npm ❌ ✅ 807/807
app:check-code ⏭️
info.xml ✅
REUSE ❌
lockfile sync ✅
PHPUnit ✅ 1486/1486 · 20 skipped
Newman ⏭️
Playwright ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development.
Hydra gates ❌

Quality workflow — 2026-11-02 22:33 UTC

Download the full PDF report from the workflow artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant