Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Shared/JAMA/Matrix.php 2 locations

@@ 1032-1040 (lines=9) @@
1029
                    }
1030
1031
                    throw new CalculationException(self::MATRIX_DIMENSION_EXCEPTION);
1032
                case 'integer':
1033
                    $C = new self($this->A);
1034
                    for ($i = 0; $i < $C->m; ++$i) {
1035
                        for ($j = 0; $j < $C->n; ++$j) {
1036
                            $C->A[$i][$j] *= $args[0];
1037
                        }
1038
                    }
1039
1040
                    return $C;
1041
                case 'double':
1042
                    $C = new self($this->m, $this->n);
1043
                    for ($i = 0; $i < $C->m; ++$i) {
@@ 1050-1058 (lines=9) @@
1047
                    }
1048
1049
                    return $C;
1050
                case 'float':
1051
                    $C = new self($this->A);
1052
                    for ($i = 0; $i < $C->m; ++$i) {
1053
                        for ($j = 0; $j < $C->n; ++$j) {
1054
                            $C->A[$i][$j] *= $args[0];
1055
                        }
1056
                    }
1057
1058
                    return $C;
1059
                default:
1060
                    throw new CalculationException(self::POLYMORPHIC_ARGUMENT_EXCEPTION);
1061
            }