Box\Spout\Reader\CSV\RowIterator::shouldReadNextRow PHP Метод

shouldReadNextRow() защищенный Метод

protected shouldReadNextRow ( array | boolean $currentRowData ) : boolean
$currentRowData array | boolean
Результат boolean Whether the data for the current row can be returned or if we need to keep reading
    protected function shouldReadNextRow($currentRowData)
    {
        $hasSuccessfullyFetchedRowData = $currentRowData !== false;
        $hasNowReachedEndOfFile = $this->globalFunctionsHelper->feof($this->filePointer);
        $isEmptyLine = $this->isEmptyLine($currentRowData);
        return !$hasSuccessfullyFetchedRowData && !$hasNowReachedEndOfFile || !$this->shouldPreserveEmptyRows && $isEmptyLine;
    }