@param string $event

@return array
554194
public function getListeners(string $event)
    {
        if (isset($this->listeners[$event])) {
            return $this->listeners[$event];
        } elseif (isset($this->classListeners[$event])) {
            return $this->classListeners[$event];
        }

        return [];
    }
569079
public function getListeners($event = null)
	{
		$event = $this->resolveEventName($event);

		if ($event)
		{
			if (isset($this->listeners[$event]))
			{
				return $this->listeners[$event]->getAll();
			}
			return array();
		}

		return $this->listeners;
	}
244592
public static function bound($event)
    {
        return array_key_exists($event, static::$events)
            || array_key_exists(
                $event,
                isset(static::$events['__bow.transmission.event'])
                    ? static::$events['__bow.transmission.event']
                    : []
            )
            || array_key_exists(
                $event,
                isset(static::$events['__bow.once.event']) ? static::$events['__bow.once.event'] : []
            );
    }
1373630
private function tags($event)
    {
        return array_merge([
            $this->formatNotifiable($event->notifiable),
        ], ExtractTags::from($event->notification));
    }
820101
private function resolveEventAndListeners($event)
    {

        if (is_object($event) && $event instanceof EventDispatch) {
            $name = get_class($event);
        } else {
            $name = $event;
        }

        if (is_string($name)) {
            if ($this->hasListiner($name) && $listeners = $this->getListeners($name)) {
                if (count($listeners) === 1) {
                    $listeners = $listeners[0];
                    $listeners = [$listeners instanceof Closure ? $listeners : (new $listeners)];
                }
            } else {
                throw new EventListenerException(sprintf('Your %s event havent got listener', $event));
            }
        }

        return [$listeners, $event];
    }
220548
private function getEventMessage(Event $event)
    {
        return json_encode([
            'title' => $event->getTitle(),
            'text' => $event->getText(),
            'timestamp' => $event->getTimeStamp(),
            'host' => $event->getHost(),
            'type' => $event->getType()
        ]);
    }
211859
protected function normalizeEvent($event)
    {
        $event &= ~IN_ISDIR;
        if (0 !== ($event & IN_MOVED_FROM)) {
            return IN_DELETE;
        } elseif (0 !== ($event & IN_MOVED_TO)) {
            return IN_CREATE;
        }

        return $event;
    }
637509
public function getListeners(string $event) : array
    {
        if (empty($this->listeners[$event])) {
            return [];
        }

        if (! isset($this->sorted[$event])) {
            $this->sorted[$event] = $this->sortListeners($this->listeners[$event]);
        }

        return $this->sorted[$event];
    }
317179
public function process(array $event)
    {
        if (false === strpos($event['message'], '{')) {
            return $event;
        }

        /** @var array $eventContext */
        $eventContext = $event['context'];
        $replacements = [];

        foreach ($eventContext as $key => $value) {
            $replacements['{' . $key . '}'] = $value;
        }

        $event['message'] = strtr($event['message'], $replacements);

        return $event;
    }
1363062
public function getEvent(string $event)
    {
        $class = (string)$this->sprintf(':namespace\Event\:event', __NAMESPACE__, $event);

        if (class_exists($class)) {
            return new $class($this);
        }

        return null;
    }
3484
protected function getPlaceholders(GenericEvent $event)
    {
        return array(
            '%eventname%' => $event['eventname'],
            '%source%'    => $event['source'],
            '%filename%'  => $event->hasArgument('file') ? $event['file'] : '',
            '%error%'     => $event->hasArgument('error') ? $event['error'] : '',
            '%profile%'   => $event->hasArgument('profile') ? $event['profile'] : '',
            '%message%'   => $event->hasArgument('message') ? $event['message'] : '',
        );
    }
93571
public function getListeners($event)
    {
        $parentListeners = [];
        $wildcards = [];

        if( is_object($event) )
        {
            $eventName = get_class($event);
            $parentListeners = $this->getParentListeners($event);
        }
        else
        {
            $eventName = $event;
            $wildcards = $this->getWildcardListeners($event);
        }

        if (!isset($this->sorted[$eventName])) {
            $this->sortListeners($eventName);
        }

        return array_merge($this->sorted[$eventName], $wildcards, $parentListeners);
    }
99148
public function getSubscribers($event)
    {
        $result = array();
        if(isset($this->__listeners[$event])) {
            $result = $this->__listeners[$event];
        }

        return $result;
    }
244737
private function getParameters(ControllerReadyEvent $event) : array
    {
        $controller = $event->getRouteMatch()->getControllerReflection();

        $currentParameters = $event->getParameters();
        $newParameters = [];

        foreach ($controller->getParameters() as $parameter) {
            $name = $parameter->getName();

            if (isset($currentParameters[$name])) {
                $newParameters[$name] = $this->getParameterValue($parameter, $currentParameters[$name]);
            }
        }

        return $newParameters;
    }
1111072
public function getArgs($event)
    {
        return [
            $event->getProperty(),
            new DcCompat($event->getEnvironment(), $event->getModel(), $event->getProperty())
        ];
    }
1260402
protected function buildCondition($event) {
        $conditions = array();
        foreach ($event->getControlIds() as $control) {
            if (substr($control, 0, 1) === '.') {
                $condition = 'Event.Control.HasClass("' . substr($control, 1) . '")';
            } else {
                $condition = 'Event.ControlId == "' . $control . '"';
            }
            $conditions[$control] = $condition;
        }

        $result = '';
        if (!empty($conditions)) {
            $result = implode(' || ', $conditions);
        }
        return $result;
    }
346588
protected function prepareEvent($event)
    {
        $event = $this->ensureEvent($event);
        $name = $event->getName();
        $event->setEmitter($this);

        return [$name, $event];
    }