src/Carbon/CarbonPeriod.php
protected function validateCurrentDate()
    {
        if ($this->current === null) {
            $this->rewind();
        }

        // Check after the first rewind to avoid repeating the initial validation.
        if ($this->validationResult !== null) {
            return $this->validationResult;
        }

        return $this->validationResult = $this->checkFilters();
    }
protected function validateCurrentDate()
    {
        if ($this->current === null) {
            $this->rewind();
        }

        // Check after the first rewind to avoid repeating the initial validation.
        if ($this->validationResult !== null) {
            return $this->validationResult;
        }

        return $this->validationResult = $this->checkFilters();
    }
protected function validateCurrentDate ( ) { if ( $ this -> current === null ) { $ this -> rewind ( ) ; } // Check after the first rewind to avoid repeating the initial validation. if ( $ this -> validationResult !== null ) { return $ this -> validationResult ; } return $ this -> validationResult = $ this -> checkFilters ( ) ; }
Validate current date and stop iteration when necessary.

Returns true when current date is valid, false if it is not, or static::END_ITERATION
when iteration should be stopped.

@return bool|string
Validate current date and stop iteration when necessary .