From 5e03e282e5fa8701e4b3c7a942b135d24c40ae9c Mon Sep 17 00:00:00 2001 From: golodnyi Date: Thu, 8 Dec 2016 10:41:50 +0700 Subject: [PATCH] Duplicate case in switch --- src/PhpSpreadsheet/Shared/JAMA/Matrix.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/PhpSpreadsheet/Shared/JAMA/Matrix.php b/src/PhpSpreadsheet/Shared/JAMA/Matrix.php index bf015bee..b8860a95 100644 --- a/src/PhpSpreadsheet/Shared/JAMA/Matrix.php +++ b/src/PhpSpreadsheet/Shared/JAMA/Matrix.php @@ -223,28 +223,6 @@ class Matrix } } - return $R; - break; - //$RL = array of row indices; $CL = array of column indices - case 'array,array': - list($RL, $CL) = $args; - if (count($RL) > 0) { - $m = count($RL); - } else { - throw new \PhpOffice\PhpSpreadsheet\Calculation\Exception(self::ARGUMENT_BOUNDS_EXCEPTION); - } - if (count($CL) > 0) { - $n = count($CL); - } else { - throw new \PhpOffice\PhpSpreadsheet\Calculation\Exception(self::ARGUMENT_BOUNDS_EXCEPTION); - } - $R = new self($m, $n); - for ($i = 0; $i < $m; ++$i) { - for ($j = 0; $j < $n; ++$j) { - $R->set($i, $j, $this->A[$RL[$i]][$CL[$j]]); - } - } - return $R; break; //A($i0...$iF); $CL = array of column indices