Code Duplication    Length = 4-5 lines in 2 locations

framework/Web/UI/WebControls/TWizard.php 2 locations

@@ 833-836 (lines=4) @@
830
		if (($style = $this->getViewState('HeaderStyle', null)) !== null) {
831
			$this->_header->getStyle()->mergeWith($style);
832
		}
833
		if ($this->getHeaderTemplate() === null) {
834
			$this->_header->getControls()->clear();
835
			$this->_header->getControls()->add($this->getHeaderText());
836
		}
837
	}
838
839
	/**
@@ 1062-1066 (lines=5) @@
1059
	protected function createHeader()
1060
	{
1061
		$this->_header = new TPanel;
1062
		if (($template = $this->getHeaderTemplate()) !== null) {
1063
			$template->instantiateIn($this->_header);
1064
		} else {
1065
			$this->_header->getControls()->add($this->getHeaderText());
1066
		}
1067
		$this->getControls()->add($this->_header);
1068
	}
1069