Code Duplication    Length = 5-7 lines in 2 locations

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

@@ 165-171 (lines=7) @@
162
                        }
163
                    }
164
                }
165
                if ($wantv) {
166
                    // Place the transformation in V for subsequent
167
                    // back multiplication.
168
                    for ($i = $k + 1; $i < $this->n; ++$i) {
169
                        $this->V[$i][$k] = $e[$i];
170
                    }
171
                }
172
            }
173
        }
174
@@ 406-410 (lines=5) @@
403
                    // Make the singular values positive.
404
                    if ($this->s[$k] <= 0.0) {
405
                        $this->s[$k] = ($this->s[$k] < 0.0 ? -$this->s[$k] : 0.0);
406
                        if ($wantv) {
407
                            for ($i = 0; $i <= $pp; ++$i) {
408
                                $this->V[$i][$k] = -$this->V[$i][$k];
409
                            }
410
                        }
411
                    }
412
                    // Order the singular values.
413
                    while ($k < $pp) {