Code Duplication    Length = 21-21 lines in 3 locations

Themes/default/Themes.template.php 2 locations

@@ 354-374 (lines=21) @@
351
	foreach ($context['options'] as $i => $setting)
352
	{
353
		// Just spit out separators and move on
354
		if (empty($setting) || !is_array($setting))
355
		{
356
			// Insert a separator (unless this is the first item in the list)
357
			if ($i !== $first_option_key)
358
				echo '
359
				</dl>
360
				<hr>
361
				<dl class="settings">';
362
363
			// Should we give a name to this section?
364
			if (is_string($setting) && !empty($setting))
365
			{
366
				$titled_section = true;
367
				echo '
368
					<dt><strong>' . $setting . '</strong></dt>
369
					<dd></dd>';
370
			}
371
			else
372
				$titled_section = false;
373
374
			continue;
375
		}
376
377
		echo '
@@ 587-607 (lines=21) @@
584
	foreach ($context['settings'] as $i => $setting)
585
	{
586
		// Is this a separator?
587
		if (empty($setting) || !is_array($setting))
588
		{
589
			// We don't need a separator before the first list element
590
			if ($i !== $first_setting_key)
591
				echo '
592
				</dl>
593
				<hr>
594
				<dl class="settings">';
595
596
			// Add a fake heading?
597
			if (is_string($setting) && !empty($setting))
598
			{
599
				$titled_section = true;
600
				echo '
601
					<dt><strong>' . $setting . '</strong></dt>
602
					<dd></dd>';
603
			}
604
			else
605
				$titled_section = false;
606
607
			continue;
608
		}
609
610
		echo '

Themes/default/Profile.template.php 1 location

@@ 1710-1730 (lines=21) @@
1707
	foreach ($context['theme_options'] as $i => $setting)
1708
	{
1709
		// Just spit out separators and move on
1710
		if (empty($setting) || !is_array($setting))
1711
		{
1712
			// Insert a separator (unless this is the first item in the list)
1713
			if ($i !== $first_option_key)
1714
				echo '
1715
				</dl>
1716
				<hr>
1717
				<dl class="settings">';
1718
1719
			// Should we give a name to this section?
1720
			if (is_string($setting) && !empty($setting))
1721
			{
1722
				$titled_section = true;
1723
				echo '
1724
					<dt><strong>' . $setting . '</strong></dt>
1725
					<dd></dd>';
1726
			}
1727
			else
1728
				$titled_section = false;
1729
1730
			continue;
1731
		}
1732
1733
		// Is this disabled?