Lines Matching refs:record
128 * @param GedcomRecord $record
133 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument
138 return preg_match($regex, $record->gedcom()) === 1;
144 * @param GedcomRecord $record
149 public function previewUpdate(GedcomRecord $record, array $params): string argument
151 $old = $record->gedcom();
152 $new = $this->updateGedcom($record, $params);
154 return $this->data_fix_service->gedcomDiff($record->tree(), $old, $new);
160 * @param GedcomRecord $record
165 public function updateRecord(GedcomRecord $record, array $params): void argument
167 $record->updateRecord($this->updateGedcom($record, $params), false);
171 * @param GedcomRecord $record
176 private function updateGedcom(GedcomRecord $record, array $params): string argument
182 return preg_replace($regex, $replace, $record->gedcom());