Lines Matching defs:key
43 foreach ($drop as $key => $value) {
46 $this->removeLangKey($file, $subkey, $key);
49 $this->removeLangKey($file, $key);
66 foreach ($drop as $key => $value) {
67 $this->removeLangKey($file, $key);
72 * Remove the given key from the given language file
75 * @param string $key
79 protected function removeLangKey($file, $key, $sub = '')
84 $re = '/\$lang\[' . $q . $sub . $q . '\]\[' . $q . $key . $q . '\]/';
86 $re = '/\$lang\[' . $q . $key . $q . '\]/';
90 $this->logger->success('{key} removed from {file}', [
91 'key' => $sub ? "$sub.$key" : $key,
164 foreach ($meta as $key => $info) {
165 $found[$key] = $file;
169 $found[$key . '_o_' . $choice] = $file;
181 * @return array (key => file:line)
203 * @return array (key => file:line)
227 $key = $match[2] ?? $match[1];
228 $key = trim($key, '\'"');
229 if (!isset($found[$key])) {
230 $found[$key] = $file . ':' . ($lno + 1);