Home
last modified time | relevance | path

Searched refs:array_map (Results 1 – 25 of 41) sorted by relevance

12

/webtrees/app/Services/
H A DAdminService.php41 use function array_map; alias
126 …->map(static fn (string $xrefs): array => array_map(static fn (string $xref): Source => Registry::…
152 …->map(static fn (string $xrefs): array => array_map(static fn (string $xref): Individual => Regist…
163 …->map(static fn (string $xrefs): array => array_map(static fn (string $xref): Family => Registry::…
174 …->map(static fn (string $xrefs): array => array_map(static fn (string $xref): Media => Registry::m…
H A DServerCheckService.php27 use function array_map; alias
165 …$disable_functions = array_map(static fn (string $func): string => strtolower(trim($func)), $disab…
H A DGedcomImportService.php46 use function array_map; alias
557 $rows = array_intersect_key($rows, array_unique(array_map('serialize', $rows)));
612 $rows = array_intersect_key($rows, array_unique(array_map('serialize', $rows)));
/webtrees/app/Factories/
H A DRouteFactory.php32 use function array_map; alias
65 $parameters = array_map(static fn ($var) => is_bool($var) ? (int) $var : $var, $parameters);
68 $url_parameters = array_map(static fn ($var) => $var === '' ? null : $var, $parameters);
/webtrees/tests/feature/
H A DIndividualListTest.php31 use function array_map; alias
76 self::assertEquals(['A', 'C', 'D', 'Æ'], array_map(rawurldecode(...), $matches[1]));
83 self::assertEquals(['A', 'C', 'D', 'Å', 'Æ'], array_map(rawurldecode(...), $matches[1]));
90 self::assertEquals(['A', 'C', 'CS', 'DZ', 'Æ'], array_map(rawurldecode(...), $matches[1]));
/webtrees/app/Http/RequestHandlers/
H A DSearchAdvancedPage.php38 use function array_map; alias
153 …$fields = array_map(static fn (string $x): string => preg_replace('/^\s+|\s+$/uD', '', $x), $field…
161 …$message = 'Advanced: ' . implode(', ', array_map($fn, array_keys($search_fields), $search_fields)…
H A DFamilyPage.php36 use function array_map; alias
154 $meta_facts = array_map(static fn (string $x): string => strip_tags($x), $meta_facts);
155 $meta_facts = array_map(static fn (string $x): string => trim($x), $meta_facts);
H A DIndividualPage.php44 use function array_map; alias
226 $meta_facts = array_map(static fn (string $x): string => strip_tags($x), $meta_facts);
227 $meta_facts = array_map(static fn (string $x): string => trim($x), $meta_facts);
H A DMapDataExportCSV.php31 use function array_map; alias
130 $places = array_map(fn (object $place): array => array_merge(
/webtrees/app/Module/
H A DIndividualMetadataModule.php27 use function array_map; alias
112 …return new Collection(array_map(static fn (string $tag): string => 'INDI:' . $tag, static::HANDLED…
H A DAbstractIndividualListModule.php44 use function array_map; alias
210 …$variants = array_map(static fn (string $x): string => $x === '' ? I18N::translate('No surname') :…
372 … $count = array_sum(array_map(static fn (array $x): int => array_sum($x), $all_surnames));
380 … $all_surnames = array_values(array_map(static fn ($x): array => array_keys($x), $all_surnames));
H A DTimelineChartModule.php177 …$individuals = array_map(static fn (string $xref): Individual|null => Registry::individualFactory(…
235 …$individuals = array_map(static fn (string $xref): Individual|null => Registry::individualFactory(…
H A DClippingsCartModule.php60 use function array_map; alias
241 $xrefs = array_map('strval', $xrefs); // PHP converts numeric keys to integers.
353 $xrefs = array_map('strval', $xrefs); // PHP converts numeric keys to integers.
356 …$records = array_map(static fn (string $xref): GedcomRecord|null => Registry::gedcomRecordFactory(…
/webtrees/app/Encodings/
H A DAbstractEncoding.php23 use function array_map; alias
56 $chars = array_map(static function (string $char) use ($utf8): string {
/webtrees/resources/views/lists/
H A Dsurnames-tag-cloud.phtml19 $maximum = max(array_map(static fn (array $x): int => max($x), $surnames));
20 $minimum = min(array_map(static fn (array $x): int => min($x), $surnames));
/webtrees/app/Statistics/Service/
H A DColorService.php22 use function array_map; alias
91 …return array_map(static fn (string $hex): int => (int) hexdec($hex), str_split(ltrim($hex, '#'), 2…
/webtrees/app/
H A DContainer.php29 use function array_map; alias
88 $parameters = array_map(self::makeParameter(...), $constructor->getParameters());
H A DSession.php25 use function array_map; alias
72 …$path = implode('/', array_map(static fn (string $x): string => rawurlencode($x), explode('/', $pa…
H A DGedcomRecord.php33 use function array_map; alias
625 $filter = array_map(fn (string $tag): string => $this->tag() . ':' . $tag, $filter);
645 … $subtags = array_map(fn (string $tag): string => $this->tag() . ':' . $tag, array_keys($subtags));
/webtrees/resources/views/
H A Dfact-add-new.phtml88 $quick_facts = array_combine($quick_facts, array_map($label_fn, $quick_facts));
89 $add_facts = array_combine($add_facts, array_map($label_fn, $add_facts));
/webtrees/app/SurnameTradition/
H A DDefaultSurnameTradition.php29 use function array_map; alias
138 $parts = array_map(
/webtrees/app/Elements/
H A DEventsRecorded.php27 use function array_map; alias
160 $events = array_map(static function (string $tag): string {
H A DAbstractElement.php29 use function array_map; alias
164 $values = array_map(static fn (string $x): string => strip_tags($x), $values);
/webtrees/app/CommonMark/
H A DCensusTableContinueParser.php33 use function array_map; alias
95 $cells = array_map($callback, $cells);
/webtrees/app/Statistics/Repository/
H A DEventRepository.php37 use function array_map; alias
206 $no_facts = array_map(

12