|
@@ 5174-5176 (lines=3) @@
|
| 5171 |
|
if ($token['data']['function'] != '') { |
| 5172 |
|
// normal function |
| 5173 |
|
$ops = array(); // array of operators |
| 5174 |
|
for ($i = 0; $i < $token['data']['args']; ++$i) { |
| 5175 |
|
$ops[] = array_pop($formulaStrings); |
| 5176 |
|
} |
| 5177 |
|
$ops = array_reverse($ops); |
| 5178 |
|
$formulaStrings[] = "$space1$space0{$token['data']['function']}(" . implode(',', $ops) . ")"; |
| 5179 |
|
unset($space0, $space1); |
|
@@ 5183-5185 (lines=3) @@
|
| 5180 |
|
} else { |
| 5181 |
|
// add-in function |
| 5182 |
|
$ops = array(); // array of operators |
| 5183 |
|
for ($i = 0; $i < $token['data']['args'] - 1; ++$i) { |
| 5184 |
|
$ops[] = array_pop($formulaStrings); |
| 5185 |
|
} |
| 5186 |
|
$ops = array_reverse($ops); |
| 5187 |
|
$function = array_pop($formulaStrings); |
| 5188 |
|
$formulaStrings[] = "$space1$space0$function(" . implode(',', $ops) . ")"; |