Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 988-996 (lines=9) @@
985
                        return $C;
986
                    }
987
                    throw new \PhpOffice\PhpSpreadsheet\Calculation\Exception(JAMAError(MatrixDimensionMismatch));
988
                case 'integer':
989
                    $C = new self($this->A);
990
                    for ($i = 0; $i < $C->m; ++$i) {
991
                        for ($j = 0; $j < $C->n; ++$j) {
992
                            $C->A[$i][$j] *= $args[0];
993
                        }
994
                    }
995
996
                    return $C;
997
                case 'double':
998
                    $C = new self($this->m, $this->n);
999
                    for ($i = 0; $i < $C->m; ++$i) {
@@ 1006-1014 (lines=9) @@
1003
                    }
1004
1005
                    return $C;
1006
                case 'float':
1007
                    $C = new self($this->A);
1008
                    for ($i = 0; $i < $C->m; ++$i) {
1009
                        for ($j = 0; $j < $C->n; ++$j) {
1010
                            $C->A[$i][$j] *= $args[0];
1011
                        }
1012
                    }
1013
1014
                    return $C;
1015
                default:
1016
                    throw new \PhpOffice\PhpSpreadsheet\Calculation\Exception(self::POLYMORPHIC_ARGUMENT_EXCEPTION);
1017
            }