original_string: protected function syndicateFeedItems(array $items)
      {
          $messages = array();
          foreach ($items as $item) {
              $messages[] = $this->formatter->format($item);
          }
  
          foreach ($this->targets as $connection => $targets) {
              $this->getEventQueue($connection)->then(
                  function($queue) use ($targets, $messages) {
                      foreach ($targets as $target) {
                          foreach ($messages as $message) {
                              $queue->ircPrivmsg($target, $message);
                          }
                      }
                  }
              );
          }
      }
code: protected function syndicateFeedItems(array $items)
      {
          $messages = array();
          foreach ($items as $item) {
              $messages[] = $this->formatter->format($item);
          }
  
          foreach ($this->targets as $connection => $targets) {
              $this->getEventQueue($connection)->then(
                  function($queue) use ($targets, $messages) {
                      foreach ($targets as $target) {
                          foreach ($messages as $message) {
                              $queue->ircPrivmsg($target, $message);
                          }
                      }
                  }
              );
          }
      }
code_tokens: protected function syndicateFeedItems ( array $ items ) { $ messages = array ( ) ; foreach ( $ items as $ item ) { $ messages [ ] = $ this -> formatter -> format ( $ item ) ; } foreach ( $ this -> targets as $ connection => $ targets ) { $ this -> getEventQueue ( $ connection ) -> then ( function ( $ queue ) use ( $ targets , $ messages ) { foreach ( $ targets as $ target ) { foreach ( $ messages as $ message ) { $ queue -> ircPrivmsg ( $ target , $ message ) ; } } } ) ; } }
docstring: Syndicates a given list of feed items to all targets.
  
  @param \Zend\Feed\Reader\Entry\EntryInterface[] $items
docstring_tokens: Syndicates a given list of feed items to all targets .