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);
        }
    }
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);
        }
    }
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 ) ; } }
Get events from event pattern.

@param mixed $pattern

@return array
Get events from event pattern .