private function replace(array $data): string
    {
        $widget = explode(':', $data[1]);
        if (class_exists($class = $widget[0]) && method_exists($class, $method = $widget[1])) {
            return call_user_func([$class, $method]);
        }

        return '';
    }
private function replace(array $data): string
    {
        $widget = explode(':', $data[1]);
        if (class_exists($class = $widget[0]) && method_exists($class, $method = $widget[1])) {
            return call_user_func([$class, $method]);
        }

        return '';
    }
private function replace ( array $ data ) : string { $ widget = explode ( ':' , $ data [ 1 ] ) ; if ( class_exists ( $ class = $ widget [ 0 ] ) && method_exists ( $ class , $ method = $ widget [ 1 ] ) ) { return call_user_func ( [ $ class , $ method ] ) ; } return '' ; }
Replaces widget short code on appropriate widget

@param $data

@return string
Replaces widget short code on appropriate widget