From b0a0a3a0adcf3c020c4feaea0c395e00e5c2de32 Mon Sep 17 00:00:00 2001 From: Denis Ryabov Date: Sun, 4 Apr 2021 13:40:51 +0300 Subject: [PATCH] rename vars --- .../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 11979a3..28ce229 100644 --- a/administrator/components/com_jedchecker/libraries/rules/language.php +++ b/administrator/components/com_jedchecker/libraries/rules/language.php @@ -222,12 +222,12 @@ class JedcheckerRulesLanguage extends JEDcheckerRule } // Count %... formats in the string - $count1 = preg_match_all('/(?<=^|[^%])%(?=[-+0 ]?\w)/', $value); + $countAll = preg_match_all('/(?<=^|[^%])%(?=[-+0 ]?\w)/', $value); // Count %n$... (argnum) formats in the string - $count2 = preg_match_all('/(?<=^|[^%])%\d+\$/', $value); + $countArgnum = preg_match_all('/(?<=^|[^%])%\d+\$/', $value); - if ($count1 > 1 && $count2 < $count1) { + if ($countAll > 1 && $countArgnum < $countAll) { // @todo It's not mentioned in docs $this->report->addInfo($file, JText::_('COM_JEDCHECKER_LANG_RECOMMEND_ARGNUM'), $startLineno, $line); }