Code Duplication    Length = 8-8 lines in 2 locations

src/RunOpenCode/ExchangeRate/Utils/RateFilter.php 2 locations

@@ 67-74 (lines=8) @@
64
        return in_array($rate->getRateType(), $rateTypes);
65
    }
66
67
    public static function matchesDateFrom(RateInterface $rate, \DateTime $dateFrom = null)
68
    {
69
        if (is_null($dateFrom)) {
70
            return true;
71
        }
72
73
        return $dateFrom <= $rate->getDate();
74
    }
75
76
    public static function matchesDateTo(RateInterface $rate, \DateTime $dateTo = null)
77
    {
@@ 76-83 (lines=8) @@
73
        return $dateFrom <= $rate->getDate();
74
    }
75
76
    public static function matchesDateTo(RateInterface $rate, \DateTime $dateTo = null)
77
    {
78
        if (is_null($dateTo)) {
79
            return true;
80
        }
81
82
        return $dateTo >= $rate->getDate();
83
    }
84
85
    public static function matchesOnDate(RateInterface $rate, \DateTime $date = null)
86
    {