@@ 2368-2371 (lines=4) @@ | ||
2365 | $i = false; |
|
2366 | foreach ($temp as &$value) { |
|
2367 | // Only count/replace in alternating array entries |
|
2368 | if ($i = !$i) { |
|
2369 | $value = preg_replace($from, $to, $value); |
|
2370 | $value = self::translateSeparator($fromSeparator, $toSeparator, $value, $inBraces); |
|
2371 | } |
|
2372 | } |
|
2373 | unset($value); |
|
2374 | // Then rebuild the formula string |
|
@@ 2376-2380 (lines=5) @@ | ||
2373 | unset($value); |
|
2374 | // Then rebuild the formula string |
|
2375 | $formula = implode('"', $temp); |
|
2376 | } else { |
|
2377 | // If there's no quoted strings, then we do a simple count/replace |
|
2378 | $formula = preg_replace($from, $to, $formula); |
|
2379 | $formula = self::translateSeparator($fromSeparator, $toSeparator, $formula, $inBraces); |
|
2380 | } |
|
2381 | } |
|
2382 | ||
2383 | return $formula; |