refactor: remove or implement empty register() methods in Boot classes #17
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
epic
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-admin#17
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Issue
Two Boot service provider classes have empty
register()methods.Affected Files
1. src/Mod/Hub/Boot.php (lines 213-216)
2. src/Website/Hub/Boot.php (lines 61-64)
Laravel Service Provider Convention
From Laravel docs:
register()- Bind services into service containerboot()- Perform actions after all services registeredIf
register()is not needed, it can be omitted entirely.Recommendation
Option A: Remove Empty Methods
If no container bindings needed:
Option B: Add PHPDoc
If intentionally empty for future use:
Option C: Move Bindings from boot() to register()
If there are service container bindings in
boot()that should be inregister():register()boot()Analysis
Checking both files:
Mod/Hub/Boot.php:
boot()boot()for theseWebsite/Hub/Boot.php:
boot()boot()for theseVerdict
Remove empty methods - They serve no purpose and add clutter.
Priority
Low - Code quality/cleanup, no functional impact.
Discovered by
Automatic codebase scan (issue #3)