protected function readNext($handle, $chunkSize)
    {
        if (feof($handle)) {
            return null;
        }

        $row = $this->readRow($handle, $chunkSize);

        if (!$this->startAtRow && $this->hasHeader && !$this->headerRowSkipped) {
            $this->headerRowSkipped = true;
            return $this->readNext($handle, $chunkSize);
        }

        return $row === [] ? $this->readNext($handle, $chunkSize) : $row;
    }
protected function readNext($handle, $chunkSize)
    {
        if (feof($handle)) {
            return null;
        }

        $row = $this->readRow($handle, $chunkSize);

        if (!$this->startAtRow && $this->hasHeader && !$this->headerRowSkipped) {
            $this->headerRowSkipped = true;
            return $this->readNext($handle, $chunkSize);
        }

        return $row === [] ? $this->readNext($handle, $chunkSize) : $row;
    }
protected function readNext ( $ handle , $ chunkSize ) { if ( feof ( $ handle ) ) { return null ; } $ row = $ this -> readRow ( $ handle , $ chunkSize ) ; if ( ! $ this -> startAtRow && $ this -> hasHeader && ! $ this -> headerRowSkipped ) { $ this -> headerRowSkipped = true ; return $ this -> readNext ( $ handle , $ chunkSize ) ; } return $ row === [ ] ? $ this -> readNext ( $ handle , $ chunkSize ) : $ row ; }
Read the next row and return it. Skip empty lines.

@param resource $handle
@param int      $chunkSize

@return array|null
Read the next row and return it . Skip empty lines .