diff --git a/reports/evalwise.class.php b/reports/evalwise.class.php index bffe0c3a..14d99ad9 100755 --- a/reports/evalwise.class.php +++ b/reports/evalwise.class.php @@ -88,12 +88,14 @@ public function pfx($tokens, $vars = []) { return $this->trigger("internal error"); } $fnn = preg_replace("/^arc/", "a", $fnn); // For the 'arc' trig synonyms. - if ($fnn == 'ln') { + if ($fnn === 'ln') { $fnn = 'log'; } // TODO Use the PHP internal function if possible. + // @codingStandardsIgnoreStart eval('$stack->push(' . $fnn . '($op1));'); // Perfectly safe eval(). + // @codingStandardsIgnoreEnd } else if (array_key_exists($fnn, $this->fc)) { // Calc emulation function. // Get args.