Code Duplication    Length = 5-14 lines in 3 locations

app/Module/SourcesTabModule.php 1 location

@@ 86-99 (lines=14) @@
83
		}
84
85
		// New Source Link
86
		if ($controller->record->canEdit()) {
87
			?>
88
				<tr>
89
					<th>
90
						<?= I18N::translate('Source') ?>
91
					</th>
92
					<td>
93
						<a href="edit_interface.php?action=add&amp;ged=<?= $controller->record->getTree()->getNameHtml() ?>&amp;xref=<?= $controller->record->getXref() ?>&amp;fact=SOUR">
94
							<?= I18N::translate('Add a source citation') ?>
95
						</a>
96
					</td>
97
				</tr>
98
			<?php
99
			}
100
			?>
101
		</table>
102
		<script>

app/Module/RelativesTabModule.php 2 locations

@@ 293-297 (lines=5) @@
290
			?>
291
			<tr>
292
				<th scope="row">
293
					<?php if (count($family->getChildren()) > 1): ?>
294
					<a href="edit_interface.php?action=reorder-children&amp;ged=<?= $family->getTree()->getNameHtml() ?>&amp;xref=<?= $family->getXref() ?>">
295
						<i class="icon-media-shuffle"></i> <?= I18N::translate('Re-order children') ?>
296
					</a>
297
					<?php endif; ?>
298
				</th>
299
				<td>
300
					<a href="edit_interface.php?action=add_child_to_family&amp;ged=<?= $family->getTree()->getNameHtml() ?>&amp;xref=<?= $family->getXref() ?>&amp;gender=U">
@@ 385-393 (lines=9) @@
382
		<br>
383
		<table class="table table-sm wt-facts-table">
384
			<tbody>
385
				<?php if (count($families) > 1) { ?>
386
				<tr>
387
					<td>
388
						<a href="edit_interface.php?action=reorder-spouses&amp;ged=<?= $controller->record->getTree()->getNameHtml() ?>&amp;xref=<?= $controller->record->getXref() ?>">
389
						<?= I18N::translate('Re-order families') ?>
390
						</a>
391
					</td>
392
				</tr>
393
			<?php } ?>
394
				<tr>
395
					<td>
396
					<a href="edit_interface.php?action=addfamlink&amp;ged=<?= $controller->record->getTree()->getNameHtml() ?>&amp;xref=<?= $controller->record->getXref() ?>"><?= I18N::translate('Link this individual to an existing family as a child') ?></a>