Code Duplication    Length = 12-12 lines in 2 locations

lib/textmark/textmark.php 2 locations

@@ 485-496 (lines=12) @@
482
				$value = substr($value, strlen($matches[1]));
483
				$align = $matches[2];
484
485
				if ($align)
486
				{
487
					switch ($align)
488
					{
489
						case '<': $align = 'left'; break;
490
						case '|': $align = 'center'; break;
491
						case '>': $align = 'right'; break;
492
						case '=': $align = 'justify'; break;
493
					}
494
495
					$style .= "text-align: $align;";
496
				}
497
			}
498
499
			//			\ICanBoogie\log('in \1, graf: <tt>\2</tt>, match: <pre>\3</pre>', __FUNCTION__, $value, $matches);
@@ 769-780 (lines=12) @@
766
		$alt_text = str_replace('"', '&quot;', $alt_text);
767
		$result = "<img src=\"$url\" alt=\"$alt_text\"";
768
769
		if ($align)
770
		{
771
			switch ($align)
772
			{
773
				case '<': $align = 'left'; break;
774
				case '=':
775
				case '|': $align = 'middle'; break;
776
				case '>': $align = 'right'; break;
777
			}
778
779
			$result .= ' align="' . $align . '"';
780
		}
781
782
		if (isset($title))
783
		{