protected static function splite($pattern)
    {
        if (is_array($pattern)) {
            $events = [];

            foreach ($pattern as $value) {
                $events = array_collapse([$events, self::extract($value)]);
            }

            return $events;
        } elseif (is_string($pattern)) {
            return self::extract($pattern);
        }
    }