Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 170-172 (lines=3) @@
167
                    }
168
                }
169
            }
170
            for ($k = 0; $k <= $i; ++$k) {
171
                $this->V[$k][$i + 1] = 0.0;
172
            }
173
        }
174
175
        $this->d = $this->V[$this->n - 1];

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

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