Code Duplication    Length = 8-8 lines in 2 locations

code/model/Post.php 2 locations

@@ 227-234 (lines=8) @@
224
		return '<a href="' . $url . '" class="showLink">' . _t('Post.SHOWLINK','Show Thread') . "</a>";
225
	}
226
	
227
	public function BanLink() {
228
		$thread = $this->Thread();
229
		if($thread->canModerate()) {
230
			$link = $thread->Forum()->Link('ban') .'/'. $this->AuthorID;
231
			return "<a class='banLink' href=\"$link\" rel=\"$this->AuthorID\">". _t('Post.BANUSER', 'Ban User') ."</a>";
232
		}
233
		return false;
234
	}
235
236
	public function GhostLink() {
237
		$thread = $this->Thread();
@@ 236-243 (lines=8) @@
233
		return false;
234
	}
235
236
	public function GhostLink() {
237
		$thread = $this->Thread();
238
		if($thread->canModerate()) {
239
			$link = $thread->Forum()->Link('ghost') .'/'. $this->AuthorID;
240
			return "<a class='ghostLink' href=\"$link\" rel=\"$this->AuthorID\">". _t('Post.GHOSTUSER', 'Ghost User') ."</a>";
241
		}
242
		return false;
243
	}
244
245
	/**
246
	 * Return the parsed content and the information for the