Duplicate case in switch

This commit is contained in:
golodnyi 2016-12-08 10:41:50 +07:00 committed by Adrien Crivelli
parent 62345ef4da
commit 5e03e282e5
No known key found for this signature in database
GPG Key ID: B182FD79DC6DE92E
1 changed files with 0 additions and 22 deletions

View File

@ -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; return $R;
break; break;
//A($i0...$iF); $CL = array of column indices //A($i0...$iF); $CL = array of column indices