Loading src/Calc/Formule.php +6 −1 Original line number Diff line number Diff line Loading @@ -314,7 +314,7 @@ class Formule /* Détection de fonctions */ $next = $this->t($i + 1); if ($next['type'] === 'sep' && $next['name'] === '(') { $this->tw(['type' => 'function', 'name' => $v], $i); $this->tw(['type' => 'function', 'name' => trim($v)], $i); } } Loading Loading @@ -392,6 +392,11 @@ class Formule $currentExpr = 0; $end = count($expr); if (!(isset($expr[$i + 1]) && $expr[$i + 1]['type'] === 'sep' && $expr[$i + 1]['name'] === '(')){ // Fonction déjà analysée return; } unset($expr[$i + 1]); // on supprime la parenthèse ouvrante for ($c = $i + 2; $c < $end; $c++) { $t = $expr[$c]; Loading Loading
src/Calc/Formule.php +6 −1 Original line number Diff line number Diff line Loading @@ -314,7 +314,7 @@ class Formule /* Détection de fonctions */ $next = $this->t($i + 1); if ($next['type'] === 'sep' && $next['name'] === '(') { $this->tw(['type' => 'function', 'name' => $v], $i); $this->tw(['type' => 'function', 'name' => trim($v)], $i); } } Loading Loading @@ -392,6 +392,11 @@ class Formule $currentExpr = 0; $end = count($expr); if (!(isset($expr[$i + 1]) && $expr[$i + 1]['type'] === 'sep' && $expr[$i + 1]['name'] === '(')){ // Fonction déjà analysée return; } unset($expr[$i + 1]); // on supprime la parenthèse ouvrante for ($c = $i + 2; $c < $end; $c++) { $t = $expr[$c]; Loading