Code Duplication    Length = 5-5 lines in 3 locations

src/PhpSpreadsheet/Shared/JAMA/EigenvalueDecomposition.php 3 locations

@@ 481-485 (lines=5) @@
478
                    $p = $p / $r;
479
                    $q = $q / $r;
480
                    // Row modification
481
                    for ($j = $n - 1; $j < $nn; ++$j) {
482
                        $z = $this->H[$n - 1][$j];
483
                        $this->H[$n - 1][$j] = $q * $z + $p * $this->H[$n][$j];
484
                        $this->H[$n][$j] = $q * $this->H[$n][$j] - $p * $z;
485
                    }
486
                    // Column modification
487
                    for ($i = 0; $i <= $n; ++$i) {
488
                        $z = $this->H[$i][$n - 1];
@@ 487-491 (lines=5) @@
484
                        $this->H[$n][$j] = $q * $this->H[$n][$j] - $p * $z;
485
                    }
486
                    // Column modification
487
                    for ($i = 0; $i <= $n; ++$i) {
488
                        $z = $this->H[$i][$n - 1];
489
                        $this->H[$i][$n - 1] = $q * $z + $p * $this->H[$i][$n];
490
                        $this->H[$i][$n] = $q * $this->H[$i][$n] - $p * $z;
491
                    }
492
                    // Accumulate transformations
493
                    for ($i = $low; $i <= $high; ++$i) {
494
                        $z = $this->V[$i][$n - 1];
@@ 493-497 (lines=5) @@
490
                        $this->H[$i][$n] = $q * $this->H[$i][$n] - $p * $z;
491
                    }
492
                    // Accumulate transformations
493
                    for ($i = $low; $i <= $high; ++$i) {
494
                        $z = $this->V[$i][$n - 1];
495
                        $this->V[$i][$n - 1] = $q * $z + $p * $this->V[$i][$n];
496
                        $this->V[$i][$n] = $q * $this->V[$i][$n] - $p * $z;
497
                    }
498
                // Complex pair
499
                } else {
500
                    $this->d[$n - 1] = $x + $p;