Code Duplication    Length = 4-4 lines in 2 locations

app/Functions/FunctionsEdit.php 1 location

@@ 1527-1530 (lines=4) @@
1524
				$text .= $fields[$j];
1525
			}
1526
			$text = rtrim($text);
1527
			while (($i + 1 < count($gedlines)) && (preg_match('/' . ($level + 1) . ' CONT ?(.*)/', $gedlines[$i + 1], $cmatch) > 0)) {
1528
				$text .= "\n" . $cmatch[1];
1529
				$i++;
1530
			}
1531
1532
			if ($type === 'SOUR') {
1533
				$inSource    = true;

edit_interface.php 1 location

@@ 3014-3017 (lines=4) @@
3011
					}
3012
					$text .= $fields[$j];
3013
				}
3014
				while (($i + 1 < count($gedlines)) && (preg_match('/' . ($level + 1) . ' CONT ?(.*)/', $gedlines[$i + 1], $cmatch) > 0)) {
3015
					$text .= "\n" . $cmatch[1];
3016
					$i++;
3017
				}
3018
				echo FunctionsEdit::addSimpleTag($level . ' ' . $type . ' ' . $text);
3019
			}
3020
			$tags[] = $type;