From: Vincent Vanwaelscappel Date: Thu, 16 Feb 2023 16:23:09 +0000 (+0100) Subject: wip #5741 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=efcb286a0b07da5f7bc5fdb16499f72a966f716f;p=fluidbook-toolbox.git wip #5741 @0:20 --- diff --git a/app/Fluidbook/Links.php b/app/Fluidbook/Links.php index 6d2d52259..4b6a87254 100644 --- a/app/Fluidbook/Links.php +++ b/app/Fluidbook/Links.php @@ -23,7 +23,7 @@ class Links 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 @@ -196,7 +196,8 @@ class Links return Str::lower(Str::random(12)); } - protected static function _fixLinks(&$links){ + protected static function _fixLinks(&$links) + { self::_correctImageSpecialLinks($links); self::_fixWebVideoServices($links); } @@ -221,9 +222,9 @@ class 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']]; } } }