Lines Matching refs:replace
62 $replace = Validator::parsedBody($request)->string('replace');
68 $count = $this->replaceRecords($records, $search, $replace);
72 $count = $this->replaceRecords($records, $search, $replace);
76 $count = $this->replaceRecords($records, $search, $replace);
80 $count = $this->replaceRecords($records, $search, $replace);
84 $count = $this->replaceRecords($records, $search, $replace);
94 $count = $this->replaceIndividualNames($records, $search, $replace, $name_tags);
100 $count = $this->replacePlaces($records, $search, $replace);
104 $count = $this->replacePlaces($records, $search, $replace);
111 'replace' => $replace,
122 * @param string $replace
126 private function replaceRecords(Collection $records, string $search, string $replace): int argument
133 … $new_record = preg_replace('/(\n\d [A-Z0-9_]+ )' . $query . '/i', '$1' . $replace, $old_record);
147 * @param string $replace
152 …private function replaceIndividualNames(Collection $records, string $search, string $replace, arra… argument
155 $replacement = '$1' . $replace;
174 * @param string $replace
178 private function replacePlaces(Collection $records, string $search, string $replace): int argument
181 $replacement = '$1' . $replace . '$2';