Commit df0a21f
authored
refactor(archimate): delete the unreachable private getVoorzieningenConfig duplicate (#468)
`ArchiMateService::getVoorzieningenConfig()` is `private` and has zero
`$this->` call sites in its own file — the only thing that can reach a private
method. It is not reflected into either: the whole of `lib/` contains exactly
one `ReflectionMethod` call site (`SettingsService:4644`) and it targets
`getAmefConfig`, not this method. It cannot run.
It is also a STALE duplicate. `SettingsService::getVoorzieningenConfig()` is
the live resolver — 13 references across the app — and it ends with
`normalizeVoorzieningenConfig()`, which this copy never had. Anything that had
been wired to the copy would have received un-normalised config.
Removing it removes three of gate-50's seventeen unsafe config reads
(`voorzieningen_register`, `voorzieningen_organisatie_schema`,
`voorzieningen_contactpersoon_schema`) by removing code that cannot execute,
not by moving a guard into the checker's window.
Can-fail proof: restoring the file from origin/development puts gate-50 back to
17; with the deletion it reports 14.
phpcs clean, psalm clean, phpstan clean, phpmd clean against the repo baseline,
unit suite 512 tests green.1 parent eff9e05 commit df0a21f
1 file changed
Lines changed: 0 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1694 | 1694 | | |
1695 | 1695 | | |
1696 | 1696 | | |
1697 | | - | |
1698 | | - | |
1699 | | - | |
1700 | | - | |
1701 | | - | |
1702 | | - | |
1703 | | - | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
1712 | | - | |
1713 | | - | |
1714 | | - | |
1715 | | - | |
1716 | | - | |
1717 | | - | |
1718 | | - | |
1719 | | - | |
1720 | | - | |
1721 | | - | |
1722 | | - | |
1723 | | - | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
1727 | 1697 | | |
1728 | 1698 | | |
1729 | 1699 | | |
| |||
0 commit comments