original_string: public function close()
      {
          if (!$this->isWriterOpened) {
              return;
          }
  
          $this->closeWriter();
  
          if (is_resource($this->filePointer)) {
              $this->globalFunctionsHelper->fclose($this->filePointer);
          }
  
          $this->isWriterOpened = false;
      }
code: public function close()
      {
          if (!$this->isWriterOpened) {
              return;
          }
  
          $this->closeWriter();
  
          if (is_resource($this->filePointer)) {
              $this->globalFunctionsHelper->fclose($this->filePointer);
          }
  
          $this->isWriterOpened = false;
      }
code_tokens: public function close ( ) { if ( ! $ this -> isWriterOpened ) { return ; } $ this -> closeWriter ( ) ; if ( is_resource ( $ this -> filePointer ) ) { $ this -> globalFunctionsHelper -> fclose ( $ this -> filePointer ) ; } $ this -> isWriterOpened = false ; }
docstring: Closes the writer. This will close the streamer as well, preventing new data
  to be written to the file.
  
  @api
  @return void
docstring_tokens: Closes the writer . This will close the streamer as well preventing new data to be written to the file .