Code Duplication    Length = 3-3 lines in 2 locations

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

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

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

@@ 232-234 (lines=3) @@
229
                        }
230
                    }
231
                }
232
                for ($i = 0; $i < $this->n; ++$i) {
233
                    $this->V[$i][$k] = 0.0;
234
                }
235
                $this->V[$k][$k] = 1.0;
236
            }
237
        }