Loading src/Calc/Sheet.php +3 −11 Original line number Diff line number Diff line Loading @@ -154,19 +154,11 @@ class Sheet $refs = []; $formule = $cell->getFormule(); $formule = str_replace('$', '', $formule); foreach ($this->cellsByName as $name => $cell) { ['col' => $col, 'row' => $row] = Calc::cellNameToCoords($name); $variants = [ "[.$col$row]", "[.\$$col$row]", "[.$col\$" . "$row]", "[.\$$col\$" . "$row]", ]; foreach ($variants as $vn) { if (false !== strpos($formule, $vn)) { $refs[$n] = $c; } if (false !== strpos($formule, "[.$name]")) { $refs[$name] = $cell; } } Loading Loading
src/Calc/Sheet.php +3 −11 Original line number Diff line number Diff line Loading @@ -154,19 +154,11 @@ class Sheet $refs = []; $formule = $cell->getFormule(); $formule = str_replace('$', '', $formule); foreach ($this->cellsByName as $name => $cell) { ['col' => $col, 'row' => $row] = Calc::cellNameToCoords($name); $variants = [ "[.$col$row]", "[.\$$col$row]", "[.$col\$" . "$row]", "[.\$$col\$" . "$row]", ]; foreach ($variants as $vn) { if (false !== strpos($formule, $vn)) { $refs[$n] = $c; } if (false !== strpos($formule, "[.$name]")) { $refs[$name] = $cell; } } Loading