eventData['server'])) { // Save Hook event type data $this->eventData['type'] = $type; foreach ($this->observers as $observer) { // Notify all registered observers $data = $observer->hookWSRegistration($this); // check if server is not null if (isset($data['server'])) { // Get modified server $this->eventData['server'] = $data['server']; } } return $this->eventData; } return 1; } }