original_string: public function flush()
      {
          if ($this->recordSize === 0) {
              return;
          }
  
          $str = '';
          foreach ($this->records as $record) {
              $str .= $this->recordFormat($record);
          }
  
          $this->clear();
          $this->write($str);
      }
code: public function flush()
      {
          if ($this->recordSize === 0) {
              return;
          }
  
          $str = '';
          foreach ($this->records as $record) {
              $str .= $this->recordFormat($record);
          }
  
          $this->clear();
          $this->write($str);
      }
code_tokens: public function flush ( ) { if ( $ this -> recordSize === 0 ) { return ; } $ str = '' ; foreach ( $ this -> records as $ record ) { $ str .= $ this -> recordFormat ( $ record ) ; } $ this -> clear ( ) ; $ this -> write ( $ str ) ; }
docstring: flush data to file.
  @throws \Inhere\Exceptions\FileSystemException
docstring_tokens: flush data to file .