diff options
Diffstat (limited to 'cli/i18n/I18nUsageValidator.php')
| -rw-r--r-- | cli/i18n/I18nUsageValidator.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cli/i18n/I18nUsageValidator.php b/cli/i18n/I18nUsageValidator.php index 8ab934971..2e402faf0 100644 --- a/cli/i18n/I18nUsageValidator.php +++ b/cli/i18n/I18nUsageValidator.php @@ -23,16 +23,13 @@ class I18nUsageValidator implements I18nValidatorInterface { return $this->result; } - public function validate($ignore) { + public function validate() { foreach ($this->reference as $file => $data) { foreach ($data as $key => $value) { $this->totalEntries++; if (preg_match('/\._$/', $key) && in_array(preg_replace('/\._$/', '', $key), $this->code)) { continue; } - if (is_array($ignore) && in_array($key, $ignore)) { - continue; - } if (!in_array($key, $this->code)) { $this->result .= sprintf('Unused key %s - %s', $key, $value) . PHP_EOL; $this->failedEntries++; |
