Code Duplication    Length = 20-20 lines in 2 locations

modules_v3/GEDFact_assistant/MEDIA_ctrl.php 2 locations

@@ 131-150 (lines=20) @@
128
 * @param Individual $individual
129
 */
130
function print_navigator_family(Family $family, Individual $individual) {
131
	foreach ($family->getSpouses() as $spouse) {
132
		?>
133
		<tr>
134
			<td>
135
				<a href="#" onclick="opener.insertRowToTable('<?= $spouse->getXref() ?>', '<?= Html::escape($spouse->getFullName()) ?>', '', '', '', '', '', '', '', ''); return false;">
136
					<?= $spouse === $individual ? '<b>' : '' ?>
137
					<?= $spouse->getFullName() ?> <?= $spouse->getLifeSpan() ?>
138
					<?= $spouse === $individual ? '</b>' : '' ?>
139
				</a>
140
			</td>
141
			<td>
142
				<?php if ($individual !== $spouse): ?>
143
					<a href="edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=<?= $spouse->getXref() ?>&amp;gedcom=<?= $spouse->getTree()->getNameUrl() ?>">
144
						<i class="headimg vmiddle icon-button_head"></i>
145
					</a>
146
				<?php endif ?>
147
			</td>
148
		<tr>
149
	<?php
150
	}
151
152
	foreach ($family->getChildren() as $child) {
153
		?>
@@ 152-171 (lines=20) @@
149
	<?php
150
	}
151
152
	foreach ($family->getChildren() as $child) {
153
		?>
154
		<tr>
155
			<td>
156
				<a href="#" onclick="opener.insertRowToTable('<?= $child->getXref() ?>', '<?= Html::escape($child->getFullName()) ?>', '', '', '', '', '', '', '', ''); return false;">
157
					<?= $child === $individual ? '<b>' : '' ?>
158
					<?= $child->getFullName() ?> <?= $child->getLifeSpan() ?>
159
				<?= $child === $individual ? '</b>' : '' ?>
160
				</a>
161
			</td>
162
			<td>
163
			<?php if ($individual !== $child): ?>
164
					<a href="edit_interface.php?action=addmedia_links&amp;noteid=newnote&amp;pid=<?= $child->getXref() ?>&amp;gedcom=<?= $child->getTree()->getNameUrl() ?>">
165
						<i class="headimg vmiddle icon-button_head"></i>
166
					</a>
167
				<?php endif ?>
168
			</td>
169
		</tr>
170
	<?php
171
	}
172
}
173