src/Reader.php
/**
     * Skip leading lines if it was not done
     */
Skip leading lines if it was not done
Skip leading lines if it was not done
public function skipLeadingLines(): void
    {
        if (false === $this->linesSkipped) {
            $this->rewind();
            $skip = $this->getStrategy()->getSkipLeadingLinesCount();
            for ($skipped = 0; $skipped < $skip; $skipped++) {
                $this->current();
                $this->next();
            }
            $this->linesSkipped = true;
        }
    }
public function skipLeadingLines ( ) : void { if ( false === $ this -> linesSkipped ) { $ this -> rewind ( ) ; $ skip = $ this -> getStrategy ( ) -> getSkipLeadingLinesCount ( ) ; for ( $ skipped = 0 ; $ skipped < $ skip ; $ skipped ++ ) { $ this -> current ( ) ; $ this -> next ( ) ; } $ this -> linesSkipped = true ; } }
Skip leading lines if it was not done
Skip leading lines if it was not done