33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-12-02 18:08:21 +00:00

correct variable name

This commit is contained in:
Denis Ryabov 2021-03-02 01:23:55 +03:00
parent 606fb5225c
commit 8f1bb04d8d

View File

@ -81,20 +81,16 @@ class JedcheckerRulesErrorreporting extends JEDcheckerRule
$content = (array) file($file);
// Get the functions to look for
$encodings = explode(',', $this->params->get('errorreportings'));
foreach ($encodings as $i => $encoding)
{
$encodings[$i] = trim($encoding);
}
$errorreportings = explode(',', $this->params->get('errorreportings'));
$errorreportings = array_map('trim', $errorreportings);
$found = false;
foreach ($content as $i => $line)
{
foreach ($encodings as $encoding)
foreach ($errorreportings as $errorreporting)
{
$pos_1 = stripos($line, $encoding);
$pos_1 = stripos($line, $errorreporting);
if ($pos_1 !== false)
{