33
2
mirror of https://github.com/joomla-extensions/jedchecker.git synced 2024-11-16 10:05:14 +00:00

simplify code

This commit is contained in:
Denis Ryabov 2021-03-02 01:23:21 +03:00
parent ad64bd21b7
commit f9a073beab

View File

@ -80,11 +80,7 @@ class JedcheckerRulesEncoding extends JEDcheckerRule
// Get the functions to look for // Get the functions to look for
$encodings = explode(',', $this->params->get('encodings')); $encodings = explode(',', $this->params->get('encodings'));
$encodings = array_map('trim', $encodings);
foreach ($encodings as $i => $encoding)
{
$encodings[$i] = trim($encoding);
}
$found = false; $found = false;