original_string: private function flushMemorySpool()
      {
          $mailerTransport = $this->mailer->getTransport();
          if (!$mailerTransport instanceof \Swift_Transport_SpoolTransport) {
              return;
          }
  
          $spool = $mailerTransport->getSpool();
          if (!$spool instanceof \Swift_MemorySpool) {
              return;
          }
  
          if (null === $this->transport) {
              throw new \Exception('No transport available to flush mail queue');
          }
  
          $spool->flushQueue($this->transport);
      }
code: private function flushMemorySpool()
      {
          $mailerTransport = $this->mailer->getTransport();
          if (!$mailerTransport instanceof \Swift_Transport_SpoolTransport) {
              return;
          }
  
          $spool = $mailerTransport->getSpool();
          if (!$spool instanceof \Swift_MemorySpool) {
              return;
          }
  
          if (null === $this->transport) {
              throw new \Exception('No transport available to flush mail queue');
          }
  
          $spool->flushQueue($this->transport);
      }
code_tokens: private function flushMemorySpool ( ) { $ mailerTransport = $ this -> mailer -> getTransport ( ) ; if ( ! $ mailerTransport instanceof \ Swift_Transport_SpoolTransport ) { return ; } $ spool = $ mailerTransport -> getSpool ( ) ; if ( ! $ spool instanceof \ Swift_MemorySpool ) { return ; } if ( null === $ this -> transport ) { throw new \ Exception ( 'No transport available to flush mail queue' ) ; } $ spool -> flushQueue ( $ this -> transport ) ; }
docstring: Flushes the mail queue if a memory spool is used.
docstring_tokens: Flushes the mail queue if a memory spool is used .