refactor: extract magic numbers to named constants #18
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-api#18
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?
Code Quality Issue
Magic Numbers Found
WebhookDelivery.php:98 -
10000Should be:
const MAX_RESPONSE_BODY_LENGTH = 10000;WebhookService.php:119 -
100Should be:
const MAX_WEBHOOK_BATCH_SIZE = 100;DeliverWebhookJob.php:33 -
5(already a constant ✓)Good example!
McpApiController.php:various -
600(cache TTL)Should be:
const MCP_CACHE_TTL = 600;or config valueWhy This Matters
Recommended Approach
Priority
Low - Code quality improvement