mirror of
https://github.com/joomla-extensions/jedchecker.git
synced 2024-12-28 12:30:44 +00:00
rename vars
This commit is contained in:
parent
b78df71597
commit
b0a0a3a0ad
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user