Code Duplication    Length = 5-7 lines in 2 locations

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

@@ 159-165 (lines=7) @@
156
                        }
157
                    }
158
                }
159
                if ($wantv) {
160
                    // Place the transformation in V for subsequent
161
                    // back multiplication.
162
                    for ($i = $k + 1; $i < $this->n; ++$i) {
163
                        $this->V[$i][$k] = $e[$i];
164
                    }
165
                }
166
            }
167
        }
168
@@ 395-399 (lines=5) @@
392
                    // Make the singular values positive.
393
                    if ($this->s[$k] <= 0.0) {
394
                        $this->s[$k] = ($this->s[$k] < 0.0 ? -$this->s[$k] : 0.0);
395
                        if ($wantv) {
396
                            for ($i = 0; $i <= $pp; ++$i) {
397
                                $this->V[$i][$k] = -$this->V[$i][$k];
398
                            }
399
                        }
400
                    }
401
                    // Order the singular values.
402
                    while ($k < $pp) {