/webtrees/ |
H A D | phpstan-baseline.neon | 6 count: 1 12 count: 1 18 count: 2 24 count: 2 30 count: 2 36 count: 2 42 count: 2 48 count: 1 54 count: 2 60 count: 1 [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | SearchReplaceAction.php | 68 $count = $this->replaceRecords($records, $search, $replace); 69 …individual has been updated.', '%s individuals have been updated.', $count, I18N::number($count))); 72 $count = $this->replaceRecords($records, $search, $replace); 73 …al('%s family has been updated.', '%s families have been updated.', $count, I18N::number($count))); 76 $count = $this->replaceRecords($records, $search, $replace); 77 …epository has been updated.', '%s repositories have been updated.', $count, I18N::number($count))); 80 $count = $this->replaceRecords($records, $search, $replace); 81 …ral('%s source has been updated.', '%s sources have been updated.', $count, I18N::number($count))); 84 $count = $this->replaceRecords($records, $search, $replace); 85 …:plural('%s note has been updated.', '%s notes have been updated.', $count, I18N::number($count))); [all …]
|
H A D | ControlPanel.php | 143 …dcom_file_count = $this->admin_service->gedcomFiles(Registry::filesystem()->data())->count(); 236 ->map(static fn (string $count): int => (int) $count) 251 ->map(static fn (string $count): int => (int) $count); 265 ->map(static fn (string $count): int => (int) $count); 279 ->map(static fn (string $count): int => (int) $count); 293 ->map(static fn (string $count): int => (int) $count); 311 ->map(static fn (string $count): int => (int) $count); 329 ->map(static fn (string $count): int => (int) $count); 347 ->map(static fn (string $count): int => (int) $count);
|
H A D | DataFixUpdateAll.php | 116 $total = $rows->count(); 121 static $count = 0; 123 $count += $chunk->count(); 136 'percent' => (100.0 * $count / $total) . '%', 137 'progress' => I18N::percentage($count / $total, 1),
|
/webtrees/resources/views/admin/ |
H A D | control-panel.phtml | 298 <?= I18N::number($all_trees->count()) ?> 323 <?php if (count($all_trees) > 1) : ?> 499 <?= I18N::number(count($all_users)) ?> 573 …omponents/badge', ['count' => $all_modules_enabled->count(), 'total' => $all_modules_disabled->cou… 584 …omponents/badge', ['count' => $all_modules_enabled->count(), 'total' => $all_modules_disabled->cou… 600 …nents/badge', ['count' => $footer_modules_enabled->count(), 'total' => $footer_modules_disabled->c… 607 …/badge', ['count' => $analytics_modules_enabled->count(), 'total' => $analytics_modules_disabled->… 614 …onents/badge', ['count' => $theme_modules_enabled->count(), 'total' => $theme_modules_disabled->co… 621 …ts/badge', ['count' => $language_modules_enabled->count(), 'total' => $language_modules_disabled->… 635 …onents/badge', ['count' => $block_modules_enabled->count(), 'total' => $block_modules_disabled->co… [all …]
|
H A D | locations.phtml | 104 <?php if (count($active[$place->key]) === 1) : ?> 111 …?= I18N::plural('%s family tree', '%s family trees', count($active[$place->key]), I18N::number(cou… 170 <?php if (count($active) !== count($placelist)) : ?>
|
/webtrees/resources/views/modules/sitemap/ |
H A D | sitemap-index-xml.phtml | 32 <?php foreach ($count_families as $tree_name => $count) : ?> 33 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 45 <?php foreach ($count_individuals as $tree_name => $count) : ?> 46 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 58 <?php foreach ($count_media as $tree_name => $count) : ?> 59 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 71 <?php foreach ($count_notes as $tree_name => $count) : ?> 72 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> 84 <?php foreach ($count_repositories as $tree_name => $count) : ?> 85 <?php for ($i = 0; $i <= $count / $records_per_volume; ++$i) : ?> [all …]
|
/webtrees/app/Services/ |
H A D | GedcomEditService.php | 42 use function count; alias 127 $count = count($levels); 128 assert($count > 0); 129 assert(count($tags) === $count); 130 assert(count($values) === $count); 135 for ($i = 0; $i < $count; $i++) { 144 for ($j = $i + 1; $j < $count && $levels[$j] > $levels[$i]; ++$j) { 154 for ($j = $i + 1; $j < $count && $levels[$j] > $levels[$i]; $j++) { 288 $count = 0; 294 $count++; [all …]
|
H A D | DatatablesService.php | 60 $recordsTotal = $collection->count(); 98 $recordsFiltered = $collection->count(); 136 $recordsTotal = (clone $query)->count(); 166 $recordsFiltered = (clone $query)->count(); 173 $recordsFiltered = $data->count();
|
/webtrees/resources/views/ |
H A D | search-trees.phtml | 16 <?php if ($all_trees->count() > 1) : ?> 23 <?php if ($all_trees->count() > 3) : ?> 25 <?php if ($all_trees->count() > $search_trees->count()) : ?> 37 …<div id="more-trees" class="<?= $all_trees->count() > $search_trees->count() ? 'collapse' : '' ?>"> 45 …<div class="ms-auto <?= $all_trees->count() > $search_trees->count() ? 'collapse' : '' ?>" id="sel… 52 <?php if ($all_trees->count() > 10) : ?>
|
H A D | record-page-links.phtml | 43 <?= view('components/badge', ['count' => $linked_individuals->count()]) ?> 52 <?= view('components/badge', ['count' => $linked_families->count()]) ?> 61 <?= view('components/badge', ['count' => $linked_media_objects->count()]) ?> 70 <?= view('components/badge', ['count' => $linked_sources->count()]) ?> 79 <?= view('components/badge', ['count' => $linked_notes->count()]) ?> 88 <?= view('components/badge', ['count' => $linked_repositories->count()]) ?> 97 <?= view('components/badge', ['count' => $linked_submitters->count()]) ?> 106 <?= view('components/badge', ['count' => $linked_locations->count()]) ?>
|
H A D | family-page-children.phtml | 18 <?php if ($family->children()->count() === 0) : ?> 21 …ral('%s child', '%s children', $family->children()->count(), I18N::number($family->children()->cou… 28 <?php if ($family->children()->count() === 1) : ?> 32 <?php elseif ($n + 1 === $family->children()->count()) : ?> 58 <?php if ($family->children()->count() !== 1) : ?>
|
H A D | search-results.phtml | 41 <?= I18N::number(count($individuals)) ?> 52 <?= I18N::number(count($families)) ?> 63 <?= I18N::number(count($sources)) ?> 74 <?= I18N::number(count($repositories)) ?> 85 <?= I18N::number(count($notes)) ?> 96 <?= I18N::number(count($locations)) ?>
|
H A D | pending-changes-page.phtml | 25 <?php if ($count > count($changes)) : ?> 26 …wing %1$s to %2$s of %3$s', I18N::number(1), I18N::number(count($changes)), I18N::number($count)) … 102 …= e(route(PendingChangesAcceptTree::class, ['tree' => $tree->name(), 'n' => count($changes)])) ?>">
|
/webtrees/app/Statistics/Repository/ |
H A D | FavoritesRepository.php | 31 use function count; alias 89 $count = 0; 95 $count = count($module->getFavorites($this->tree)); 98 return I18N::number($count); 106 $count = 0; 112 $count = count($module->getFavorites($this->tree, Auth::user())); 115 return I18N::number($count);
|
H A D | IndividualRepository.php | 130 foreach ($rows as $n_givn => $count) { 136 $nameList[$given] += (int) $count; 138 $nameList[$given] = (int) $count; 465 $count = $query->count('n_givn'); 467 return I18N::number($count); 491 $count = $query->count('n_surn'); 493 return I18N::number($count); 531 ->map(static fn (string $count): int => (int) $count) 1334 * @param int $count 1339 private function getPercentage(int $count, int $total): string argument [all …]
|
H A D | PlaceRepository.php | 118 foreach ($places as $place => $count) { 122 'count' => $count, 232 foreach ($countries as $country => $count) { 235 $all_db_countries[$country_names[$country]][$country] += (int) $count; 237 $all_db_countries[$country_names[$country]][$country] = (int) $count; 278 ->count();
|
/webtrees/app/Report/ |
H A D | ReportParserGenerate.php | 53 use function count; alias 697 if (count($tags) < 2) { 1112 $count = count($tags); 1114 while ($i < $count) { 1117 if ($i < ($count - 1)) { 1132 $count = preg_match_all("/$level $t(.*)/", $subrec, $match, PREG_SET_ORDER); 1134 while ($i < $count) { 1163 if (count($this->repeats) > 0) { 1179 $count = 1; 1180 while (0 < $count) { [all …]
|
/webtrees/resources/views/modules/pedigree-chart/ |
H A D | previous.phtml | 21 <?php if (count($siblings) > 1) : ?> 23 <?php elseif (count($siblings) > 0) : ?> 30 <?php if (count($spouses) > 1) : ?> 32 <?php elseif (count($spouses) > 0) : ?> 39 <?php if (count($children) > 1) : ?> 41 <?php elseif (count($children) > 0) : ?>
|
/webtrees/app/ |
H A D | Soundex.php | 23 use function count; alias 651 if (count($words) > 1) { 677 if (count($words) > 1) { 756 while ($state < count($soundTableEntry)) { 761 $tempEntry[count($tempEntry) - 1] .= '!'; // Prevent false 'doubles' 766 if ($soundTableEntry[$state] !== $workingEntry[count($workingEntry) - 1]) { 777 if (count($workingEntry) < 7) {
|
H A D | Relationship.php | 27 use function count; alias 128 $this->matchers[] = static fn (array $nodes): bool => count($nodes) > 2 && $nodes[2] 206 $limit = min(intdiv(count($nodes), 2), count($patterns)); 346 $this->matchers[] = static fn (array $nodes): bool => count($nodes) > 2 && $nodes[2] 460 $count = count($patterns); 465 while ($n < $count && in_array($patterns[$n], Relationship::PARENTS, true)) { 470 if ($n === 0 || $n * 2 + 1 !== $count) { 480 for ($descendants = $n + 1; $descendants < $count; ++$descendants) {
|
/webtrees/app/Statistics/Google/ |
H A D | ChartCommonGiven.php | 25 use function count; alias 63 foreach ($given as $count) { 64 $tot += $count; 74 foreach ($given as $name => $count) { 75 $data[] = [$name, $count]; 83 $colors = $this->color_service->interpolateRgb($color_from, $color_to, count($data) - 1);
|
H A D | ChartDistribution.php | 114 foreach ($places as $country => $count) { 120 $count 152 foreach ($rows as $country => $count) { 156 $totals[$country_code] = $count + ($totals[$country_code] ?? 0); 191 foreach ($rows as $country => $count) { 195 $totals[$country_code] = $count + ($totals[$country_code] ?? 0);
|
/webtrees/app/Module/ |
H A D | PlaceHierarchyListModule.php | 47 use function count; alias 284 Family::RECORD_TYPE => $this->familyPlaceLinks($child)->count(), 285 Individual::RECORD_TYPE => $this->individualPlaceLinks($child)->count(), 286 Location::RECORD_TYPE => $this->locationPlaceLinks($child)->count(), 320 $count = count($places); 326 $columns = $count > 20 ? 3 : 2; 328 return array_chunk($places, (int) ceil($count / $columns)); 339 $numfound = count($child_places);
|
H A D | HitCountFooterModule.php | 172 $count = (int) DB::table('hit_counter') 178 $count++; 185 'page_count' => $count, 191 Session::put('last_count', $count); 193 return $count;
|