Replace self:: with static:: for shortcode methods

This commit is contained in:
Loz Calver 2019-01-28 14:51:34 +00:00
parent fad221bf1c
commit 785e9f123f

View File

@ -114,11 +114,11 @@ class EmbedShortcodeProvider implements ShortcodeHandler
if (empty($arguments['width']) && $embed->getWidth()) {
$arguments['width'] = $embed->getWidth();
}
return self::videoEmbed($arguments, $embed->getCode());
return static::videoEmbed($arguments, $embed->getCode());
case 'link':
return self::linkEmbed($arguments, $embed->getUrl(), $embed->getTitle());
return static::linkEmbed($arguments, $embed->getUrl(), $embed->getTitle());
case 'photo':
return self::photoEmbed($arguments, $embed->getUrl());
return static::photoEmbed($arguments, $embed->getUrl());
default:
return null;
}