Loading src/Calc/Cell.php +1 −1 Original line number Diff line number Diff line Loading @@ -149,7 +149,7 @@ class Cell $formule = new Formule($fText); return $formule->getDepCells(); return $formule->getDeps(); } Loading src/Calc/Formule.php +7 −4 Original line number Diff line number Diff line Loading @@ -77,19 +77,22 @@ class Formule public function getDepCells(): array public function getDeps(): array { $cells = []; $deps = []; $this->analyse(); foreach ($this->terms as $term) { if ($term['type'] === 'cell') { $cells[] = $term['name']; $deps[] = $term['name']; } if ($term['type'] === 'range') { $deps[] = $term; } } return $cells; return $deps; } Loading Loading
src/Calc/Cell.php +1 −1 Original line number Diff line number Diff line Loading @@ -149,7 +149,7 @@ class Cell $formule = new Formule($fText); return $formule->getDepCells(); return $formule->getDeps(); } Loading
src/Calc/Formule.php +7 −4 Original line number Diff line number Diff line Loading @@ -77,19 +77,22 @@ class Formule public function getDepCells(): array public function getDeps(): array { $cells = []; $deps = []; $this->analyse(); foreach ($this->terms as $term) { if ($term['type'] === 'cell') { $cells[] = $term['name']; $deps[] = $term['name']; } if ($term['type'] === 'range') { $deps[] = $term; } } return $cells; return $deps; } Loading