summaryrefslogtreecommitdiff
path: root/resources/views/modules
diff options
context:
space:
mode:
Diffstat (limited to 'resources/views/modules')
-rw-r--r--resources/views/modules/GEDFact_assistant/select-census.phtml7
-rw-r--r--resources/views/modules/ancestors-chart/page.phtml14
-rw-r--r--resources/views/modules/batch_update/admin.phtml113
-rw-r--r--resources/views/modules/block-template.phtml8
-rw-r--r--resources/views/modules/branches/list.phtml7
-rw-r--r--resources/views/modules/census-assistant.phtml5
-rw-r--r--resources/views/modules/charts/chart.phtml8
-rw-r--r--resources/views/modules/charts/config.phtml9
-rw-r--r--resources/views/modules/clippings/add-options.phtml8
-rw-r--r--resources/views/modules/clippings/download.phtml9
-rw-r--r--resources/views/modules/clippings/show.phtml9
-rw-r--r--resources/views/modules/compact-chart/arrow-down.phtml17
-rw-r--r--resources/views/modules/compact-chart/arrow-left.phtml17
-rw-r--r--resources/views/modules/compact-chart/arrow-right.phtml17
-rw-r--r--resources/views/modules/compact-chart/arrow-up.phtml17
-rw-r--r--resources/views/modules/compact-chart/chart.phtml12
-rw-r--r--resources/views/modules/compact-chart/individual.phtml25
-rw-r--r--resources/views/modules/compact-chart/page.phtml9
-rw-r--r--resources/views/modules/contact-links/footer.phtml7
-rw-r--r--resources/views/modules/custom-css-js/edit.phtml6
-rw-r--r--resources/views/modules/descendancy/sidebar.phtml6
-rw-r--r--resources/views/modules/descendancy_chart/page.phtml14
-rw-r--r--resources/views/modules/edit-block-config.phtml10
-rw-r--r--resources/views/modules/family-book-chart/page.phtml14
-rw-r--r--resources/views/modules/family-book-chart/parents.phtml10
-rw-r--r--resources/views/modules/family_nav/sidebar.phtml9
-rw-r--r--resources/views/modules/fanchart/chart.phtml23
-rw-r--r--resources/views/modules/fanchart/page.phtml17
-rw-r--r--resources/views/modules/faq/config.phtml15
-rw-r--r--resources/views/modules/faq/show.phtml6
-rw-r--r--resources/views/modules/gedcom_block/welcome.phtml7
-rw-r--r--resources/views/modules/gedcom_news/edit.phtml8
-rw-r--r--resources/views/modules/gedcom_news/list.phtml13
-rw-r--r--resources/views/modules/gedcom_stats/config.phtml22
-rw-r--r--resources/views/modules/gedcom_stats/statistics.phtml23
-rw-r--r--resources/views/modules/google-analytics/snippet.phtml9
-rw-r--r--resources/views/modules/hit-counter/footer.phtml7
-rw-r--r--resources/views/modules/hourglass-chart/page.phtml13
-rw-r--r--resources/views/modules/hourglass-chart/parents.phtml5
-rw-r--r--resources/views/modules/html/config.phtml8
-rw-r--r--resources/views/modules/html/template-statistics.phtml7
-rw-r--r--resources/views/modules/individual-list/page.phtml8
-rw-r--r--resources/views/modules/interactive-tree/chart.phtml9
-rw-r--r--resources/views/modules/interactive-tree/page.phtml8
-rw-r--r--resources/views/modules/interactive-tree/tab.phtml5
-rw-r--r--resources/views/modules/lifespans-chart/chart.phtml9
-rw-r--r--resources/views/modules/lifespans-chart/page.phtml9
-rw-r--r--resources/views/modules/lightbox/tab.phtml10
-rw-r--r--resources/views/modules/login_block/sign-in.phtml7
-rw-r--r--resources/views/modules/login_block/sign-out.phtml5
-rw-r--r--resources/views/modules/matomo-analytics/snippet.phtml9
-rw-r--r--resources/views/modules/media/tab.phtml13
-rw-r--r--resources/views/modules/note-list/page.phtml13
-rw-r--r--resources/views/modules/notes/tab.phtml10
-rw-r--r--resources/views/modules/pedigree-chart/page.phtml1
-rw-r--r--resources/views/modules/pedigree-map/page.phtml11
-rw-r--r--resources/views/modules/personal_facts/tab.phtml10
-rw-r--r--resources/views/modules/place-hierarchy/events.phtml18
-rw-r--r--resources/views/modules/place-hierarchy/map.phtml5
-rw-r--r--resources/views/modules/places/tab.phtml5
-rw-r--r--resources/views/modules/powered-by-webtrees/footer.phtml8
-rw-r--r--resources/views/modules/privacy-policy/footer.phtml6
-rw-r--r--resources/views/modules/privacy-policy/page.phtml9
-rw-r--r--resources/views/modules/random_media/config.phtml12
-rw-r--r--resources/views/modules/random_media/slide-show.phtml3
-rw-r--r--resources/views/modules/recent_changes/changes-list.phtml1
-rw-r--r--resources/views/modules/relationships-chart/config.phtml11
-rw-r--r--resources/views/modules/relationships-chart/page.phtml16
-rw-r--r--resources/views/modules/relatives/family.phtml9
-rw-r--r--resources/views/modules/relatives/tab.phtml19
-rw-r--r--resources/views/modules/repository-list/page.phtml13
-rw-r--r--resources/views/modules/review_changes/config.phtml5
-rw-r--r--resources/views/modules/sitemap/config.phtml9
-rw-r--r--resources/views/modules/source-list/page.phtml13
-rw-r--r--resources/views/modules/sources_tab/tab.phtml10
-rw-r--r--resources/views/modules/statistics-chart/custom.phtml7
-rw-r--r--resources/views/modules/statistics-chart/page.phtml5
-rw-r--r--resources/views/modules/stories/config.phtml9
-rw-r--r--resources/views/modules/stories/list.phtml6
-rw-r--r--resources/views/modules/submitter-list/page.phtml13
-rw-r--r--resources/views/modules/timeline-chart/page.phtml14
-rw-r--r--resources/views/modules/todays_events/config.phtml14
-rw-r--r--resources/views/modules/todo/config.phtml6
-rw-r--r--resources/views/modules/top10_givnnames/block.phtml5
-rw-r--r--resources/views/modules/top10_givnnames/config.phtml8
-rw-r--r--resources/views/modules/top10_pageviews/config.phtml4
-rw-r--r--resources/views/modules/top10_pageviews/list.phtml4
-rw-r--r--resources/views/modules/top10_surnames/config.phtml8
-rw-r--r--resources/views/modules/upcoming_events/config.phtml16
-rw-r--r--resources/views/modules/user_blog/list.phtml4
90 files changed, 835 insertions, 167 deletions
diff --git a/resources/views/modules/GEDFact_assistant/select-census.phtml b/resources/views/modules/GEDFact_assistant/select-census.phtml
index 0231fb3b31..7a239a0bbc 100644
--- a/resources/views/modules/GEDFact_assistant/select-census.phtml
+++ b/resources/views/modules/GEDFact_assistant/select-census.phtml
@@ -1,9 +1,14 @@
<?php
+use Fisharebest\Webtrees\Census\CensusPlaceInterface;
use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\I18N;
+
+/**
+ * @var array<CensusPlaceInterface> $census_places
+ */
?>
-<?php use Fisharebest\Webtrees\I18N; ?>
<script>
function selectCensus(el) {
diff --git a/resources/views/modules/ancestors-chart/page.phtml b/resources/views/modules/ancestors-chart/page.phtml
index fd28ff754b..58d74a8d4c 100644
--- a/resources/views/modules/ancestors-chart/page.phtml
+++ b/resources/views/modules/ancestors-chart/page.phtml
@@ -1,6 +1,20 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $ajax_url
+ * @var int $generations
+ * @var Individual|null $individual
+ * @var int $maximum_generations
+ * @var int $minimum_generations
+ * @var string $style
+ * @var array<string,string> $styles
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/batch_update/admin.phtml b/resources/views/modules/batch_update/admin.phtml
deleted file mode 100644
index 46665930d7..0000000000
--- a/resources/views/modules/batch_update/admin.phtml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?php
-
-use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
-use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
-use Fisharebest\Webtrees\I18N;
-use Fisharebest\Webtrees\View;
-
-?>
-
-<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), route(ModulesAllPage::class) => I18N::translate('Module administration'), $title]]) ?>
-
-<h1><?= $title ?></h1>
-
-<form method="post" id="batch-update-form">
- <?= csrf_field() ?>
-
- <input type="hidden" name="xref" value="<?= $curr_xref ?>">
-
- <div class="row form-group">
- <label class="col-sm-3 col-form-label"><?= I18N::translate('Family tree') ?></label>
- <div class="col-sm-9">
- <?= view('components/select', ['name' => 'tree', 'selected' => $tree->name(), 'options' => $trees]) ?>
- </div>
- </div>
- <div class="row form-group">
- <label class="col-sm-3 col-form-label"><?= I18N::translate('Batch update') ?></label>
- <div class="col-sm-9">
- <select class="form-control" name="plugin">
- <?php if ($plugin === null) : ?>
- <option value="" selected></option>
- <?php endif ?>
-
- <?php foreach ($plugins as $key => $value) : ?>
- <option value="<?= $key ?>" <?= ($plugin ? get_class($plugin) : null) === $key ? 'selected' : '' ?>>
- <?= $value->getName() ?>
- </option>
- <?php endforeach ?>
- </select>
-
- <?php if ($plugin !== null) : ?>
- <p class="small text-muted"><?= $plugin->description() ?></p>
- <?php endif ?>
- </div>
- </div>
-
- <?php if ($plugin !== null) : ?>
- <?= $plugin->getOptionsForm() ?>
-
- <hr>
-
- <?php if ($record !== null) : ?>
- <div class="row">
- <div class="col-sm-3 d-flex flex-column justify-content-between">
- <div>
- <?php if ($prev_xref === null) : ?>
- <button class="btn btn-primary" type="submit" disabled>
- <?= I18N::translate('previous') ?>
- </button>
- <?php else : ?>
- <button class="btn btn-primary" type="submit" onclick="this.form.xref.value='<?= e($prev_xref) ?>'">
- <?= I18N::translate('previous') ?>
- </button>
- <?php endif ?>
-
- <?php if ($next_xref === null) : ?>
- <button class="btn btn-primary" type="submit" disabled>
- <?= I18N::translate('next') ?>
- </button>
- <?php else : ?>
- <button class="btn btn-primary" type="submit" onclick="this.form.xref.value='<?= e($next_xref) ?>'">
- <?= I18N::translate('next') ?>
- </button>
- <?php endif ?>
- </div>
-
- <div>
- <button class="btn btn-primary" type="submit" name="update" value="one" onclick="this.form.method='post'">
- <?= I18N::translate('Update') ?>
- </button>
-
- <?php if ($auto_accept) : ?>
- <button class="btn btn-primary" type="submit" name="update" value="all" onclick="this.form.method='post'">
- <?= I18N::translate('Update all') ?>
- </button>
- <?php else : ?>
- <button class="btn btn-primary" disabled title="<?= I18N::translate('Your user account does not have “automatically accept changes” enabled. You will only be able to change one record at a time.') ?>">
- <?= I18N::translate('Update all') ?>
- </button>
- <?php endif ?>
- </div>
- </div>
- <div class="col-sm-9">
- <a class="lead" href="<?= e($record->url()) ?>">
- <?= $record->fullName() ?>
- </a>
- <?= $plugin->getActionPreview($record) ?>
- </div>
- </div>
- <?php else : ?>
- <div class="alert alert-info">
- <?= I18N::translate('Nothing found.') ?>
- </div>
- <?php endif ?>
- <?php endif ?>
-</form>
-
-<?php View::push('javascript') ?>
-<script>
- $("#batch-update-form input, #batch-update-form select").change(function () {
- $("#batch-update-form").submit();
- });
-</script>
-<?php View::endpush() ?>
diff --git a/resources/views/modules/block-template.phtml b/resources/views/modules/block-template.phtml
index 24243d08e2..fad76ad521 100644
--- a/resources/views/modules/block-template.phtml
+++ b/resources/views/modules/block-template.phtml
@@ -2,6 +2,14 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $block
+ * @var string $content
+ * @var string $config_url
+ * @var int $id
+ * @var string $title
+ */
+
?>
<div class="card mb-4 wt-block wt-block-<?= e($block) ?>" id="block-<?= e($id) ?>">
diff --git a/resources/views/modules/branches/list.phtml b/resources/views/modules/branches/list.phtml
index 5c0c15df45..302991de07 100644
--- a/resources/views/modules/branches/list.phtml
+++ b/resources/views/modules/branches/list.phtml
@@ -1,3 +1,10 @@
+<?php
+
+/**
+ * @var string $branches
+ */
+
+?>
<ol>
<?= $branches ?>
</ol>
diff --git a/resources/views/modules/census-assistant.phtml b/resources/views/modules/census-assistant.phtml
index b52f7da903..8eda87c606 100644
--- a/resources/views/modules/census-assistant.phtml
+++ b/resources/views/modules/census-assistant.phtml
@@ -1,8 +1,13 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\View;
+/**
+ * @var Individual|null $individual
+ */
+
?>
<div id="census-assistant-link" hidden>
diff --git a/resources/views/modules/charts/chart.phtml b/resources/views/modules/charts/chart.phtml
index 608ffa2b8d..cde052dee8 100644
--- a/resources/views/modules/charts/chart.phtml
+++ b/resources/views/modules/charts/chart.phtml
@@ -1,3 +1,11 @@
+<?php
+
+/**
+ * @var int $block_id
+ * @var string $chart_url
+ */
+
+?>
<div id="chart-block-<?= e($block_id) ?>"></div>
<script>
diff --git a/resources/views/modules/charts/config.phtml b/resources/views/modules/charts/config.phtml
index c77c35ae36..fe8f1c0bb7 100644
--- a/resources/views/modules/charts/config.phtml
+++ b/resources/views/modules/charts/config.phtml
@@ -1,6 +1,15 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var array<string,string> $charts
+ * @var Individual|null $individual
+ * @var Tree $tree
+ * @var string $type
+ */
?>
diff --git a/resources/views/modules/clippings/add-options.phtml b/resources/views/modules/clippings/add-options.phtml
index 0d8da22183..87f62287d7 100644
--- a/resources/views/modules/clippings/add-options.phtml
+++ b/resources/views/modules/clippings/add-options.phtml
@@ -1,7 +1,15 @@
<?php
+use Fisharebest\Webtrees\GedcomRecord;
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $default
+ * @var array<string,string> $options
+ * @var GedcomRecord $record
+ * @var string $title
+ */
+
?>
<h2 class="wt-page-title"><?= $title ?></h2>
diff --git a/resources/views/modules/clippings/download.phtml b/resources/views/modules/clippings/download.phtml
index 8ea8ab19ee..da8926d722 100644
--- a/resources/views/modules/clippings/download.phtml
+++ b/resources/views/modules/clippings/download.phtml
@@ -1,6 +1,15 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var bool $is_manager
+ * @var bool $is_member
+ * @var string $module
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/clippings/show.phtml b/resources/views/modules/clippings/show.phtml
index 190a7c5818..2ddefd7052 100644
--- a/resources/views/modules/clippings/show.phtml
+++ b/resources/views/modules/clippings/show.phtml
@@ -1,6 +1,15 @@
<?php
+use Fisharebest\Webtrees\GedcomRecord;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $module
+ * @var array<GedcomRecord> $records
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/compact-chart/arrow-down.phtml b/resources/views/modules/compact-chart/arrow-down.phtml
index 11bdb3c536..f5110d657d 100644
--- a/resources/views/modules/compact-chart/arrow-down.phtml
+++ b/resources/views/modules/compact-chart/arrow-down.phtml
@@ -1,7 +1,18 @@
-<?php if ($individual === null) : ?>
- <?= view('icons/arrow-down') ?>
-<?php else : ?>
+<?php
+
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Module\CompactTreeChartModule;
+
+/**
+ * @var Individual|null $individual
+ * @var CompactTreeChartModule $module
+ */
+
+?>
+<?php if ($individual instanceof Individual) : ?>
<a href="<?= e($module->chartUrl($individual)) ?>" title="<?= strip_tags($module->chartTitle($individual)) ?>">
<?= view('icons/arrow-down') ?>
</a>
+<?php else : ?>
+ <?= view('icons/arrow-down') ?>
<?php endif;
diff --git a/resources/views/modules/compact-chart/arrow-left.phtml b/resources/views/modules/compact-chart/arrow-left.phtml
index 2d573806f6..fbb0610520 100644
--- a/resources/views/modules/compact-chart/arrow-left.phtml
+++ b/resources/views/modules/compact-chart/arrow-left.phtml
@@ -1,7 +1,18 @@
-<?php if ($individual === null) : ?>
- <?= view('icons/arrow-left') ?>
-<?php else : ?>
+<?php
+
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Module\CompactTreeChartModule;
+
+/**
+ * @var Individual|null $individual
+ * @var CompactTreeChartModule $module
+ */
+
+?>
+<?php if ($individual instanceof Individual) : ?>
<a href="<?= e($module->chartUrl($individual)) ?>" title="<?= strip_tags($module->chartTitle($individual)) ?>">
<?= view('icons/arrow-left') ?>
</a>
+<?php else : ?>
+ <?= view('icons/arrow-left') ?>
<?php endif;
diff --git a/resources/views/modules/compact-chart/arrow-right.phtml b/resources/views/modules/compact-chart/arrow-right.phtml
index 0b258696f0..428ae3dc97 100644
--- a/resources/views/modules/compact-chart/arrow-right.phtml
+++ b/resources/views/modules/compact-chart/arrow-right.phtml
@@ -1,7 +1,18 @@
-<?php if ($individual === null) : ?>
- <?= view('icons/arrow-right') ?>
-<?php else : ?>
+<?php
+
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Module\CompactTreeChartModule;
+
+/**
+ * @var Individual|null $individual
+ * @var CompactTreeChartModule $module
+ */
+
+?>
+<?php if ($individual instanceof Individual) : ?>
<a href="<?= e($module->chartUrl($individual)) ?>" title="<?= strip_tags($module->chartTitle($individual)) ?>">
<?= view('icons/arrow-right') ?>
</a>
+<?php else : ?>
+ <?= view('icons/arrow-right') ?>
<?php endif;
diff --git a/resources/views/modules/compact-chart/arrow-up.phtml b/resources/views/modules/compact-chart/arrow-up.phtml
index cd718187da..99da24cdd2 100644
--- a/resources/views/modules/compact-chart/arrow-up.phtml
+++ b/resources/views/modules/compact-chart/arrow-up.phtml
@@ -1,7 +1,18 @@
-<?php if ($individual === null) : ?>
- <?= view('icons/arrow-up') ?>
-<?php else : ?>
+<?php
+
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Module\CompactTreeChartModule;
+
+/**
+ * @var Individual|null $individual
+ * @var CompactTreeChartModule $module
+ */
+
+?>
+<?php if ($individual instanceof Individual) : ?>
<a href="<?= e($module->chartUrl($individual)) ?>" title="<?= strip_tags($module->chartTitle($individual)) ?>">
<?= view('icons/arrow-up') ?>
</a>
+<?php else : ?>
+ <?= view('icons/arrow-up') ?>
<?php endif;
diff --git a/resources/views/modules/compact-chart/chart.phtml b/resources/views/modules/compact-chart/chart.phtml
index 5f427378b2..86521f6f35 100644
--- a/resources/views/modules/compact-chart/chart.phtml
+++ b/resources/views/modules/compact-chart/chart.phtml
@@ -1,3 +1,15 @@
+<?php
+
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Module\CompactTreeChartModule;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<int,Individual> $ancestors
+ * @var CompactTreeChartModule $module
+ */
+
+?>
<table class="text-center w-100 h-100 wt-chart-compact-table" role="presentation">
<tr>
<td>
diff --git a/resources/views/modules/compact-chart/individual.phtml b/resources/views/modules/compact-chart/individual.phtml
index 624acbcc41..f6d3261f1a 100644
--- a/resources/views/modules/compact-chart/individual.phtml
+++ b/resources/views/modules/compact-chart/individual.phtml
@@ -1,15 +1,14 @@
-<?php if ($individual === null) : ?>
- <div class="h-100 wt-chart-box">&nbsp;</div>
-<?php else : ?>
+<?php
+
+use Fisharebest\Webtrees\Individual;
+
+/**
+ * @var Individual|null $individual
+ */
+
+?>
+<?php if ($individual instanceof Individual) : ?>
<?= view('chart-box', ['individual' => $individual]) ?>
-<!--
- <div class="h-100 person_box<?= ['M' => '', 'F' => 'F', 'U' => 'NN'][$individual->sex()]?> person_box_template">
- <a href="<?= e($individual->url()) ?>">
- <?= $individual->fullName() ?>
- </a>
- <div class="small">
- <?= $individual->lifespan() ?>
- </div>
- </div>
--->
+<?php else : ?>
+ <div class="h-100 wt-chart-box">&nbsp;</div>
<?php endif ?>
diff --git a/resources/views/modules/compact-chart/page.phtml b/resources/views/modules/compact-chart/page.phtml
index e49ee35323..bd9622abc2 100644
--- a/resources/views/modules/compact-chart/page.phtml
+++ b/resources/views/modules/compact-chart/page.phtml
@@ -1,6 +1,15 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $ajax_url
+ * @var string $title
+ * @var Individual $individual
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/contact-links/footer.phtml b/resources/views/modules/contact-links/footer.phtml
index 90f16be32d..3c6384df97 100644
--- a/resources/views/modules/contact-links/footer.phtml
+++ b/resources/views/modules/contact-links/footer.phtml
@@ -1,3 +1,10 @@
+<?php
+
+/**
+ * @var string $contact_links
+ */
+
+?>
<div class="wt-footer wt-footer-contact text-center py-2">
<?= $contact_links ?>
</div>
diff --git a/resources/views/modules/custom-css-js/edit.phtml b/resources/views/modules/custom-css-js/edit.phtml
index 9c788d5fba..33915c265c 100644
--- a/resources/views/modules/custom-css-js/edit.phtml
+++ b/resources/views/modules/custom-css-js/edit.phtml
@@ -3,6 +3,12 @@
use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $body
+ * @var string $head
+ * @var string $title
+ */
+
?>
<?= view('components/breadcrumbs', ['links' => [route(ControlPanel::class) => I18N::translate('Control panel'), $title]]) ?>
diff --git a/resources/views/modules/descendancy/sidebar.phtml b/resources/views/modules/descendancy/sidebar.phtml
index 4679d8c851..46fab38967 100644
--- a/resources/views/modules/descendancy/sidebar.phtml
+++ b/resources/views/modules/descendancy/sidebar.phtml
@@ -1,8 +1,14 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
use Fisharebest\Webtrees\View;
+/**
+ * @var string $individual_list
+ * @var Tree $tree
+ */
+
?>
<form method="post" action="<?= e(route('module', ['module' => 'descendancy', 'action' => 'Descendants', 'tree' => $tree->name()])) ?>" onsubmit="return false;">
diff --git a/resources/views/modules/descendancy_chart/page.phtml b/resources/views/modules/descendancy_chart/page.phtml
index 03451a8c02..ed1cf8ca48 100644
--- a/resources/views/modules/descendancy_chart/page.phtml
+++ b/resources/views/modules/descendancy_chart/page.phtml
@@ -1,6 +1,20 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $ajax_url
+ * @var int $generations
+ * @var Individual $individual
+ * @var int $maximum_generations
+ * @var int $minimum_generations
+ * @var string $style
+ * @var array<string,string> $styles
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/edit-block-config.phtml b/resources/views/modules/edit-block-config.phtml
index b92ad69d74..4910c1843b 100644
--- a/resources/views/modules/edit-block-config.phtml
+++ b/resources/views/modules/edit-block-config.phtml
@@ -1,6 +1,16 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Module\ModuleBlockInterface;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var ModuleBlockInterface $block
+ * @var int $block_id
+ * @var string $cancel_url
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/family-book-chart/page.phtml b/resources/views/modules/family-book-chart/page.phtml
index bce6476f59..ef84a16e20 100644
--- a/resources/views/modules/family-book-chart/page.phtml
+++ b/resources/views/modules/family-book-chart/page.phtml
@@ -1,6 +1,20 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $ajax_url
+ * @var int $book_size
+ * @var int $generations
+ * @var Individual $individual
+ * @var int $maximum_generations
+ * @var int $minimum_generations
+ * @var bool $spouses
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/family-book-chart/parents.phtml b/resources/views/modules/family-book-chart/parents.phtml
index 4fd0ad4b28..e2b5600602 100644
--- a/resources/views/modules/family-book-chart/parents.phtml
+++ b/resources/views/modules/family-book-chart/parents.phtml
@@ -1,3 +1,13 @@
+<?php
+
+use Fisharebest\Webtrees\Family;
+
+/**
+ * @var Family|null $family
+ * @var int $generations
+ */
+
+?>
<div class="d-flex">
<div class="align-self-center">
<div class="d-flex">
diff --git a/resources/views/modules/family_nav/sidebar.phtml b/resources/views/modules/family_nav/sidebar.phtml
index 52ba066c50..0a9a9988cd 100644
--- a/resources/views/modules/family_nav/sidebar.phtml
+++ b/resources/views/modules/family_nav/sidebar.phtml
@@ -1,3 +1,12 @@
+<?php
+
+use Fisharebest\Webtrees\Individual;
+
+/**
+ * @var Individual $individual
+ */
+
+?>
<div class="wt-sidebar-content wt-sidebar-family-navigator">
<!-- parent families -->
<?php foreach ($individual->childFamilies() as $family) : ?>
diff --git a/resources/views/modules/fanchart/chart.phtml b/resources/views/modules/fanchart/chart.phtml
index 20a328011d..abd69c6068 100644
--- a/resources/views/modules/fanchart/chart.phtml
+++ b/resources/views/modules/fanchart/chart.phtml
@@ -1,3 +1,22 @@
+<?php
+
+/**
+ * @var string $areas
+ * @var int $fanh
+ * @var int $fanw
+ * @var string $html
+ * @var string $png
+ * @var string $title
+ */
+
+assert(is_string($areas));
+assert(is_int($fanh));
+assert(is_int($fanw));
+assert(is_string($html));
+assert(is_string($png));
+assert(is_string($title));
+
+?>
<?= $html ?>
<map id="fan-chart-map" name="fan-chart-map">
@@ -13,7 +32,7 @@
.click(function (e) {
e.stopPropagation();
e.preventDefault();
- var target = jQuery(this.hash);
+ let target = jQuery(this.hash);
// position the menu centered immediately above the mouse click position and
// make sure it doesn’t end up off the screen
target
@@ -29,7 +48,7 @@
e.stopPropagation();
});
jQuery("#fan_chart")
- .click(function (e) {
+ .click(function () {
jQuery(".fan_chart_menu").hide();
});
</script>
diff --git a/resources/views/modules/fanchart/page.phtml b/resources/views/modules/fanchart/page.phtml
index e6d7754909..286029cdf7 100644
--- a/resources/views/modules/fanchart/page.phtml
+++ b/resources/views/modules/fanchart/page.phtml
@@ -1,6 +1,23 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $ajax_url
+ * @var int $generations
+ * @var Individual $individual
+ * @var int $maximum_generations
+ * @var int $maximum_width
+ * @var int $minimum_generations
+ * @var int $minimum_width
+ * @var string $style
+ * @var array<string,string> $styles
+ * @var string $title
+ * @var Tree $tree
+ * @var int $width
+ */
?>
diff --git a/resources/views/modules/faq/config.phtml b/resources/views/modules/faq/config.phtml
index 67779d497c..df3a8cbe44 100644
--- a/resources/views/modules/faq/config.phtml
+++ b/resources/views/modules/faq/config.phtml
@@ -3,6 +3,17 @@
use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<object> $faqs
+ * @var string $max_block_order
+ * @var string $min_block_order
+ * @var string $title
+ * @var Tree $tree
+ * @var array<string,string> $tree_names
+ */
?>
@@ -65,14 +76,14 @@ use Fisharebest\Webtrees\I18N;
<?= e($faq->header) ?>
</td>
<td>
- <?php if ($faq->block_order != $min_block_order) : ?>
+ <?php if ($faq->block_order !== $min_block_order) : ?>
<a href="#" data-post-url="<?= e(route('module', ['module' => 'faq', 'action' => 'AdminMoveUp', 'block_id' => $faq->block_id])) ?>" class="btn btn-secondary">
<?= view('icons/arrow-up') ?>
</a>
<?php endif ?>
</td>
<td>
- <?php if ($faq->block_order != $max_block_order) : ?>
+ <?php if ($faq->block_order !== $max_block_order) : ?>
<a href="#" data-post-url="<?= e(route('module', ['module' => 'faq', 'action' => 'AdminMoveDown', 'block_id' => $faq->block_id])) ?>" class="btn btn-secondary">
<?= view('icons/arrow-down') ?>
</a>
diff --git a/resources/views/modules/faq/show.phtml b/resources/views/modules/faq/show.phtml
index f1d0094fde..18ecf30119 100644
--- a/resources/views/modules/faq/show.phtml
+++ b/resources/views/modules/faq/show.phtml
@@ -1,6 +1,12 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<object> $faqs
+ * @var string $title
+ */
?>
diff --git a/resources/views/modules/gedcom_block/welcome.phtml b/resources/views/modules/gedcom_block/welcome.phtml
index ef54eaf536..50f4dce81d 100644
--- a/resources/views/modules/gedcom_block/welcome.phtml
+++ b/resources/views/modules/gedcom_block/welcome.phtml
@@ -1,3 +1,10 @@
+<?php
+
+/**
+ * @var array<string,array<string,string>> $links
+ */
+
+?>
<div class="d-flex flex-wrap justify-content-around">
<?php foreach ($links as $link) : ?>
<div class="text-center m-1">
diff --git a/resources/views/modules/gedcom_news/edit.phtml b/resources/views/modules/gedcom_news/edit.phtml
index 037d2d2d86..a488e1911b 100644
--- a/resources/views/modules/gedcom_news/edit.phtml
+++ b/resources/views/modules/gedcom_news/edit.phtml
@@ -2,6 +2,14 @@
use Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $body
+ * @var string $subject
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/gedcom_news/list.phtml b/resources/views/modules/gedcom_news/list.phtml
index 69bba61e74..b749f80abf 100644
--- a/resources/views/modules/gedcom_news/list.phtml
+++ b/resources/views/modules/gedcom_news/list.phtml
@@ -2,6 +2,15 @@
use Fisharebest\Webtrees\Auth;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<object> $articles
+ * @var int $block_id
+ * @var int $limit
+ * @var Tree $tree
+ */
?>
@@ -10,7 +19,7 @@ use Fisharebest\Webtrees\I18N;
<?php endif ?>
<?php foreach ($articles as $n => $article) : ?>
- <?php if ($n === 5 && count($articles) > 5) : ?>
+ <?php if ($n === $limit && count($articles) > $limit) : ?>
<p>
<button class="btn btn-sm btn-secondary" data-toggle="collapse" data-target="#more-news-<?= e($block_id) ?>" role="button" aria-expanded="false" aria-controls="more-news-<?= e($block_id) ?>">
<?= view('icons/add') ?>
@@ -41,7 +50,7 @@ use Fisharebest\Webtrees\I18N;
</div>
<?php endforeach ?>
- <?php if (count($articles) > 5) : ?>
+ <?php if (count($articles) > $limit) : ?>
</div>
<?php endif ?>
diff --git a/resources/views/modules/gedcom_stats/config.phtml b/resources/views/modules/gedcom_stats/config.phtml
index 5506a42d4a..c8bb6ede63 100644
--- a/resources/views/modules/gedcom_stats/config.phtml
+++ b/resources/views/modules/gedcom_stats/config.phtml
@@ -2,6 +2,28 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $show_last_update
+ * @var string $stat_indi
+ * @var string $stat_surname
+ * @var string $stat_fam
+ * @var string $stat_sour
+ * @var string $stat_media
+ * @var string $stat_repo
+ * @var string $stat_events
+ * @var string $stat_users
+ * @var string $stat_first_birth
+ * @var string $stat_last_birth
+ * @var string $stat_first_death
+ * @var string $stat_last_death
+ * @var string $stat_long_life
+ * @var string $stat_avg_life
+ * @var string $stat_most_chil
+ * @var string $stat_avg_chil
+ * @var string $show_common_surnames
+ * @var string $number_of_surnames
+ */
+
?>
<fieldset class="form-group">
diff --git a/resources/views/modules/gedcom_stats/statistics.phtml b/resources/views/modules/gedcom_stats/statistics.phtml
index 6972d2ae01..e982999539 100644
--- a/resources/views/modules/gedcom_stats/statistics.phtml
+++ b/resources/views/modules/gedcom_stats/statistics.phtml
@@ -1,6 +1,29 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Statistics;
+
+/**
+ * @var string $show_last_update
+ * @var Statistics $stats
+ * @var string $stat_indi
+ * @var string $stat_surname
+ * @var string $stat_fam
+ * @var string $stat_sour
+ * @var string $stat_media
+ * @var string $stat_repo
+ * @var string $stat_events
+ * @var string $stat_users
+ * @var string $stat_first_birth
+ * @var string $stat_last_birth
+ * @var string $stat_first_death
+ * @var string $stat_last_death
+ * @var string $stat_long_life
+ * @var string $stat_avg_life
+ * @var string $stat_most_chil
+ * @var string $stat_avg_chil
+ * @var string $surnames
+ */
?>
diff --git a/resources/views/modules/google-analytics/snippet.phtml b/resources/views/modules/google-analytics/snippet.phtml
index e55b77b528..06e09b39ff 100644
--- a/resources/views/modules/google-analytics/snippet.phtml
+++ b/resources/views/modules/google-analytics/snippet.phtml
@@ -1,3 +1,12 @@
+<?php
+
+/**
+ * @var object $dimensions
+ */
+
+assert(is_object($dimensions))
+
+?>
<script async src="https://www.google-analytics.com/analytics.js"></script>
<script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};
diff --git a/resources/views/modules/hit-counter/footer.phtml b/resources/views/modules/hit-counter/footer.phtml
index ae7b05fd0b..0c8bb9539d 100644
--- a/resources/views/modules/hit-counter/footer.phtml
+++ b/resources/views/modules/hit-counter/footer.phtml
@@ -1,3 +1,10 @@
+<?php
+
+/**
+ * @var string $hit_counter
+ */
+
+?>
<div class="wt-footer wt-footer-hit-counter text-center py-2">
<?= $hit_counter ?>
</div>
diff --git a/resources/views/modules/hourglass-chart/page.phtml b/resources/views/modules/hourglass-chart/page.phtml
index c13fc4ff56..1dc154ade1 100644
--- a/resources/views/modules/hourglass-chart/page.phtml
+++ b/resources/views/modules/hourglass-chart/page.phtml
@@ -1,6 +1,19 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $ajax_url
+ * @var int $generations
+ * @var Individual $individual
+ * @var int $maximum_generations
+ * @var int $minimum_generations
+ * @var bool $spouses
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/hourglass-chart/parents.phtml b/resources/views/modules/hourglass-chart/parents.phtml
index 5f9253bd15..f5c3cea3cd 100644
--- a/resources/views/modules/hourglass-chart/parents.phtml
+++ b/resources/views/modules/hourglass-chart/parents.phtml
@@ -1,6 +1,7 @@
<?php
use Fisharebest\Webtrees\Family;
+use Fisharebest\Webtrees\Individual;
/**
* @var Family $family
@@ -20,7 +21,7 @@ use Fisharebest\Webtrees\Family;
<?= view('chart-box', ['individual' => $family->husband()]) ?>
</div>
- <?php if ($family->husband() && $family->husband()->childFamilies()->first()) : ?>
+ <?php if ($family->husband() instanceof Individual && $family->husband()->childFamilies()->first() instanceof Family) : ?>
<div class="wt-chart-horizontal-spacer">
<div class="wt-chart-horizontal-line"></div>
</div>
@@ -46,7 +47,7 @@ use Fisharebest\Webtrees\Family;
<?= view('chart-box', ['individual' => $family->wife()]) ?>
</div>
- <?php if ($family->wife() && $family->wife()->childFamilies()->first()) : ?>
+ <?php if ($family->wife() instanceof Individual && $family->wife()->childFamilies()->first() instanceof Family) : ?>
<div class="wt-chart-horizontal-spacer">
<div class="wt-chart-horizontal-line"></div>
</div>
diff --git a/resources/views/modules/html/config.phtml b/resources/views/modules/html/config.phtml
index 59d5b7cae4..7f5c787c4d 100644
--- a/resources/views/modules/html/config.phtml
+++ b/resources/views/modules/html/config.phtml
@@ -3,6 +3,14 @@
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\View;
+/**
+ * @var string $html
+ * @var array<int,string> $languages
+ * @var bool $show_timestamp
+ * @var array<string,string> $templates
+ * @var string $title
+ */
+
?>
<div class="row form-group">
diff --git a/resources/views/modules/html/template-statistics.phtml b/resources/views/modules/html/template-statistics.phtml
index 2baa246a7a..93d937cf3f 100644
--- a/resources/views/modules/html/template-statistics.phtml
+++ b/resources/views/modules/html/template-statistics.phtml
@@ -2,12 +2,17 @@
use Fisharebest\Webtrees\Http\RequestHandlers\TreePage;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var Tree $tree
+ */
?>
<div class="gedcom_stats">
<p>
- <a href="<?= e(route(TreePage::class, ['tree' => $tree])) ?>">#gedcomTitle#</a>
+ <a href="<?= e(route(TreePage::class, ['tree' => $tree->name()])) ?>">#gedcomTitle#</a>
</p>
<?= I18N::translate('This family tree was last updated on %s.', '#gedcomUpdated#') ?>
diff --git a/resources/views/modules/individual-list/page.phtml b/resources/views/modules/individual-list/page.phtml
index fc9de325be..5a0b40eca4 100644
--- a/resources/views/modules/individual-list/page.phtml
+++ b/resources/views/modules/individual-list/page.phtml
@@ -1,3 +1,11 @@
+<?php
+
+/**
+ * @var string $content
+ * @var string $title
+ */
+
+?>
<h2 class="wt-page-title">
<?= $title ?>
</h2>
diff --git a/resources/views/modules/interactive-tree/chart.phtml b/resources/views/modules/interactive-tree/chart.phtml
index 79eeacf54a..71f8a2ba26 100644
--- a/resources/views/modules/interactive-tree/chart.phtml
+++ b/resources/views/modules/interactive-tree/chart.phtml
@@ -1,6 +1,15 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var Individual $individual
+ * @var string $module
+ * @var string $name
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/interactive-tree/page.phtml b/resources/views/modules/interactive-tree/page.phtml
index 88e560f327..5822353b10 100644
--- a/resources/views/modules/interactive-tree/page.phtml
+++ b/resources/views/modules/interactive-tree/page.phtml
@@ -1,8 +1,16 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\View;
+/**
+ * @var string $html
+ * @var Individual $individual
+ * @var string $js
+ * @var string $title
+ */
+
?>
<h2 class="wt-page-title">
diff --git a/resources/views/modules/interactive-tree/tab.phtml b/resources/views/modules/interactive-tree/tab.phtml
index 26ab61fa93..785de808bb 100644
--- a/resources/views/modules/interactive-tree/tab.phtml
+++ b/resources/views/modules/interactive-tree/tab.phtml
@@ -2,6 +2,11 @@
use Fisharebest\Webtrees\View;
+/**
+ * @var string $html
+ * @var string $js
+ */
+
?>
<div class="wt-tab-tree py-4">
diff --git a/resources/views/modules/lifespans-chart/chart.phtml b/resources/views/modules/lifespans-chart/chart.phtml
index 43e7f84159..662e56525f 100644
--- a/resources/views/modules/lifespans-chart/chart.phtml
+++ b/resources/views/modules/lifespans-chart/chart.phtml
@@ -2,6 +2,15 @@
use Fisharebest\Webtrees\Gedcom;
+/**
+ * @var string $dir
+ * @var int $end_year
+ * @var array<stdClass> $lifespans
+ * @var int $max_rows
+ * @var int $start_year
+ * @var string $subtitle
+ */
+
?>
<p class="wt-lifespans-subtitle">
diff --git a/resources/views/modules/lifespans-chart/page.phtml b/resources/views/modules/lifespans-chart/page.phtml
index 757a9853b1..59942bc711 100644
--- a/resources/views/modules/lifespans-chart/page.phtml
+++ b/resources/views/modules/lifespans-chart/page.phtml
@@ -1,6 +1,15 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var string $ajax_url
+ * @var string $reset_url
+ * @var string $title
+ * @var Tree $tree
+ * @var array<string> $xrefs
+ */
?>
diff --git a/resources/views/modules/lightbox/tab.phtml b/resources/views/modules/lightbox/tab.phtml
index 6ddd5bb1c6..593e23ca7e 100644
--- a/resources/views/modules/lightbox/tab.phtml
+++ b/resources/views/modules/lightbox/tab.phtml
@@ -1,3 +1,13 @@
+<?php
+
+use Fisharebest\Webtrees\Media;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Media> $media_list
+ */
+
+?>
<div class="wt-tab-album py-4">
<?php foreach ($media_list as $media) : ?>
<figure class="figure text-center col-sm-6 col-md-4 col-lg-3 col-xl-2 wt-album-tab-figure">
diff --git a/resources/views/modules/login_block/sign-in.phtml b/resources/views/modules/login_block/sign-in.phtml
index 2c70499954..ec597419f8 100644
--- a/resources/views/modules/login_block/sign-in.phtml
+++ b/resources/views/modules/login_block/sign-in.phtml
@@ -8,6 +8,11 @@ use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Tree;
use Fisharebest\Webtrees\View;
+/**
+ * @var bool $allow_register
+ * @var Tree $tree
+ */
+
?>
<form method="post" action="<?= route(LoginAction::class, ['tree' => $tree->name()]) ?>" name="login-form">
@@ -46,7 +51,7 @@ use Fisharebest\Webtrees\View;
<?php endif ?>
<div class="collapse" id="forgot-password">
- <form method="post" action="<?= e(route(PasswordRequestAction::class, ['tree' => $tree instanceof Tree ? $tree->name() : null])) ?>">
+ <form method="post" action="<?= e(route(PasswordRequestAction::class, ['tree' => $tree->name()])) ?>">
<?= I18N::translate('Request a new password') ?>
<div class="form-group">
<label for="new_passwd_username">
diff --git a/resources/views/modules/login_block/sign-out.phtml b/resources/views/modules/login_block/sign-out.phtml
index 10527709d1..f6a1c399f7 100644
--- a/resources/views/modules/login_block/sign-out.phtml
+++ b/resources/views/modules/login_block/sign-out.phtml
@@ -1,9 +1,14 @@
<?php
+use Fisharebest\Webtrees\Contracts\UserInterface;
use Fisharebest\Webtrees\Http\RequestHandlers\HomePage;
use Fisharebest\Webtrees\Http\RequestHandlers\Logout;
use Fisharebest\Webtrees\I18N;
+/**
+ * @var UserInterface $user
+ */
+
?>
<p>
diff --git a/resources/views/modules/matomo-analytics/snippet.phtml b/resources/views/modules/matomo-analytics/snippet.phtml
index 364d06e120..e26a67ab3b 100644
--- a/resources/views/modules/matomo-analytics/snippet.phtml
+++ b/resources/views/modules/matomo-analytics/snippet.phtml
@@ -1,3 +1,12 @@
+<?php
+
+use Fisharebest\Webtrees\Contracts\UserInterface;
+
+/**
+ * @var UserInterface $user
+ */
+
+?>
<script type="text/javascript">
var _paq = window._paq || [];
_paq.push(['trackPageView']);
diff --git a/resources/views/modules/media/tab.phtml b/resources/views/modules/media/tab.phtml
index 4a43725cc5..3f4e3911ea 100644
--- a/resources/views/modules/media/tab.phtml
+++ b/resources/views/modules/media/tab.phtml
@@ -1,10 +1,19 @@
<?php
+use Fisharebest\Webtrees\Fact;
use Fisharebest\Webtrees\Functions\FunctionsPrintFacts;
+use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Illuminate\Support\Collection;
-?>
-<?php use Fisharebest\Webtrees\I18N; ?>
+/**
+ * @var bool $can_edit
+ * @var Collection<Fact> $clipboard_facts
+ * @var Collection<Fact> $facts
+ * @var Individual $individual
+ */
+?>
<div class="wt-tab-media py-4">
<table class="table wt-facts-table">
<?php foreach ($facts as $fact) : ?>
diff --git a/resources/views/modules/note-list/page.phtml b/resources/views/modules/note-list/page.phtml
index 3be5fcd5dd..d446963960 100644
--- a/resources/views/modules/note-list/page.phtml
+++ b/resources/views/modules/note-list/page.phtml
@@ -1,3 +1,16 @@
+<?php
+
+use Fisharebest\Webtrees\Note;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Note> $notes
+ * @var string $title
+ * @var Tree $tree
+ */
+
+?>
<h2 class="wt-page-title">
<?= $title ?>
</h2>
diff --git a/resources/views/modules/notes/tab.phtml b/resources/views/modules/notes/tab.phtml
index 329ebe5323..0fa1971d36 100644
--- a/resources/views/modules/notes/tab.phtml
+++ b/resources/views/modules/notes/tab.phtml
@@ -1,9 +1,19 @@
<?php
+use Fisharebest\Webtrees\Fact;
use Fisharebest\Webtrees\Functions\FunctionsPrintFacts;
use Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\View;
+use Illuminate\Support\Collection;
+
+/**
+ * @var bool $can_edit
+ * @var Collection<Fact> $clipboard_facts
+ * @var Collection<Fact> $facts
+ * @var Individual $individual
+ */
?>
diff --git a/resources/views/modules/pedigree-chart/page.phtml b/resources/views/modules/pedigree-chart/page.phtml
index 4c17d25c65..d2273817ae 100644
--- a/resources/views/modules/pedigree-chart/page.phtml
+++ b/resources/views/modules/pedigree-chart/page.phtml
@@ -10,6 +10,7 @@ use Fisharebest\Webtrees\Tree;
* @var Individual $individual
* @var int $max_generations
* @var int $min_generations
+ * @var string $style
* @var string $title
* @var Tree $tree
*/
diff --git a/resources/views/modules/pedigree-map/page.phtml b/resources/views/modules/pedigree-map/page.phtml
index e4e00c9b94..0650a42a76 100644
--- a/resources/views/modules/pedigree-map/page.phtml
+++ b/resources/views/modules/pedigree-map/page.phtml
@@ -1,6 +1,17 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+
+/**
+ * @var int $generations
+ * @var Individual $individual
+ * @var string $map
+ * @var int $maxgenerations
+ * @var string $title
+ * @var Tree $tree
+ */
?>
diff --git a/resources/views/modules/personal_facts/tab.phtml b/resources/views/modules/personal_facts/tab.phtml
index 3afd6e1485..91f64fa9fc 100644
--- a/resources/views/modules/personal_facts/tab.phtml
+++ b/resources/views/modules/personal_facts/tab.phtml
@@ -1,10 +1,20 @@
<?php
+use Fisharebest\Webtrees\Fact;
use Fisharebest\Webtrees\Functions\FunctionsPrint;
use Fisharebest\Webtrees\Functions\FunctionsPrintFacts;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\View;
+use Illuminate\Support\Collection;
+
+/**
+ * @var bool $can_edit
+ * @var Collection<Fact> $clipboard_facts
+ * @var Collection<Fact> $facts
+ * @var bool $has_historical_facts
+ * @var Individual $individual
+ */
?>
diff --git a/resources/views/modules/place-hierarchy/events.phtml b/resources/views/modules/place-hierarchy/events.phtml
index afc3073b8f..464aa81861 100644
--- a/resources/views/modules/place-hierarchy/events.phtml
+++ b/resources/views/modules/place-hierarchy/events.phtml
@@ -1,18 +1,28 @@
<?php
+use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Family> $famlist
+ * @var Collection<Individual> $indilist
+ * @var Tree $tree
+ */
?>
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item" role="presentation">
- <a class="nav-link active<?= $indilist === [] ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#individuals">
+ <a class="nav-link active<?= $indilist->isEmpty() ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#individuals">
<?= I18N::translate('Individuals') ?>
<?= view('components/badge', ['count' => count($indilist)]) ?>
</a>
</li>
<li class="nav-item" role="presentation">
- <a class="nav-link<?= $famlist === [] ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#families">
+ <a class="nav-link<?= $famlist->isEmpty() ? ' text-muted' : '' ?>" data-toggle="tab" role="tab" href="#families">
<?= I18N::translate('Families') ?>
<?= view('components/badge', ['count' => count($famlist)]) ?>
</a>
@@ -20,7 +30,7 @@ use Fisharebest\Webtrees\I18N;
</ul>
<div class="tab-content">
<div class="tab-pane fade show active" role="tabpanel" id="individuals">
- <?php if ($indilist === []) : ?>
+ <?php if ($indilist->isEmpty()) : ?>
<p><?= I18N::translate('No results found.') ?></p>
<?php else : ?>
<?= view('lists/individuals-table', [
@@ -32,7 +42,7 @@ use Fisharebest\Webtrees\I18N;
</div>
<div class="tab-pane fade" role="tabpanel" id="families">
- <?php if ($famlist === []) : ?>
+ <?php if ($famlist->isEmpty()) : ?>
<p><?= I18N::translate('No results found.') ?></p>
<?php else : ?>
<?= view('lists/families-table', ['families' => $famlist, 'tree' => $tree]) ?>
diff --git a/resources/views/modules/place-hierarchy/map.phtml b/resources/views/modules/place-hierarchy/map.phtml
index 6155cb3ed0..e9ae04722c 100644
--- a/resources/views/modules/place-hierarchy/map.phtml
+++ b/resources/views/modules/place-hierarchy/map.phtml
@@ -3,6 +3,11 @@
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\View;
+/**
+ * @var array<mixed> $data
+ * @var array<mixed> $provider
+ */
+
?>
<div class="py-4">
diff --git a/resources/views/modules/places/tab.phtml b/resources/views/modules/places/tab.phtml
index f0fa0601f7..3d2ea02be8 100644
--- a/resources/views/modules/places/tab.phtml
+++ b/resources/views/modules/places/tab.phtml
@@ -2,6 +2,11 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var array<mixed> $data
+ * @var array<mixed> $provider
+ */
+
?>
<div class="py-4">
diff --git a/resources/views/modules/powered-by-webtrees/footer.phtml b/resources/views/modules/powered-by-webtrees/footer.phtml
index 4d73881a03..64e385139d 100644
--- a/resources/views/modules/powered-by-webtrees/footer.phtml
+++ b/resources/views/modules/powered-by-webtrees/footer.phtml
@@ -1,3 +1,11 @@
+<?php
+
+/**
+ * @var string $name
+ * @var string $url
+ */
+
+?>
<div class="wt-footer wt-footer-powered-by text-center">
<a href="<?= e($url) ?>" class="wt-footer-powered-by-webtrees" dir="ltr">
<?= e($name) ?>
diff --git a/resources/views/modules/privacy-policy/footer.phtml b/resources/views/modules/privacy-policy/footer.phtml
index 2108a916ad..94f92a8ec8 100644
--- a/resources/views/modules/privacy-policy/footer.phtml
+++ b/resources/views/modules/privacy-policy/footer.phtml
@@ -1,8 +1,14 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
use Fisharebest\Webtrees\View;
+/**
+ * @var Tree $tree
+ * @var bool $uses_analytics
+ */
+
?>
<div class="wt-footer wt-footer-privacy-policy text-center py-2">
diff --git a/resources/views/modules/privacy-policy/page.phtml b/resources/views/modules/privacy-policy/page.phtml
index 0a18023074..bfa62632d8 100644
--- a/resources/views/modules/privacy-policy/page.phtml
+++ b/resources/views/modules/privacy-policy/page.phtml
@@ -1,6 +1,15 @@
<?php
+use Fisharebest\Webtrees\Contracts\UserInterface;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Module\ModuleAnalyticsInterface;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<UserInterface> $administrators
+ * @var Collection<ModuleAnalyticsInterface> $analytics
+ * @var string $title
+ */
?>
diff --git a/resources/views/modules/random_media/config.phtml b/resources/views/modules/random_media/config.phtml
index 737cfcc333..3ca38f75ce 100644
--- a/resources/views/modules/random_media/config.phtml
+++ b/resources/views/modules/random_media/config.phtml
@@ -2,6 +2,14 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $controls
+ * @var string $filter
+ * @var array<string,string> $filters
+ * @var array<string,string> $formats
+ * @var string $start
+ */
+
?>
<div class="form-group row">
@@ -19,8 +27,8 @@ use Fisharebest\Webtrees\I18N;
<?= I18N::translate('Type') ?>
</legend>
<div class="col-sm-9">
- <?php foreach ($formats as $typeName => $typeValue) : ?>
- <?= view('components/checkbox', ['label' => $typeValue, 'name' => 'filter_' . $typeName, 'checked' => (bool) $filters[$typeName]]) ?>
+ <?php foreach ($formats as $type => $label) : ?>
+ <?= view('components/checkbox', ['label' => $label, 'name' => 'filter_' . $type, 'checked' => (bool) $filters[$type]]) ?>
<?php endforeach ?>
</div>
</div>
diff --git a/resources/views/modules/random_media/slide-show.phtml b/resources/views/modules/random_media/slide-show.phtml
index f16ac0679a..400260ad72 100644
--- a/resources/views/modules/random_media/slide-show.phtml
+++ b/resources/views/modules/random_media/slide-show.phtml
@@ -4,13 +4,16 @@ use Fisharebest\Webtrees\Functions\FunctionsPrint;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Media;
use Fisharebest\Webtrees\MediaFile;
+use Fisharebest\Webtrees\Tree;
/**
* @var int $block_id
+ * @var int $delay
* @var bool $show_controls
* @var bool $start_automatically
* @var Media $media
* @var MediaFile $media_file
+ * @var Tree $tree
*/
?>
diff --git a/resources/views/modules/recent_changes/changes-list.phtml b/resources/views/modules/recent_changes/changes-list.phtml
index 0a6dce827a..520d73f69e 100644
--- a/resources/views/modules/recent_changes/changes-list.phtml
+++ b/resources/views/modules/recent_changes/changes-list.phtml
@@ -5,6 +5,7 @@ use Fisharebest\Webtrees\View;
use Illuminate\Support\Collection;
/**
+ * @var int $id
* @var int $limit_low
* @var int $limit_high
* @var Collection<stdClass> $rows
diff --git a/resources/views/modules/relationships-chart/config.phtml b/resources/views/modules/relationships-chart/config.phtml
index b58b74dee2..7c38163863 100644
--- a/resources/views/modules/relationships-chart/config.phtml
+++ b/resources/views/modules/relationships-chart/config.phtml
@@ -3,6 +3,17 @@
use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Tree> $all_trees
+ * @var array<int,string> $ancestors_options
+ * @var string $default_ancestors
+ * @var string $default_recursion
+ * @var array<int,string> $recursion_options
+ * @var string $title
+ */
?>
diff --git a/resources/views/modules/relationships-chart/page.phtml b/resources/views/modules/relationships-chart/page.phtml
index 4065372b7f..04d3c32380 100644
--- a/resources/views/modules/relationships-chart/page.phtml
+++ b/resources/views/modules/relationships-chart/page.phtml
@@ -1,8 +1,24 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
use Fisharebest\Webtrees\View;
+/**
+ * @var string $ajax_url
+ * @var int $ancestors
+ * @var array<string,string> $ancestors_options
+ * @var bool $ancestors_only
+ * @var Individual|null $individual1
+ * @var Individual|null $individual2
+ * @var int $max_recursion
+ * @var int $recursion
+ * @var array<string,string> $recursion_options
+ * @var string $title
+ * @var Tree $tree
+ */
+
?>
<h2 class="wt-page-title">
diff --git a/resources/views/modules/relatives/family.phtml b/resources/views/modules/relatives/family.phtml
index 6ce5ed6b58..a6727e1606 100644
--- a/resources/views/modules/relatives/family.phtml
+++ b/resources/views/modules/relatives/family.phtml
@@ -1,6 +1,7 @@
<?php
use Fisharebest\Webtrees\Date;
+use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\Functions\Functions;
use Fisharebest\Webtrees\Gedcom;
use Fisharebest\Webtrees\GedcomTag;
@@ -11,6 +12,14 @@ use Fisharebest\Webtrees\Http\RequestHandlers\ReorderChildrenPage;
use Fisharebest\Webtrees\I18N;
use Fisharebest\Webtrees\Individual;
+/**
+ * @var Family $family
+ * @var int $fam_access_level
+ * @var Individual $individual
+ * @var string $label
+ * @var string $type
+ */
+
?>
<table class="table table-sm wt-facts-table">
diff --git a/resources/views/modules/relatives/tab.phtml b/resources/views/modules/relatives/tab.phtml
index 7b487f4ecf..5a4f610e94 100644
--- a/resources/views/modules/relatives/tab.phtml
+++ b/resources/views/modules/relatives/tab.phtml
@@ -1,5 +1,6 @@
<?php
+use Fisharebest\Webtrees\Family;
use Fisharebest\Webtrees\Http\RequestHandlers\AddChildToIndividualPage;
use Fisharebest\Webtrees\Http\RequestHandlers\AddParentToIndividualPage;
use Fisharebest\Webtrees\Http\RequestHandlers\AddSpouseToIndividualPage;
@@ -7,9 +8,23 @@ use Fisharebest\Webtrees\Http\RequestHandlers\LinkChildToFamilyPage;
use Fisharebest\Webtrees\Http\RequestHandlers\LinkSpouseToIndividualPage;
use Fisharebest\Webtrees\Http\RequestHandlers\ReorderFamiliesPage;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\View;
+use Illuminate\Support\Collection;
+/**
+ * @var bool $can_edit
+ * @var int $fam_access_level
+ * @var Individual $individual
+ * @var Collection<Family> $parent_families
+ * @var Collection<Family> $spouse_families
+ * @var Collection<Family> $step_child_families
+ * @var Collection<Family> $step_parent_families
+ */
+
+?>
+<?php
?>
-<?php use Fisharebest\Webtrees\View; ?>
<div class="wt-tab-relatives py-4">
<table class="table table-sm wt-facts-table" role="presentation">
@@ -25,7 +40,7 @@ use Fisharebest\Webtrees\I18N;
</tbody>
</table>
-<?php if ($parent_families->isEmpty() && $can_edit) : ?>
+<?php if ($can_edit && $parent_families->isEmpty()) : ?>
<table class="table table-sm wt-facts-table" role="presentation">
<tbody>
<tr>
diff --git a/resources/views/modules/repository-list/page.phtml b/resources/views/modules/repository-list/page.phtml
index 19ffc64459..e28aa413a9 100644
--- a/resources/views/modules/repository-list/page.phtml
+++ b/resources/views/modules/repository-list/page.phtml
@@ -1,3 +1,16 @@
+<?php
+
+use Fisharebest\Webtrees\Repository;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Repository> $repositories
+ * @var string $title
+ * @var Tree $tree
+ */
+
+?>
<h2 class="wt-page-title">
<?= $title ?>
</h2>
diff --git a/resources/views/modules/review_changes/config.phtml b/resources/views/modules/review_changes/config.phtml
index 5eb8322bb4..aa4ec3eebc 100644
--- a/resources/views/modules/review_changes/config.phtml
+++ b/resources/views/modules/review_changes/config.phtml
@@ -2,6 +2,11 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $days
+ * @var string $sendmail
+ */
+
?>
<p>
diff --git a/resources/views/modules/sitemap/config.phtml b/resources/views/modules/sitemap/config.phtml
index a207345395..bfc5dafa6f 100644
--- a/resources/views/modules/sitemap/config.phtml
+++ b/resources/views/modules/sitemap/config.phtml
@@ -3,6 +3,15 @@
use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Tree> $all_trees
+ * @var string $sitemap_url
+ * @var array<string,string> $submit_urls
+ * @var string $title
+ */
?>
diff --git a/resources/views/modules/source-list/page.phtml b/resources/views/modules/source-list/page.phtml
index 146fb1ef6e..70fa0d7113 100644
--- a/resources/views/modules/source-list/page.phtml
+++ b/resources/views/modules/source-list/page.phtml
@@ -1,3 +1,16 @@
+<?php
+
+use Fisharebest\Webtrees\Source;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Source> $sources
+ * @var string $title
+ * @var Tree $tree
+ */
+
+?>
<h2 class="wt-page-title">
<?= $title ?>
</h2>
diff --git a/resources/views/modules/sources_tab/tab.phtml b/resources/views/modules/sources_tab/tab.phtml
index 0223fdd9f1..ada4899584 100644
--- a/resources/views/modules/sources_tab/tab.phtml
+++ b/resources/views/modules/sources_tab/tab.phtml
@@ -1,9 +1,19 @@
<?php
+use Fisharebest\Webtrees\Fact;
use Fisharebest\Webtrees\Functions\FunctionsPrintFacts;
use Fisharebest\Webtrees\Http\RequestHandlers\AddNewFact;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
use Fisharebest\Webtrees\View;
+use Illuminate\Support\Collection;
+
+/**
+ * @var bool $can_edit
+ * @var Collection<Fact> $clipboard_facts
+ * @var Collection<Fact> $facts
+ * @var Individual $individual
+ */
?>
diff --git a/resources/views/modules/statistics-chart/custom.phtml b/resources/views/modules/statistics-chart/custom.phtml
index 428f511ee6..7ebbf5a483 100644
--- a/resources/views/modules/statistics-chart/custom.phtml
+++ b/resources/views/modules/statistics-chart/custom.phtml
@@ -2,8 +2,15 @@
use Fisharebest\Webtrees\Http\RequestHandlers\AutoCompleteSurname;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Module\StatisticsChartModule;
+use Fisharebest\Webtrees\Tree;
use Fisharebest\Webtrees\View;
+/**
+ * @var StatisticsChartModule $module
+ * @var Tree $tree
+ */
+
?>
<div class="container pt-3">
diff --git a/resources/views/modules/statistics-chart/page.phtml b/resources/views/modules/statistics-chart/page.phtml
index 6c7c665920..4f9caf53cf 100644
--- a/resources/views/modules/statistics-chart/page.phtml
+++ b/resources/views/modules/statistics-chart/page.phtml
@@ -4,6 +4,11 @@ declare(strict_types=1);
use Fisharebest\Webtrees\View;
+/**
+ * @var array<string,string> $tabs
+ * @var string $title
+ */
+
?>
<h2 class="wt-page-title">
diff --git a/resources/views/modules/stories/config.phtml b/resources/views/modules/stories/config.phtml
index 48bdab303e..4965950eaf 100644
--- a/resources/views/modules/stories/config.phtml
+++ b/resources/views/modules/stories/config.phtml
@@ -3,6 +3,15 @@
use Fisharebest\Webtrees\Http\RequestHandlers\ControlPanel;
use Fisharebest\Webtrees\Http\RequestHandlers\ModulesAllPage;
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<stdClass> $stories
+ * @var string $title
+ * @var Tree $tree
+ * @var array<string> $tree_names
+ */
?>
diff --git a/resources/views/modules/stories/list.phtml b/resources/views/modules/stories/list.phtml
index 9b04b40ebd..8b803e7270 100644
--- a/resources/views/modules/stories/list.phtml
+++ b/resources/views/modules/stories/list.phtml
@@ -1,6 +1,12 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<stdClass> $stories
+ * @var string $title
+ */
?>
diff --git a/resources/views/modules/submitter-list/page.phtml b/resources/views/modules/submitter-list/page.phtml
index 6cbb933b21..505a0f96dc 100644
--- a/resources/views/modules/submitter-list/page.phtml
+++ b/resources/views/modules/submitter-list/page.phtml
@@ -1,3 +1,16 @@
+<?php
+
+use Fisharebest\Webtrees\Submitter;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var Collection<Submitter> $submitters
+ * @var string $title
+ * @var Tree $tree
+ */
+
+?>
<h2 class="wt-page-title">
<?= $title ?>
</h2>
diff --git a/resources/views/modules/timeline-chart/page.phtml b/resources/views/modules/timeline-chart/page.phtml
index 5de6b79b3b..9987f80b61 100644
--- a/resources/views/modules/timeline-chart/page.phtml
+++ b/resources/views/modules/timeline-chart/page.phtml
@@ -1,6 +1,20 @@
<?php
use Fisharebest\Webtrees\I18N;
+use Fisharebest\Webtrees\Individual;
+use Fisharebest\Webtrees\Tree;
+use Illuminate\Support\Collection;
+
+/**
+ * @var string $ajax_url
+ * @var Collection<Individual> $individuals
+ * @var array<string,string> $remove_urls
+ * @var string $reset_url
+ * @var string $title
+ * @var Tree $tree
+ * @var string $zoom_in_url
+ * @var string $zoom_out_url
+ */
?>
diff --git a/resources/views/modules/todays_events/config.phtml b/resources/views/modules/todays_events/config.phtml
index 0c43ba5a7f..1cc782f8e6 100644
--- a/resources/views/modules/todays_events/config.phtml
+++ b/resources/views/modules/todays_events/config.phtml
@@ -2,6 +2,16 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var array<string,string> $all_events
+ * @var array<string,string> $event_array
+ * @var string $filter
+ * @var string $info_style
+ * @var array<string,string> $info_styles
+ * @var string $sort_style
+ * @var array<string,string> $sort_styles
+ */
+
?>
<div class="form-group row">
@@ -27,7 +37,7 @@ use Fisharebest\Webtrees\I18N;
<?= /* I18N: Label for a configuration option */ I18N::translate('Presentation style') ?>
</label>
<div class="col-sm-9">
- <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
+ <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $info_styles]) ?>
</div>
</div>
@@ -36,6 +46,6 @@ use Fisharebest\Webtrees\I18N;
<?= /* I18N: Label for a configuration option */ I18N::translate('Sort order') ?>
</label>
<div class="col-sm-9">
- <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sortStyle, 'options' => $sort_styles]) ?>
+ <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sort_style, 'options' => $sort_styles]) ?>
</div>
</div>
diff --git a/resources/views/modules/todo/config.phtml b/resources/views/modules/todo/config.phtml
index d65c544d6c..b55bb46f83 100644
--- a/resources/views/modules/todo/config.phtml
+++ b/resources/views/modules/todo/config.phtml
@@ -2,6 +2,12 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $show_future
+ * @var string $show_other
+ * @var string $show_unassigned
+ */
+
?>
<p>
diff --git a/resources/views/modules/top10_givnnames/block.phtml b/resources/views/modules/top10_givnnames/block.phtml
index 086ea0c8e2..b616c159d1 100644
--- a/resources/views/modules/top10_givnnames/block.phtml
+++ b/resources/views/modules/top10_givnnames/block.phtml
@@ -2,6 +2,11 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $females
+ * @var string $males
+ */
+
?>
<div class="d-flex flex-wrap justify-content-around">
diff --git a/resources/views/modules/top10_givnnames/config.phtml b/resources/views/modules/top10_givnnames/config.phtml
index aa5672538f..d8aed88e5c 100644
--- a/resources/views/modules/top10_givnnames/config.phtml
+++ b/resources/views/modules/top10_givnnames/config.phtml
@@ -2,6 +2,12 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $info_style
+ * @var array<string,string> $info_styles
+ * @var string $num
+ */
+
?>
<div class="form-group row">
@@ -18,6 +24,6 @@ use Fisharebest\Webtrees\I18N;
<?= I18N::translate('Presentation style') ?>
</label>
<div class="col-sm-9">
- <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
+ <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $info_styles]) ?>
</div>
</div>
diff --git a/resources/views/modules/top10_pageviews/config.phtml b/resources/views/modules/top10_pageviews/config.phtml
index 90bd8b13b4..685ae00e2b 100644
--- a/resources/views/modules/top10_pageviews/config.phtml
+++ b/resources/views/modules/top10_pageviews/config.phtml
@@ -2,6 +2,10 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $num
+ */
+
?>
<div class="form-group row">
diff --git a/resources/views/modules/top10_pageviews/list.phtml b/resources/views/modules/top10_pageviews/list.phtml
index bb17780422..d1ac2a1999 100644
--- a/resources/views/modules/top10_pageviews/list.phtml
+++ b/resources/views/modules/top10_pageviews/list.phtml
@@ -2,6 +2,10 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var array<string,mixed> $results
+ */
+
?>
<ul class="list-unstyled">
<?php foreach ($results as $result) : ?>
diff --git a/resources/views/modules/top10_surnames/config.phtml b/resources/views/modules/top10_surnames/config.phtml
index 9ec5571454..37a1647093 100644
--- a/resources/views/modules/top10_surnames/config.phtml
+++ b/resources/views/modules/top10_surnames/config.phtml
@@ -2,6 +2,12 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var string $info_style
+ * @var array<string> $info_styles
+ * @var string $num
+ */
+
?>
<div class="form-group row">
@@ -18,6 +24,6 @@ use Fisharebest\Webtrees\I18N;
<?= I18N::translate('Presentation style') ?>
</label>
<div class="col-sm-9">
- <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
+ <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $info_styles]) ?>
</div>
</div>
diff --git a/resources/views/modules/upcoming_events/config.phtml b/resources/views/modules/upcoming_events/config.phtml
index cb00909ac0..a8ffb4ec06 100644
--- a/resources/views/modules/upcoming_events/config.phtml
+++ b/resources/views/modules/upcoming_events/config.phtml
@@ -2,6 +2,18 @@
use Fisharebest\Webtrees\I18N;
+/**
+ * @var array<string,string> $all_events
+ * @var int $days
+ * @var array<string> $event_array
+ * @var string $filter
+ * @var string $info_style
+ * @var array<string,string> $info_styles
+ * @var string $sort_style
+ * @var array<string,string> $sort_styles
+ * @var int $max_days
+ */
+
?>
<div class="form-group row">
@@ -37,7 +49,7 @@ use Fisharebest\Webtrees\I18N;
<?= /* I18N: Label for a configuration option */ I18N::translate('Presentation style') ?>
</label>
<div class="col-sm-9">
- <?= view('components/select', ['name' => 'infoStyle', 'selected' => $infoStyle, 'options' => $info_styles]) ?>
+ <?= view('components/select', ['name' => 'infoStyle', 'selected' => $info_style, 'options' => $info_styles]) ?>
</div>
</div>
@@ -46,6 +58,6 @@ use Fisharebest\Webtrees\I18N;
<?= /* I18N: Label for a configuration option */ I18N::translate('Sort order') ?>
</label>
<div class="col-sm-9">
- <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sortStyle, 'options' => $sort_styles]) ?>
+ <?= view('components/select', ['name' => 'sortStyle', 'selected' => $sort_style, 'options' => $sort_styles]) ?>
</div>
</div>
diff --git a/resources/views/modules/user_blog/list.phtml b/resources/views/modules/user_blog/list.phtml
index 8db664af04..0daf7dff4e 100644
--- a/resources/views/modules/user_blog/list.phtml
+++ b/resources/views/modules/user_blog/list.phtml
@@ -19,7 +19,7 @@ use Illuminate\Support\Collection;
<?php endif ?>
<?php foreach ($articles as $n => $article) : ?>
- <?php if ($n === 5 && count($articles) > $limit) : ?>
+ <?php if ($n === $limit && count($articles) > $limit) : ?>
<p>
<button class="btn btn-sm btn-secondary" data-toggle="collapse" data-target="#more-news-<?= e($block_id) ?>" role="button" aria-expanded="false" aria-controls="more-news-<?= e($block_id) ?>">
<?= view('icons/add') ?>
@@ -50,7 +50,7 @@ use Illuminate\Support\Collection;
</div>
<?php endforeach ?>
-<?php if (count($articles) > 5) : ?>
+<?php if (count($articles) > $limit) : ?>
</div>
<?php endif ?>