Code Duplication    Length = 5-5 lines in 2 locations

app/GedcomRecord.php 2 locations

@@ 1247-1251 (lines=5) @@
1244
1245
			$this->pending = $new_gedcom;
1246
1247
			if (Auth::user()->getPreference('auto_accept')) {
1248
				FunctionsImport::acceptAllChanges($this->xref, $this->tree->getTreeId());
1249
				$this->gedcom  = $new_gedcom;
1250
				$this->pending = null;
1251
			}
1252
		}
1253
		$this->parseFacts();
1254
	}
@@ 1288-1292 (lines=5) @@
1285
		$this->pending = $gedcom;
1286
1287
		// Accept this pending change
1288
		if (Auth::user()->getPreference('auto_accept')) {
1289
			FunctionsImport::acceptAllChanges($this->xref, $this->tree->getTreeId());
1290
			$this->gedcom  = $gedcom;
1291
			$this->pending = null;
1292
		}
1293
1294
		$this->parseFacts();
1295