Code Duplication    Length = 9-9 lines in 2 locations

edit_interface.php 2 locations

@@ 340-348 (lines=9) @@
337
				<?= /* I18N: A button label. */
338
				I18N::translate('cancel') ?>
339
			</a>
340
			<?php if (Auth::isAdmin() || $controller->tree()->getPreference('SHOW_GEDCOM_RECORD')): ?>
341
				<a class="btn btn-link"
342
				   href="edit_interface.php?action=editrawfact&amp;xref=<?= $xref ?>&amp;fact_id=<?= $fact_id ?>&amp;ged=<?= $controller->tree()->getNameUrl() ?>">
343
					<?= I18N::translate('Edit the raw GEDCOM') ?>
344
				</a>
345
			<?php endif; ?>
346
		</div>
347
	</div>
348
349
	</form>
350
	<?php
351
	echo View::make('modals/create-family', ['tree' => $controller->tree()]);
@@ 3102-3110 (lines=9) @@
3099
				<?= FontAwesome::decorativeIcon('cancel') ?>
3100
				<?= /* I18N: A button label. */ I18N::translate('cancel') ?>
3101
			</a>
3102
			<?php if ($name_fact !== null && (Auth::isAdmin() || $controller->tree()->getPreference('SHOW_GEDCOM_RECORD'))): ?>
3103
				<a class="btn btn-link"
3104
				   href="edit_interface.php?action=editrawfact&amp;xref=<?= $xref ?>&amp;fact_id=<?= $name_fact->getFactId() ?>&amp;ged=<?= $controller->tree()->getNameUrl() ?>">
3105
					<?= I18N::translate('Edit the raw GEDCOM') ?>
3106
				</a>
3107
			<?php endif ?>
3108
		</div>
3109
	</div>
3110
	</form>
3111
3112
	<?php
3113
	$controller->addInlineJavascript('