<commit_before>
namespace Owl\Event;

class Manager
{
    protected listeners = [];

    public fn listen(var eventName, callable! callback)
    {
        let this->listeners[eventName][] = callback;
    }

    public function emit(string eventName, var data = null)
    {
        var events, callback;

        if fetch events, this->listeners[eventName] {
            for callback in events {
                if typeof callback == "array" {
                    call_user_func_array(callback, [new Event(eventName, data)]);
                } else {
                    {callback}(new Event(eventName, data));
                }
            }
        }
	}
}<commit_msg>Event\Manager - fix code style, added comment<commit_after>
namespace Owl\Event;

class Manager
{
	protected listeners = [];

	public fn listen(var eventName, callable! callback)
	{
		let this->listeners[eventName][] = callback;
	}

	public function emit(string eventName, var data = null)
	{
		var events, callback;

		if fetch events, this->listeners[eventName] {
			for callback in events {
				if typeof callback == "array" {
					call_user_func_array(callback, [new Event(eventName, data)]);
				} else {
					/**
					 * It's a hack, to call by zval
					 */
					{callback}(new Event(eventName, data));
				}
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.1117964533538936, 'fraction_numerical': 0.0, 'mean_word_length': 2.311224489795918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3060662', 'n_tokens_mistral': 426, 'n_tokens_neox': 373, 'n_words': 104}