Code Duplication    Length = 6-6 lines in 2 locations

forms/htmleditor/HtmlEditorField.php 2 locations

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