Code Duplication    Length = 7-9 lines in 2 locations

app/Theme/AbstractTheme.php 1 location

@@ 405-411 (lines=7) @@
402
	 *
403
	 * @return string
404
	 */
405
	public function formatBlock($id, $title, $class, $content) {
406
		return
407
			'<div id="' . $id . '" class="block" >' .
408
			'<div class="blockheader">' . $title . '</div>' .
409
			'<div class="blockcontent ' . $class . '">' . $content . '</div>' .
410
			'</div>';
411
	}
412
413
	/**
414
	 * Add markup to the contact links.

app/Theme/CloudsTheme.php 1 location

@@ 57-65 (lines=9) @@
54
	 *
55
	 * @return string
56
	 */
57
	public function formatBlock($id, $title, $class, $content) {
58
		return
59
			'<div id="' . $id . '" class="block" >' .
60
			'<table class="blockheader"><tr><td class="blockh1"></td><td class="blockh2">' .
61
			'<div class="blockhc"><b>' . $title . '</b></div>' .
62
			'</td><td class="blockh3"></td></tr></table>' .
63
			'<div class="blockcontent normal_inner_block ' . $class . '">' . $content . '</div>' .
64
			'</div>';
65
	}
66
67
	/**
68
	 * Create a search field and submit button for the quick search form in the header.