From 86e03fec058e4475cb9dc8ad23897fa02f17602c Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Wed, 7 Apr 2021 11:04:56 +0300 Subject: [PATCH] Mitigate unquoted strings error to a warning --- .../components/com_jedchecker/libraries/rules/language.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/administrator/components/com_jedchecker/libraries/rules/language.php b/administrator/components/com_jedchecker/libraries/rules/language.php index 71269c4..242821d 100644 --- a/administrator/components/com_jedchecker/libraries/rules/language.php +++ b/administrator/components/com_jedchecker/libraries/rules/language.php @@ -248,21 +248,21 @@ class JedcheckerRulesLanguage extends JEDcheckerRule // Check for unquoted values if (strlen($value) < 2 || ($value[0] !== '"' && substr($value, -1) !== '"')) { - $this->report->addError($file, JText::_('COM_JEDCHECKER_LANG_TRANSLATION_QUOTES'), $startLineno, $line); + $this->report->addWarning($file, JText::_('COM_JEDCHECKER_LANG_TRANSLATION_QUOTES'), $startLineno, $line); continue; } if ($value[0] !== '"') { $msg = JText::_('COM_JEDCHECKER_LANG_TRANSLATION_QUOTES') . ' ' . JText::_('COM_JEDCHECKER_LANG_TRANSLATION_MISSED_LEFT_QUOTE'); - $this->report->addError($file, $msg, $startLineno, $line); + $this->report->addWarning($file, $msg, $startLineno, $line); continue; } if (substr($value, -1) !== '"') { $msg = JText::_('COM_JEDCHECKER_LANG_TRANSLATION_QUOTES') . ' ' . JText::_('COM_JEDCHECKER_LANG_TRANSLATION_MISSED_RIGHT_QUOTE'); - $this->report->addError($file, $msg, $startLineno, $line); + $this->report->addWarning($file, $msg, $startLineno, $line); continue; }