Code Duplication    Length = 4-4 lines in 2 locations

addressbook/inc/class.addressbook_ui.inc.php 1 location

@@ 2395-2398 (lines=4) @@
2392
2393
			foreach(isset($extra_tabs[0]) ? $extra_tabs : array($extra_tabs) as $extra_tab)
2394
			{
2395
				if ($extra_tab['data'] && is_array($extra_tab['data']))
2396
				{
2397
					$content = array_merge($content, $extra_tab['data']);
2398
				}
2399
				if ($extra_tab['preserve'] && is_array($extra_tab['preserve']))
2400
				{
2401
					$preserve = array_merge($preserve, $extra_tab['preserve']);

filemanager/inc/class.filemanager_ui.inc.php 1 location

@@ 1372-1375 (lines=4) @@
1369
					'label' =>	$extra_tab['label'],
1370
					'template' =>	$extra_tab['name']
1371
				);
1372
				if ($extra_tab['data'] && is_array($extra_tab['data']))
1373
				{
1374
					$content = array_merge($content, $extra_tab['data']);
1375
				}
1376
				if ($extra_tab['preserve'] && is_array($extra_tab['preserve']))
1377
				{
1378
					$preserve = array_merge($preserve, $extra_tab['preserve']);