Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 208-216 (lines=9) @@
205
     *
206
     * @return bool true if U, and hence A, is nonsingular
207
     */
208
    public function isNonsingular()
209
    {
210
        for ($j = 0; $j < $this->n; ++$j) {
211
            if ($this->LU[$j][$j] == 0) {
212
                return false;
213
            }
214
        }
215
216
        return true;
217
    }
218
219
    //    function isNonsingular()

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

@@ 109-117 (lines=9) @@
106
     *
107
     * @return bool true if R, and hence A, has full rank, else false
108
     */
109
    public function isFullRank()
110
    {
111
        for ($j = 0; $j < $this->n; ++$j) {
112
            if ($this->Rdiag[$j] == 0) {
113
                return false;
114
            }
115
        }
116
117
        return true;
118
    }
119
120
    //    function isFullRank()