Code Duplication    Length = 9-9 lines in 2 locations

src/PhpSpreadsheet/Calculation/LookupRef.php 2 locations

@@ 728-736 (lines=9) @@
725
            }
726
        }
727
728
        if ($rowNumber !== false) {
729
            if ((!$not_exact_match) && ($rowValue != $lookup_value)) {
730
                //    if an exact match is required, we have what we need to return an appropriate response
731
                return Functions::NA();
732
            } else {
733
                //    otherwise return the appropriate value
734
                return $lookup_array[$rowNumber][$returnColumn];
735
            }
736
        }
737
738
        return Functions::NA();
739
    }
@@ 791-799 (lines=9) @@
788
            $rowValue = $rowData;
789
        }
790
791
        if ($rowNumber !== false) {
792
            if ((!$not_exact_match) && ($rowValue != $lookup_value)) {
793
                //  if an exact match is required, we have what we need to return an appropriate response
794
                return Functions::NA();
795
            } else {
796
                //  otherwise return the appropriate value
797
                return $lookup_array[$returnColumn][$rowNumber];
798
            }
799
        }
800
801
        return Functions::NA();
802
    }