From d2358bac98f5757566c7068ae2361e1ac0dc340f Mon Sep 17 00:00:00 2001 From: rafageist Date: Mon, 22 Jan 2024 23:33:52 -0300 Subject: [PATCH] minor fix --- src/matrix.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/matrix.php b/src/matrix.php index 840bd61..4faed0d 100644 --- a/src/matrix.php +++ b/src/matrix.php @@ -787,7 +787,7 @@ public function eval(int $row, int $column): void { $this->validateCoordinates($row, $column); - if ($this->matrix_original[$row][$column] instanceof \Closure) { + if ($this->matrix_original[$row][$column] instanceof Closure) { if (!isset($this->evaluatedCells[$row][$column])) { $this->matrix[$row][$column] = $this->matrix_original[$row][$column]($row, $column, $this); $this->evaluatedCells[$row][$column] = true; @@ -873,7 +873,7 @@ public function evaluate(): void foreach ($this->matrix_original as $rowIndex => $row) { foreach ($row as $colIndex => $col) { - if ($col instanceof \Closure) { + if ($col instanceof Closure) { try { $this->eval($rowIndex, $colIndex); } catch (\Exception $e) { @@ -979,12 +979,12 @@ public function range(int $rowFrom, int $columnFrom, int $rowTo, int $columnTo): * Group by a column * * @param array $columns - * @param \Closure $aggregate + * @param Closure $aggregate * @param bool $firstRowAsHeaders * * @return array>> */ - public function groupBy(array $columns, \Closure $aggregate = null, bool $firstRowAsHeaders = false): array + public function groupBy(array $columns, Closure $aggregate = null, bool $firstRowAsHeaders = false): array { $data = $this->matrix;