X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FOEmbed.php;h=4304bc91a0681368de4bd39896d6efc5a955bf48;hb=66a1e505e3b66ae6dc4884e8b92418ab827cc082;hp=498a65e33bb79649aa9d46c372277dec5e5507dd;hpb=83cbe586acdc4ef21a7c46bf50534458c1b590d5;p=friendica.git diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 498a65e33b..4304bc91a0 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -1,6 +1,6 @@ " . DI::l10n()->t('Embedding disabled') . " : $1", $text); } - return preg_replace_callback("/\[embed\](.+?)\[\/embed\]/is", ['self', 'replaceCallback'], $text); + return preg_replace_callback("/\[embed\](.+?)\[\/embed\]/is", [self::class, 'replaceCallback'], $text); } /** @@ -385,13 +385,13 @@ class OEmbed } /** - * Returns a formmated HTML code from given URL and sets optional title + * Returns a formatted HTML code from given URL and sets optional title * * @param string $url URL to fetch * @param string $title Optional title (default: what comes from OEmbed object) * @return string Formatted HTML */ - public static function getHTML(string $url, string $title = '') + public static function getHTML(string $url, string $title = ''): string { $o = self::fetchURL($url, !self::isAllowedURL($url));