original_string: public function postPendingEventsTo($plugin)
      {
          foreach ($this->pendingEvents as $eventInfo) {
              list($eventName, $eventParams) = $eventInfo;
              $this->postEvent($eventName, $eventParams, $pending = false, array($plugin));
          }
      }
code: public function postPendingEventsTo($plugin)
      {
          foreach ($this->pendingEvents as $eventInfo) {
              list($eventName, $eventParams) = $eventInfo;
              $this->postEvent($eventName, $eventParams, $pending = false, array($plugin));
          }
      }
code_tokens: public function postPendingEventsTo ( $ plugin ) { foreach ( $ this -> pendingEvents as $ eventInfo ) { list ( $ eventName , $ eventParams ) = $ eventInfo ; $ this -> postEvent ( $ eventName , $ eventParams , $ pending = false , array ( $ plugin ) ) ; } }
docstring: Re-posts all pending events to the given plugin.
  
  @param Plugin $plugin
docstring_tokens: Re - posts all pending events to the given plugin .