original_string: private function openFile( $isFirst = false )
      {
          // cleanup file pointer if needed
          if ( $this->fp != null )
          {
              fclose( $this->fp );
              $this->fp = null;
          }
  
          // open the new file
          $file = $isFirst ? current( $this->files ) : next( $this->files );
  
          // loop until we can open a file.
          while ( $this->fp == null && $file !== false )
          {
              if ( $file === 'php://stdin' || file_exists( $file ) )
              {
                  $fp = fopen( $file, 'r' );
                  if ( $fp !== false )
                  {
                      $this->fp = $fp;
                      return true;
                  }
              }
              $file = next( $this->files );
          }
          return false;
      }
code: private function openFile( $isFirst = false )
      {
          // cleanup file pointer if needed
          if ( $this->fp != null )
          {
              fclose( $this->fp );
              $this->fp = null;
          }
  
          // open the new file
          $file = $isFirst ? current( $this->files ) : next( $this->files );
  
          // loop until we can open a file.
          while ( $this->fp == null && $file !== false )
          {
              if ( $file === 'php://stdin' || file_exists( $file ) )
              {
                  $fp = fopen( $file, 'r' );
                  if ( $fp !== false )
                  {
                      $this->fp = $fp;
                      return true;
                  }
              }
              $file = next( $this->files );
          }
          return false;
      }
code_tokens: private function openFile ( $ isFirst = false ) { // cleanup file pointer if needed if ( $ this -> fp != null ) { fclose ( $ this -> fp ) ; $ this -> fp = null ; } // open the new file $ file = $ isFirst ? current ( $ this -> files ) : next ( $ this -> files ) ; // loop until we can open a file. while ( $ this -> fp == null && $ file !== false ) { if ( $ file === 'php://stdin' || file_exists ( $ file ) ) { $ fp = fopen ( $ file , 'r' ) ; if ( $ fp !== false ) { $ this -> fp = $ fp ; return true ; } } $ file = next ( $ this -> files ) ; } return false ; }
docstring: Opens the next file in the set and returns true on success.
  
  @param bool $isFirst
  @return bool
docstring_tokens: Opens the next file in the set and returns true on success .