Code Duplication    Length = 3-3 lines in 2 locations

src/PhpSpreadsheet/Shared/JAMA/EigenvalueDecomposition.php 1 location

@@ 162-164 (lines=3) @@
159
                    }
160
                }
161
            }
162
            for ($k = 0; $k <= $i; ++$k) {
163
                $this->V[$k][$i + 1] = 0.0;
164
            }
165
        }
166
167
        $this->d = $this->V[$this->n - 1];

src/PhpSpreadsheet/Shared/JAMA/SingularValueDecomposition.php 1 location

@@ 238-240 (lines=3) @@
235
                        }
236
                    }
237
                }
238
                for ($i = 0; $i < $this->n; ++$i) {
239
                    $this->V[$i][$k] = 0.0;
240
                }
241
                $this->V[$k][$k] = 1.0;
242
            }
243
        }