Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

fix: pass composer check:strict — named-arg PHPCS + orphan-auth gate-6#288

Merged
rubenvdlinde merged 1 commit into
developmentfrom
fix/strict-phpcs-gate6
May 28, 2026
Merged

fix: pass composer check:strict — named-arg PHPCS + orphan-auth gate-6#288
rubenvdlinde merged 1 commit into
developmentfrom
fix/strict-phpcs-gate6

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • SettingsService:220 — add named parameter raw: to the internal validateDefaultColumns() call to satisfy the NamedParameters PHPCS sniff (was the only remaining PHPCS error)
  • ProjectController::create() — delegate the allow_project_creation policy check to checkCreatePolicy() instead of duplicating the guard inline; this gives checkCreatePolicy a PHP caller so Hydra gate-6 orphan-auth passes, and consolidates the 403 path in one place

Results

  • composer check:strict: exit 0 (ALL CHECKS PASSED)
  • All 19 Hydra gates: GREEN (gate-6 orphan-auth was FAIL before, now PASS)
  • PHPCS: 0 errors (22 @spec warnings remain — cosmetic, as expected)
  • PHPMD / Psalm / PHPStan: unchanged PASS

Test plan

  • composer check:strict exits 0 on the branch
  • Hydra gates: bash scripts/run-hydra-gates.sh → all 19 PASS
  • checkCreatePolicy still reachable via GET /api/projects/check-create-policy
  • create() returns 403 when allow_project_creation is restricted (delegates to checkCreatePolicy())

SettingsService:220 — add named parameter `raw:` to internal call of
validateDefaultColumns() to satisfy the NamedParameters PHPCS sniff.

ProjectController::create() — delegate the allow_project_creation policy
check to checkCreatePolicy() instead of duplicating it inline.  This
removes the duplicated guard, gives checkCreatePolicy() a PHP caller so
gate-6 orphan-auth passes, and consolidates the 403 path in one place.

composer check:strict: exit 0.  All 19 Hydra gates GREEN.
@rubenvdlinde rubenvdlinde merged commit e515f78 into development May 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant