Code Duplication    Length = 12-12 lines in 2 locations

includes/htmlform/HTMLForm.php 2 locations

@@ 758-769 (lines=12) @@
755
	 *
756
	 * @return HTMLForm $this for chaining calls (since 1.20)
757
	 */
758
	public function addHeaderText( $msg, $section = null ) {
759
		if ( $section === null ) {
760
			$this->mHeader .= $msg;
761
		} else {
762
			if ( !isset( $this->mSectionHeaders[$section] ) ) {
763
				$this->mSectionHeaders[$section] = '';
764
			}
765
			$this->mSectionHeaders[$section] .= $msg;
766
		}
767
768
		return $this;
769
	}
770
771
	/**
772
	 * Set header text, inside the form.
@@ 813-824 (lines=12) @@
810
	 *
811
	 * @return HTMLForm $this for chaining calls (since 1.20)
812
	 */
813
	public function addFooterText( $msg, $section = null ) {
814
		if ( $section === null ) {
815
			$this->mFooter .= $msg;
816
		} else {
817
			if ( !isset( $this->mSectionFooters[$section] ) ) {
818
				$this->mSectionFooters[$section] = '';
819
			}
820
			$this->mSectionFooters[$section] .= $msg;
821
		}
822
823
		return $this;
824
	}
825
826
	/**
827
	 * Set footer text, inside the form.