Code Duplication    Length = 6-6 lines in 2 locations

forms/htmleditor/HtmlEditorField.php 2 locations

@@ 1033-1038 (lines=6) @@
1030
	 *
1031
	 * @return int
1032
	 */
1033
	public function getInsertHeight() {
1034
		$width = $this->getWidth();
1035
		$height = $this->getHeight();
1036
		$maxWidth = $this->config()->insert_width;
1037
		return ($width <= $maxWidth) ? $height : round($height*($maxWidth/$width));
1038
	}
1039
1040
}
1041
@@ 1357-1362 (lines=6) @@
1354
	 *
1355
	 * @return int
1356
	 */
1357
	public function getInsertHeight() {
1358
		$width = $this->getWidth();
1359
		$height = $this->getHeight();
1360
		$maxWidth = $this->config()->insert_width;
1361
		return ($width <= $maxWidth) ? $height : round($height*($maxWidth/$width));
1362
	}
1363
1364
	public function getPreviewURL() {
1365
		// Get preview from file