Lines Matching refs:params

131     protected function familiesToFix(Tree $tree, array $params): Collection|null  argument
133 if ($params['type'] !== Family::RECORD_TYPE || $params['search-for'] === '') {
138 $this->recordQuery($query, 'f_gedcom', $params);
152 protected function individualsToFix(Tree $tree, array $params): Collection|null argument
154 if ($params['type'] !== Individual::RECORD_TYPE || $params['search-for'] === '') {
161 $this->recordQuery($query, 'i_gedcom', $params);
175 protected function locationsToFix(Tree $tree, array $params): Collection|null argument
177 if ($params['type'] !== Location::RECORD_TYPE || $params['search-for'] === '') {
185 $this->recordQuery($query, 'o_gedcom', $params);
199 protected function mediaToFix(Tree $tree, array $params): Collection|null argument
201 if ($params['type'] !== Media::RECORD_TYPE || $params['search-for'] === '') {
208 $this->recordQuery($query, 'm_gedcom', $params);
222 protected function notesToFix(Tree $tree, array $params): Collection|null argument
224 if ($params['type'] !== Note::RECORD_TYPE || $params['search-for'] === '') {
232 $this->recordQuery($query, 'o_gedcom', $params);
246 protected function repositoriesToFix(Tree $tree, array $params): Collection|null argument
248 if ($params['type'] !== Repository::RECORD_TYPE || $params['search-for'] === '') {
256 $this->recordQuery($query, 'o_gedcom', $params);
270 protected function sourcesToFix(Tree $tree, array $params): Collection|null argument
272 if ($params['type'] !== Source::RECORD_TYPE || $params['search-for'] === '') {
276 $query = $this->sourcesToFixQuery($tree, $params);
278 $this->recordQuery($query, 's_gedcom', $params);
292 protected function submittersToFix(Tree $tree, array $params): Collection|null argument
294 if ($params['type'] !== Submitter::RECORD_TYPE || $params['search-for'] === '') {
298 $query = $this->submittersToFixQuery($tree, $params);
300 $this->recordQuery($query, 'o_gedcom', $params);
313 public function doesRecordNeedUpdate(GedcomRecord $record, array $params): bool argument
315 return preg_match($this->createRegex($params), $record->gedcom()) === 1;
326 public function previewUpdate(GedcomRecord $record, array $params): string argument
329 $new = $this->updateGedcom($record, $params);
342 public function updateRecord(GedcomRecord $record, array $params): void argument
344 $record->updateRecord($this->updateGedcom($record, $params), false);
353 private function updateGedcom(GedcomRecord $record, array $params): string argument
357 $replace = strtr($params['replace-with'], ['\n' => "\n"]);
359 $regex = $this->createRegex($params);
371 private function createRegex(array $params): string argument
373 $search = $params['search-for'];
374 $method = $params['method'];
375 $case = $params['case'];
413 private function recordQuery(Builder $query, string $column, array $params): void argument
415 $search = $params['search-for'];
416 $method = $params['method'];