Code Duplication    Length = 10-10 lines in 2 locations

app/Functions/FunctionsPrintLists.php 2 locations

@@ 983-992 (lines=10) @@
980
			$html .= '<tr' . $class . '>';
981
			// Source name(s)
982
			$html .= '<td data-sort="' . Html::escape($source->getSortName()) . '">';
983
			foreach ($source->getAllNames() as $n => $name) {
984
				if ($n) {
985
					$html .= '<br>';
986
				}
987
				if ($n == $source->getPrimaryName()) {
988
					$html .= '<a class="name2" href="' . $source->getHtmlUrl() . '">' . $name['full'] . '</a>';
989
				} else {
990
					$html .= '<a href="' . $source->getHtmlUrl() . '">' . $name['full'] . '</a>';
991
				}
992
			}
993
			$html .= '</td>';
994
			// Author
995
			$auth = $source->getFirstFact('AUTH');
@@ 1132-1141 (lines=10) @@
1129
			$html .= '<tr' . $class . '>';
1130
			// Repository name(s)
1131
			$html .= '<td data-sort="' . Html::escape($repository->getSortName()) . '">';
1132
			foreach ($repository->getAllNames() as $n => $name) {
1133
				if ($n) {
1134
					$html .= '<br>';
1135
				}
1136
				if ($n == $repository->getPrimaryName()) {
1137
					$html .= '<a class="name2" href="' . $repository->getHtmlUrl() . '">' . $name['full'] . '</a>';
1138
				} else {
1139
					$html .= '<a href="' . $repository->getHtmlUrl() . '">' . $name['full'] . '</a>';
1140
				}
1141
			}
1142
			$html .= '</td>';
1143
			$key = $repository->getXref() . '@' . $repository->getTree()->getTreeId();
1144
			// Count of linked sources