protected static $_testLinkCache = null;
protected static $_linksKey = null;
- protected static $_webvideoServicesMap=[0=>'youtube',1=>'dailymotion',2=>'vimeo',3=>'brightcove'];
+ protected static $_webvideoServicesMap = [0 => 'youtube', 1 => 'dailymotion', 2 => 'vimeo', 3 => 'brightcove'];
/**
* @throws Exception
return Str::lower(Str::random(12));
}
- protected static function _fixLinks(&$links){
+ protected static function _fixLinks(&$links)
+ {
self::_correctImageSpecialLinks($links);
self::_fixWebVideoServices($links);
}
protected static function _fixWebVideoServices(&$links)
{
foreach ($links as $k => $link) {
- if($link['type']==10){
- if(is_numeric($link['video_service'])){
- $links[$k]['video_service']=self::$_webvideoServicesMap[$link['video_service']];
+ if ($link['type'] == 10) {
+ if (is_numeric($link['video_service'])) {
+ $links[$k]['video_service'] = self::$_webvideoServicesMap[$link['video_service']];
}
}
}