Code Duplication    Length = 8-8 lines in 2 locations

src/PhpSpreadsheet/Calculation/LookupRef.php 2 locations

@@ 767-774 (lines=8) @@
764
            }
765
        }
766
767
        if ($rowNumber !== false) {
768
            if ((!$not_exact_match) && ($rowValue != $lookup_value)) {
769
                //    if an exact match is required, we have what we need to return an appropriate response
770
                return Functions::NA();
771
            }
772
                //    otherwise return the appropriate value
773
                return $lookup_array[$rowNumber][$returnColumn];
774
        }
775
776
        return Functions::NA();
777
    }
@@ 832-839 (lines=8) @@
829
            $rowValue = $rowData;
830
        }
831
832
        if ($rowNumber !== false) {
833
            if ((!$not_exact_match) && ($rowValue != $lookup_value)) {
834
                //  if an exact match is required, we have what we need to return an appropriate response
835
                return Functions::NA();
836
            }
837
                //  otherwise return the appropriate value
838
                return $lookup_array[$returnColumn][$rowNumber];
839
        }
840
841
        return Functions::NA();
842
    }