protected function determineLineEnding()
    {
        if (isset($this->content[0]) && strpos($this->content[0], "\r\n") !== false) {
            $this->lineEnding = "\r\n";
        }

        return $this;
    }
protected function determineLineEnding()
    {
        if (isset($this->content[0]) && strpos($this->content[0], "\r\n") !== false) {
            $this->lineEnding = "\r\n";
        }

        return $this;
    }
protected function determineLineEnding ( ) { if ( isset ( $ this -> content [ 0 ] ) && strpos ( $ this -> content [ 0 ] , "\r\n" ) !== false ) { $ this -> lineEnding = "\r\n" ; } return $ this ; }
Default line ending is set to LF.

If there is at least one line in the provided file
and it contains CR+LF, change line ending CR+LF.

@return $this
Default line ending is set to LF .