@@ 5353-5355 (lines=3) @@ | ||
5350 | if ($token['data']['function'] != '') { |
|
5351 | // normal function |
|
5352 | $ops = []; // array of operators |
|
5353 | for ($i = 0; $i < $token['data']['args']; ++$i) { |
|
5354 | $ops[] = array_pop($formulaStrings); |
|
5355 | } |
|
5356 | $ops = array_reverse($ops); |
|
5357 | $formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ')'; |
|
5358 | unset($space0, $space1); |
|
@@ 5362-5364 (lines=3) @@ | ||
5359 | } else { |
|
5360 | // add-in function |
|
5361 | $ops = []; // array of operators |
|
5362 | for ($i = 0; $i < $token['data']['args'] - 1; ++$i) { |
|
5363 | $ops[] = array_pop($formulaStrings); |
|
5364 | } |
|
5365 | $ops = array_reverse($ops); |
|
5366 | $function = array_pop($formulaStrings); |
|
5367 | $formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ')'; |