original_string: public function close($finalFilePointer)
      {
          /** @var Worksheet[] $worksheets */
          $worksheets = $this->worksheets;
  
          foreach ($worksheets as $worksheet) {
              $worksheet->close();
          }
  
          $this->sharedStringsHelper->close();
  
          // Finish creating all the necessary files before zipping everything together
          $this->fileSystemHelper
              ->createContentTypesFile($worksheets)
              ->createWorkbookFile($worksheets)
              ->createWorkbookRelsFile($worksheets)
              ->createStylesFile($this->styleHelper)
              ->zipRootFolderAndCopyToStream($finalFilePointer);
  
          $this->cleanupTempFolder();
      }
code: public function close($finalFilePointer)
      {
          /** @var Worksheet[] $worksheets */
          $worksheets = $this->worksheets;
  
          foreach ($worksheets as $worksheet) {
              $worksheet->close();
          }
  
          $this->sharedStringsHelper->close();
  
          // Finish creating all the necessary files before zipping everything together
          $this->fileSystemHelper
              ->createContentTypesFile($worksheets)
              ->createWorkbookFile($worksheets)
              ->createWorkbookRelsFile($worksheets)
              ->createStylesFile($this->styleHelper)
              ->zipRootFolderAndCopyToStream($finalFilePointer);
  
          $this->cleanupTempFolder();
      }
code_tokens: public function close ( $ finalFilePointer ) { /** @var Worksheet[] $worksheets */ $ worksheets = $ this -> worksheets ; foreach ( $ worksheets as $ worksheet ) { $ worksheet -> close ( ) ; } $ this -> sharedStringsHelper -> close ( ) ; // Finish creating all the necessary files before zipping everything together $ this -> fileSystemHelper -> createContentTypesFile ( $ worksheets ) -> createWorkbookFile ( $ worksheets ) -> createWorkbookRelsFile ( $ worksheets ) -> createStylesFile ( $ this -> styleHelper ) -> zipRootFolderAndCopyToStream ( $ finalFilePointer ) ; $ this -> cleanupTempFolder ( ) ; }
docstring: Closes the workbook and all its associated sheets.
  All the necessary files are written to disk and zipped together to create the XLSX file.
  All the temporary files are then deleted.
  
  @param resource $finalFilePointer Pointer to the XLSX that will be created
  @return void
docstring_tokens: Closes the workbook and all its associated sheets . All the necessary files are written to disk and zipped together to create the XLSX file . All the temporary files are then deleted .