original_string: public function getQueuedAttachments()
      {
          $queued = [];
  
          foreach ($this->getMediaFiles() as $name => $attachment) {
              if ($attachment->isQueued()) {
                  $queued[$name] = $attachment;
              }
          }
  
          return $queued;
      }
code: public function getQueuedAttachments()
      {
          $queued = [];
  
          foreach ($this->getMediaFiles() as $name => $attachment) {
              if ($attachment->isQueued()) {
                  $queued[$name] = $attachment;
              }
          }
  
          return $queued;
      }
code_tokens: public function getQueuedAttachments ( ) { $ queued = [ ] ; foreach ( $ this -> getMediaFiles ( ) as $ name => $ attachment ) { if ( $ attachment -> isQueued ( ) ) { $ queued [ $ name ] = $ attachment ; } } return $ queued ; }
docstring: Return all queued attachments that need processing.
  
  @return array
docstring_tokens: Return all queued attachments that need processing .