Code Duplication    Length = 9-9 lines in 2 locations

api/src/Storage/Merge.php 2 locations

@@ 351-359 (lines=9) @@
348
			if($style == 'href' || $style == 'link')
349
			{
350
				$link = Api\Link::view($link_info['app'], $link_info['id'], $link_info);
351
				if($link_info['app'] != Api\Link::VFS_APPNAME)
352
				{
353
					// Set app to false so we always get an external link
354
					$link = str_replace(',', '%2C', $GLOBALS['egw']->framework->link('/index.php',$link, false));
355
				}
356
				else
357
				{
358
					$link = Api\Framework::link($link, array());
359
				}
360
				// Prepend site
361
				if ($link{0} == '/')
362
				{
@@ 410-418 (lines=9) @@
407
						}
408
409
						$link = Api\Link::view($app, $id);
410
						if($app != Api\Link::VFS_APPNAME)
411
						{
412
							// Set app to false so we always get an external link
413
							$link = str_replace(',', '%2C', $GLOBALS['egw']->framework->link('/index.php',$link, false));
414
						}
415
						else
416
						{
417
							$link = Api\Framework::link($link, array());
418
						}
419
						// Prepend site
420
						if ($link{0} == '/')
421
						{