Files
breadcrumb-the-shire/core/Support/helpers.php
fs 6c99c040b2 refactor(support): centralize ID-array normalization in toIntIds()
Consolidates the scattered `array_values(array_unique(array_map('intval',
$x)))` + manual positive-filter pattern behind a single lenient helper
`toIntIds(mixed $value): array` in core/Support/helpers/array.php.

- `RepositoryArrayHelper::sanitizePositiveIds()` now delegates (keeps
  strict array-input contract + existing tests intact).
- Drops two private duplicates: `UserProfileViewService::normalizeIds()`
  and `AddressBookService::normalizeIds()`.
- Replaces 12 inline occurrences across admin action pages with the
  helper, cutting boilerplate by 3-5 lines per site.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-24 19:11:53 +02:00

12 lines
395 B
PHP

<?php
// Load all global helper groups used by templates and page actions.
require __DIR__ . '/helpers/app.php';
require __DIR__ . '/helpers/array.php';
require __DIR__ . '/helpers/branding.php';
require __DIR__ . '/helpers/export.php';
require __DIR__ . '/helpers/grid.php';
require __DIR__ . '/helpers/i18n.php';
require __DIR__ . '/helpers/request.php';
require __DIR__ . '/helpers/ui.php';