Duplicate case in switch
This commit is contained in:
parent
62345ef4da
commit
5e03e282e5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue