src/Carbon/CarbonPeriod.php
protected function filterEndDate($current)
    {
        if (!$this->isEndExcluded() && $current == $this->endDate) {
            return true;
        }

        if ($this->dateInterval->invert ? $current > $this->endDate : $current < $this->endDate) {
            return true;
        }

        return static::END_ITERATION;
    }
protected function filterEndDate($current)
    {
        if (!$this->isEndExcluded() && $current == $this->endDate) {
            return true;
        }

        if ($this->dateInterval->invert ? $current > $this->endDate : $current < $this->endDate) {
            return true;
        }

        return static::END_ITERATION;
    }
protected function filterEndDate ( $ current ) { if ( ! $ this -> isEndExcluded ( ) && $ current == $ this -> endDate ) { return true ; } if ( $ this -> dateInterval -> invert ? $ current > $ this -> endDate : $ current < $ this -> endDate ) { return true ; } return static :: END_ITERATION ; }
End date filter callback.

@param \Carbon\Carbon $current

@return bool|string
End date filter callback .