original_string: public function getEOL()
      {
          $pos = $this->pos();
  
          $this->rewind();
          $pos2 = $this->search("\n", false, false);
          if ($pos2) {
              $this->seek(-1);
              $eol = ($this->getChar() == "\r")
                  ? "\r\n"
                  : "\n";
          } else {
              $eol = is_null($pos2)
                  ? null
                  : "\n";
          }
  
          $this->seek($pos, false);
  
          return $eol;
      }
code: public function getEOL()
      {
          $pos = $this->pos();
  
          $this->rewind();
          $pos2 = $this->search("\n", false, false);
          if ($pos2) {
              $this->seek(-1);
              $eol = ($this->getChar() == "\r")
                  ? "\r\n"
                  : "\n";
          } else {
              $eol = is_null($pos2)
                  ? null
                  : "\n";
          }
  
          $this->seek($pos, false);
  
          return $eol;
      }
code_tokens: public function getEOL ( ) { $ pos = $ this -> pos ( ) ; $ this -> rewind ( ) ; $ pos2 = $ this -> search ( "\n" , false , false ) ; if ( $ pos2 ) { $ this -> seek ( - 1 ) ; $ eol = ( $ this -> getChar ( ) == "\r" ) ? "\r\n" : "\n" ; } else { $ eol = is_null ( $ pos2 ) ? null : "\n" ; } $ this -> seek ( $ pos , false ) ; return $ eol ; }
docstring: Auto-determine the EOL string.
  
  @since 1.3.0
  
  @return string  The EOL string, or null if no EOL found.
docstring_tokens: Auto - determine the EOL string .