original_string: public function dispatch(array $events)
      {
          foreach($events as $event)
          {
              $eventName = $this->getEventName($event);
  
              $this->event->fire($eventName, $event);
  
              $this->log->info("{$eventName} was fired.");
          }
      }
code: public function dispatch(array $events)
      {
          foreach($events as $event)
          {
              $eventName = $this->getEventName($event);
  
              $this->event->fire($eventName, $event);
  
              $this->log->info("{$eventName} was fired.");
          }
      }
code_tokens: public function dispatch ( array $ events ) { foreach ( $ events as $ event ) { $ eventName = $ this -> getEventName ( $ event ) ; $ this -> event -> fire ( $ eventName , $ event ) ; $ this -> log -> info ( "{$eventName} was fired." ) ; } }
docstring: Dispatch all raised events.
  
  @param array $events
docstring_tokens: Dispatch all raised events .